Forum: Visual Basic 4 / 5 / 6 4 Days Ago |
| Replies: 3 Views: 204 In VB6.0, to easily create an array of command buttons, or any control for that matter, place a command button on the form, name it, and set whatever other properties you want. Then select the... |
Forum: Visual Basic 4 / 5 / 6 6 Days Ago |
| Replies: 7 Views: 370 Read my reply line by line, sentence by sentence and you will have your answer as you code it up. Then as debasisdas said, if you have any problems with what you have created, then post it with where... |
Forum: Visual Basic 4 / 5 / 6 6 Days Ago |
| Replies: 3 Views: 250 Your welcome rav, now if you don't mind, could you please mark this thread as solved. Thanks |
Forum: Visual Basic 4 / 5 / 6 6 Days Ago |
| Replies: 7 Views: 370 Use the Mod Function to determine if input number is odd or not.
If not, add 1 to number.
Use for loop from 1 to 15 and a variable that is incremented by two with each iteration of the loop.
Take... |
Forum: Visual Basic 4 / 5 / 6 6 Days Ago |
| Replies: 3 Views: 250 Okay, if you want to see if a file or directory exists, you can use the Dir Function (see vb's help files for full description). So, what you would do, is something like...
Dim ForLoopCounter As... |
Forum: Visual Basic 4 / 5 / 6 8 Days Ago |
| Replies: 1 Views: 207 Look at the split function and dynamic arrays. Also, see the val function and the join function...
Dim MyDynamicArray() As String
MyDynamicArray = Split(Text1.Text, " ")
MyDynamicArray(1) =... |
Forum: Visual Basic 4 / 5 / 6 9 Days Ago |
| Replies: 3 Views: 307 You can read about cursors in VB's help files. As for connection string help see http://www.connectionstrings.com
Good Luck |
Forum: Visual Basic 4 / 5 / 6 9 Days Ago |
| Replies: 2 Views: 269 Some simple calculations...
20 * 60 = 1200 * 60 = 72000 * 24 = 1728000 * 365 = 630720000 / 1024 = 615937.5Kb / 1000 = 615.9375Mb / 1000 = .6159375Gb
25 * 60 = 1500 * 60 = 90000 * 24 = 2160000 * 365... |
Forum: Visual Basic 4 / 5 / 6 9 Days Ago |
| Replies: 2 Views: 266 Yes, you have code something like this...
Dim F As New Form1
F.Show
somewhere in your code. Find it, change it to Form1.Show. Should fix it.
Good Luck |
Forum: Visual Basic 4 / 5 / 6 12 Days Ago |
| Replies: 1 Views: 182 Time to see your friends (yahoo, google, ask, answers, bing)...
http://search.yahoo.com/search?p=vb6+rs485&toggle=1&cop=mss&ei=UTF-8&fr=yfp-t-701
Good Luck |
Forum: Visual Basic 4 / 5 / 6 12 Days Ago |
| Replies: 7 Views: 581 If you are using ADO (not Data1 or ADODC1) then see http://www.connectionstrings.com for you ODBC DSN Less connection string that you would use to connect to anything from text files to oracle,... |
Forum: VB.NET 12 Days Ago |
| Replies: 4 Views: 254 |
Forum: Visual Basic 4 / 5 / 6 13 Days Ago |
| Replies: 4 Views: 243 Actually, you don't need to declare a variable. You can use the tag property for something like this...
Option Explicit
Private Sub Command1_Click()
Text1.Tag = Text2.Text
Text2.Text =... |
Forum: Visual Basic 4 / 5 / 6 14 Days Ago |
| Replies: 1 Views: 232 Look at the strConv function....
Good Luck |
Forum: Visual Basic 4 / 5 / 6 14 Days Ago |
| Replies: 7 Views: 531 Okay, sounds like you want to do a map editor where you can drag various objects like the terrain, buildings, and other features onto the map and then save the resulting image.
Have a look at this... |
Forum: Visual Basic 4 / 5 / 6 15 Days Ago |
| Replies: 4 Views: 306 No have not heard of this but a possible remedy might be to download and install the redistributable service pack. This is version SP5...
... |
Forum: Visual Basic 4 / 5 / 6 16 Days Ago |
| Replies: 4 Views: 288 While, I would suggest using a menu with a key combination shortcut, the suggestion by SCBWV does work...
Start a new standard exe project and add in this order, text box (text1), label (label1),... |
Forum: Visual Basic 4 / 5 / 6 16 Days Ago |
| Replies: 2 Views: 282 A couple of different ways...
Hooking like this example... http://vbnet.mvps.org/index.html?code/subclass/aspectratio.htm which you would have to modify to fit your needs
or like this example... |
Forum: Visual Basic 4 / 5 / 6 19 Days Ago |
| Replies: 3 Views: 332 Use a for loop to run through from one to count or 0 to count-1 (I forget) and use text1.text= text1.text & ... & vbnewline
Good Luck |
Forum: Visual Basic 4 / 5 / 6 19 Days Ago |
| Replies: 7 Views: 531 Putting a picture into memory or into a picture box is quite easy with the LoadPicture function. Reading each pixel is also easy, if not slow, by using the point method, which returns a long value... |
Forum: Visual Basic 4 / 5 / 6 20 Days Ago |
| Replies: 4 Views: 368 I thought that might be the problem. Glad you got it solved. Now, if you don't mind could you please mark this thread resolved.
Thanks and Good Luck |
Forum: Visual Basic 4 / 5 / 6 21 Days Ago |
| Replies: 4 Views: 368 Place a breakpoint at the line and hover the mouse over the variable. Do you see if you actually have a full path and file name in the variable? Or goto the immediate window and type in ?gf_strDbPath... |
Forum: Visual Basic 4 / 5 / 6 21 Days Ago |
| Replies: 7 Views: 460 You can't! At least not with Visual Basic. You can however with RealBasic...
Good Luck |
Forum: Visual Basic 4 / 5 / 6 21 Days Ago |
| Replies: 7 Views: 460 3 Okay, the MDAC is the Microsoft Data Access Components and yes you need it.
2 Those 3 are one in the same...
1 Yes, as previously stated you need those three files...
Tell users to right click... |
Forum: Visual Basic 4 / 5 / 6 22 Days Ago |
| Replies: 7 Views: 460 Okay, there are three files you need to distribute you application. The Cab, the lst, and the exe. (You did create a standandard deployment package, didn't you?) The support directory you do not need... |
Forum: Visual Basic 4 / 5 / 6 24 Days Ago |
| Replies: 6 Views: 460 Okay, I don't know what kind of code you have in the resize event but here goes...
Option Explicit
Dim BusyResizing As Boolean
Private Sub Form_Resize()
If Me.WindowState = vbMinimized Then... |
Forum: Visual Basic 4 / 5 / 6 25 Days Ago |
| Replies: 6 Views: 460 I would check for an interval delay or use a boolean value to prevent the called sub/function from being called repeatedly, or perhaps a timer control would do...
Good Luck |
Forum: Visual Basic 4 / 5 / 6 25 Days Ago |
| Replies: 3 Views: 406 Add a module, and add...
Sub Main()
End Sub
Then add the code you need to inside of sub main but don't forget to put in your Form1.Show or your program will look like it does not even run.... |
Forum: Visual Basic 4 / 5 / 6 26 Days Ago |
| Replies: 3 Views: 406 In module...
Public Const MyVar As Integer = 5
However, you will not be able to change this value if you are wanting to have this value change.
Now, there is another way if you have your... |
Forum: Visual Basic 4 / 5 / 6 28 Days Ago |
| Replies: 2 Views: 300 something like...
If j Mod 42 = 0 Then Me.cls
Print ...
This will clear the form of the printing you have done to it and reset the currentx and currenty properties to 0. Look it up in help... |
Forum: Visual Basic 4 / 5 / 6 30 Days Ago |
| Replies: 3 Views: 644 Well since OP does not have the source, the OP cannot check references, and I'm betting that the "Error Creating Letter: Cannot Create Object" is our best clue as to what might be going on. I'll also... |
Forum: Visual Basic 4 / 5 / 6 34 Days Ago |
| Replies: 7 Views: 441 Either rewrite as an ASP application or convert it to activex.
Good Luck |
Forum: Visual Basic 4 / 5 / 6 Nov 13th, 2009 |
| Replies: 4 Views: 395 Capture start time into a variable and use datediff function to test the difference returning seconds mod 60 returns minutes mod 60 returns hours. Understand?
Good Luck |
Forum: Visual Basic 4 / 5 / 6 Nov 12th, 2009 |
| Replies: 8 Views: 491 And??? I'm still not understanding but good luck anyways... |
Forum: Visual Basic 4 / 5 / 6 Nov 12th, 2009 |
| Replies: 4 Views: 482 What do you think I pointed you to with that search and suggested sites? |
Forum: Visual Basic 4 / 5 / 6 Nov 11th, 2009 |
| Replies: 2 Views: 437 In form1 create a public sub so when you hide form2 you can call it...
Form1.MyPublicSub
Me.Hide
then in the form1's mypublicsub you instruct whatever data access method you are using to... |
Forum: Visual Basic 4 / 5 / 6 Nov 11th, 2009 |
| Replies: 4 Views: 482 Not quite sure what you are asking but I do know you will need to use ExtractIconEx. Now, in these search results ...
... |
Forum: Visual Basic 4 / 5 / 6 Nov 11th, 2009 |
| Replies: 8 Views: 491 Why not just use the DriveListBox??? |
Forum: Visual Basic 4 / 5 / 6 Nov 10th, 2009 |
| Replies: 2 Views: 454 by use of the rnd function (see help) and the randomize statement in your startup object.
Good Luck |
Forum: Visual Basic 4 / 5 / 6 Nov 10th, 2009 |
| Replies: 6 Views: 675 Don't think so but look at Project>References. You should have these four at the top and in this order...
Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic... |