Search Results

Showing results 1 to 40 of 70
Search took 0.01 seconds.
Search: Posts Made By: w00dy
Forum: Visual Basic 4 / 5 / 6 May 24th, 2007
Replies: 9
Views: 1,814
Posted By w00dy
I guess the idea of that is instead of using string functions to find the different combinations in a sorting routine. Say the original string is "chain", then c =0, h = 1, a = 2, i =3, n =4.
So...
Forum: Visual Basic 4 / 5 / 6 May 24th, 2007
Replies: 9
Views: 1,814
Posted By w00dy
What part do you not understand?
Forum: Visual Basic 4 / 5 / 6 May 23rd, 2007
Replies: 9
Views: 1,814
Posted By w00dy
What I want to do is take a string and find all possible combinations of the characters in the string.
I read somewhere of one method that converts the characters to a number, using the number of...
Forum: Visual Basic 4 / 5 / 6 May 23rd, 2007
Replies: 9
Views: 1,409
Posted By w00dy
And what do you mean by 'somewhere is highlight' ?
Forum: Visual Basic 4 / 5 / 6 May 23rd, 2007
Replies: 9
Views: 1,814
Posted By w00dy
Is there a VB function to allow you to construct counters using different number systems ie base 3, base 4, base 5, 6, 7 etc ?

I haven't used VB for a while and I'm getting a headache trying to...
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2005
Replies: 6
Views: 1,806
Posted By w00dy
Private Sub cmdCompute_Click()
Dim intNumExemptions As Integer, curIncome As Currency

If lblexemptions.Caption = "" Then
MsgBox "Please enter Exemption", vbExclamation + vbOKOnly,...
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2005
Replies: 1
Views: 2,014
Posted By w00dy
here's a few to start with - but if you websearch for "visual basic tutorial" there's plenty more.

http://www.timesheetsmts.com/adotutorial.htm

http://www.vbtutor.net/vbtutor.html
...
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2005
Replies: 6
Views: 1,806
Posted By w00dy
or:
If Text1.Text < 10 or Text1.Text > 1000 Then
MsgBox("Entry must be between 10 and 1000")
Text1.Text = ""
Text1.SetFocus
Exit Sub
End If

You have to think of every...
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2005
Replies: 6
Views: 1,806
Posted By w00dy
You need error-trapping for your textboxes, for instance:

If Not IsNumeric(Text1.Text) or Not IsNumeric(Text2.Text) Then
MsgBox ("Invalid Entry")
Exit Sub
End If

rejects non-numeric...
Forum: Visual Basic 4 / 5 / 6 Nov 8th, 2005
Replies: 2
Views: 4,003
Posted By w00dy
Thanks for that, Comatose,
the project I'm working on at the moment could have multiple instances of Word running at once (all launched from my application), but I decided to limit it to one at a...
Forum: Visual Basic 4 / 5 / 6 Nov 7th, 2005
Replies: 2
Views: 4,003
Posted By w00dy
During the program, Word is opened and displays a document.
When Word is closed by clicking X or selecting File>Exit, the program must detect the event and reset controls.
How is that done, anyone?
Forum: Visual Basic 4 / 5 / 6 Nov 7th, 2005
Replies: 3
Views: 4,721
Posted By w00dy
Hi Comatose,
That's exactly what I was after, you haven't left me much to do !
It even finds stuff thats been 'emptied' from the recycle bin, I had forgotten the power of batch files. Thanks again,...
Forum: Visual Basic 4 / 5 / 6 Nov 6th, 2005
Replies: 3
Views: 4,721
Posted By w00dy
I need to search the pc for all files with a particular extension. Can anyone point the way ?
Forum: Visual Basic 4 / 5 / 6 Nov 3rd, 2005
Replies: 12
Views: 11,720
Posted By w00dy
Thanks for those, Comatose, believe it or not I had solved the problem (almost) before I read your last post with this:

Option Explicit
Dim WordApp As Word.Application
Dim WordDoc As...
Forum: Visual Basic 4 / 5 / 6 Nov 2nd, 2005
Replies: 12
Views: 11,720
Posted By w00dy
Hi Comatose, thanks for the very interesting reply, and the compliment, but I must confess much of the code wasn't mine - I was going to use Shell, but then found an example using API's , and...
Forum: Visual Basic 4 / 5 / 6 Nov 1st, 2005
Replies: 12
Views: 11,720
Posted By w00dy
The object here is to open a selected Word file and Copy&Paste its contents into a text file. The problem seems to be with the Sendkeys commands having no effect. The project freezes, apparently...
Forum: Visual Basic 4 / 5 / 6 Oct 26th, 2005
Replies: 9
Views: 4,473
Posted By w00dy
After you compiled your project with 'Make', did you use the Package and Deployment Wizard? This collects any dependancy files (.DLL, .OCX etc) and includes them in an Install package.

Just...
Forum: Visual Basic 4 / 5 / 6 Oct 25th, 2005
Replies: 2
Views: 2,052
Posted By w00dy
Hello, and welcome
Try the attached project. Needs a bit of work still, but it basically does what you want.

If you need the data you've entered to still be there when the program is run, you...
Forum: Visual Basic 4 / 5 / 6 Oct 24th, 2005
Replies: 8
Views: 3,568
Posted By w00dy
Try logging in.
:rolleyes:
Forum: Visual Basic 4 / 5 / 6 Oct 21st, 2005
Replies: 23
Views: 5,249
Posted By w00dy
Well, the version I sent you didn't have those buttons...
You'll have to post an example of your code
Forum: Visual Basic 4 / 5 / 6 Oct 20th, 2005
Replies: 23
Views: 5,249
Posted By w00dy
Hi Macka,
I must admit SStab is something I never heard of either, so I guess I wouldn't be any help to Bang with that, but here it is on MSDN:
...
Forum: Visual Basic 4 / 5 / 6 Oct 19th, 2005
Replies: 23
Views: 5,249
Posted By w00dy
Here's the latest effort.
Hope it gets you a bit farther.
Forum: Visual Basic 4 / 5 / 6 Oct 19th, 2005
Replies: 23
Views: 5,249
Posted By w00dy
Do you need the first checkbox already in the first picturebox, or should it appear the first time you click Command1?

w00dy
Forum: Visual Basic 4 / 5 / 6 Oct 18th, 2005
Replies: 23
Views: 5,249
Posted By w00dy
Forget that last post - that code didn't work for me, instead download and run the attached zip file. The project uses textboxes, but you can just substitute whichever control you want.
You’ll...
Forum: Visual Basic 4 / 5 / 6 Oct 18th, 2005
Replies: 23
Views: 5,249
Posted By w00dy
Hi, sorry for the delay - what you need is to use SetParent.

Here are tutorials that will help you:

http://www.vb-helper.com/howto_new_controls_scrolled.html
...
Forum: Visual Basic 4 / 5 / 6 Oct 17th, 2005
Replies: 23
Views: 5,249
Posted By w00dy
You will need to give a basic explanation of what the program is meant to do. Plain simple language will do fine.
Forum: Visual Basic 4 / 5 / 6 Oct 17th, 2005
Replies: 3
Views: 2,078
Posted By w00dy
If all Timer2 does is count down 3 secs then switch to Timer1 then the code needed would be something like this:

Private Sub Command1_Click()
txt2Sec.Text = 3
Timer2.Enabled = True
End...
Forum: Visual Basic 4 / 5 / 6 Oct 16th, 2005
Replies: 4
Views: 1,433
Posted By w00dy
Forum: Visual Basic 4 / 5 / 6 Oct 16th, 2005
Replies: 3
Views: 2,078
Posted By w00dy
Yes, post something of what you've done so far, making it a little clearer what you need to do.
Forum: Visual Basic 4 / 5 / 6 Oct 16th, 2005
Replies: 2
Views: 1,581
Posted By w00dy
This may help:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vamsgoutofbounds.asp
Forum: Visual Basic 4 / 5 / 6 Oct 16th, 2005
Replies: 4
Views: 1,433
Posted By w00dy
It's not really clear what you need. Can you explain a little more?
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2005
Replies: 6
Views: 3,682
Posted By w00dy
Hello, and welcome.
Can you give us a little more information on what you're trying to do?
Forum: Visual Basic 4 / 5 / 6 Oct 10th, 2005
Replies: 13
Views: 3,358
Posted By w00dy
Aah...thought you meant you didn't like it, actually I don't, but lets face it, all the info seems to be there if you can find it. Anyway, thanks for enlightening me, I'm sure it won't be the last...
Forum: Visual Basic 4 / 5 / 6 Oct 9th, 2005
Replies: 13
Views: 3,358
Posted By w00dy
Forum: Visual Basic 4 / 5 / 6 Oct 9th, 2005
Replies: 13
Views: 3,358
Posted By w00dy
Thanks for that, Invisal
The Mod operator isn't mentioned in any of the books I have. I suppose I should browse MSDN more!
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2005
Replies: 13
Views: 3,358
Posted By w00dy
Hi, Invisal, I know I should have done a proper example, like

If x / 2 = Int (x / 2) Then
'it's even so do something
Else
'it's odd, so do something else
End if

Just wondering...
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2005
Replies: 13
Views: 3,358
Posted By w00dy
Say your variable is called x.

If x / 2 = Int(x / 2) then it's even, otherwise it's odd. That should work for you. The Int function rounds down to the nearest whole number.
Forum: Legacy and Other Languages Oct 4th, 2005
Replies: 66
Views: 15,108
Posted By w00dy
It's also said that Gates's DOS was mostly 'dumpster-dived' OS/2, No wonder he grins all the time.
Forum: Visual Basic 4 / 5 / 6 Oct 4th, 2005
Replies: 8
Views: 11,278
Posted By w00dy
Forum: Visual Basic 4 / 5 / 6 Oct 4th, 2005
Replies: 8
Views: 11,278
Posted By w00dy
[QUOTE=Slavrix]when the hour box is zero, the counter still resets the minutes to 59.
QUOTE]

When the hour box changes from 1 to 0, there are still 59mins 59 secs left to go. But maybe you mean...
Showing results 1 to 40 of 70

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC