Parameters to a Visual Basic application?
551354
It's a bit tricky, but the function you want to call is the Interaction.Command function  This exists in both VB6 and VB.NET, although the .NET version is enhanced to a be a bit more powerful.  \n\nWhen you call the interaction.command function, it returns a variant data type containing everything in the line after the program name.  So, if you had typed something like:\n\nmyExecutable.exe /a=myName /b=myHeight\n\nyou would do the following:\n\ndim strCommand as string\nstrCommand=interaction.command\n\nThe value in strCommand at this point would be:  \n\n/a=myName /b=myHeight\n\nYou have to parse through the return to find whatever separator characters you defined, count arguements, etc. The best way I've found to do this in VB6 is with a loop from 1 to the len(strCommand).  Test each character looking for your separator charactors, and then you just use the MID function to extract thos parts to wherever you need to put them.
208203
If you don't really need VB 6, but could work with VB.NET, Microsoft gives away Visual Basic .NET Express, which does pretty much everything a hobbyist / student needs. You can download it directly from them.
670070
 Dim frmName As String\n   \n frmName = "form2"\n   \n Select Case frmName\n  Case "form1"\n   Form1.Show\n  Case "form2"\n   Form2.Show\n  Case "form3"\n   Form3.Show\n  Case Else\n   MsgBox "Invalid form name"\n End Select\n\n***EDIT***\nIn VB, you can't convert a string object into a form object.  This is why String.Show doesn't work.  However, you can use a "select case" on the string and if the string matches the form name (i.e. form2), then show the form.\n\nAnother alternative is to loop through the forms collection until you find a form with the same name as your string.\n\nIn any case, if you create a project with 2 forms (called form1 and form2).  Add a button to form1 and paste the above code into the click event of the button.  When pressed, form2 will be displayed.
387163
Use "..."\n\nI don't really get it, but there's some documentation here: http://courses.cs.vt.edu/~cs1704/notes/A02.AdvancedFunctionParameters.pdf
1165905
Public Sub Command1_Click()\nIf Option1 then \nform1.show\nelse\nform2.show\nend if\nEnd Sub\n\nyou can make web applications with vb, check the types of project you can create with it. (the New... command)
513425
Pull over!!!\n\nDriving Visual Basic 6 without a license, huh?\n\nGonna have to write you a ticket.
257040
Consider this good luck. Visual Basic 6 is a legacy product. \n\nInstead, install Visual Basic .NET Express. You can download it free from microsoft.com
853215
Use DirectX!!! the only way to go! \nThere are a lot of examples on msdn\nhttp://www.vbcode.com/\nhttp://www.a1vbcode.com/\nand other sites like that
218645
Visual Basic .NET.\n\nhttp://msdn.microsoft.com/vbasic/
62810
You can't normally do it as a database file can't be changed into an executable file. You could write macros or program some Visual Basic classes and forms to have the database file contain an independent interface and save that as an executable.
556841
Try Planet Source Code. Below are 52 examples (You probably should do your own homework, however...):\n\nhttp://www.planetsourcecode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&optSort=Alphabetical&txtCriteria=Binary+Tree&lngWId=3
1184363
Get a For Dummies book or Idiot's Guide To book.\n\nOnce you're ready to program, get Visual Basic from Microsoft.
425992
Put the following code in any sub u want:\n Dim i As Integer\n        For i = 1 To 100\n            If i Mod 2 = 1 Then\n                ListBox1.Items.Add(i)\n            End If\n        Next\n\nI retrieved all the values in a list box , u can retrieve it by any way u want, Hope this Helps :)
960959
You can do this many ways.\nI will show you how to do it using the registry and a simple text file.\n\n1) I assume you have a control on your form that is supposed to save the data when it is clicked, double clicked or whatever.\n\n2) The "save" code will go in the appropriate event (click/double click/mouse over/whatever), the "load" code will go in either the form load event or the "Sub Main" of your startup object.  According to your description you want the data to "auto load" when the application is started.\n\nSAVE CODE Example 1:\n    SaveSetting applicationname, "Settings", "Last Name", txtLastName.Text\n    SaveSetting applicationname, "Settings", "First Name", txtFirstName.Text\n    SaveSetting applicationname, "Settings", "Address", txtAddress.Text\n    SaveSetting applicationname, "Settings", "City", txtCity.Text\n    SaveSetting applicationname, "Settings", "State", txtState.Text\n    SaveSetting applicationname, "Settings", "Zip", txtZip.Text\n\napplicationname is the name of your application (duh)\n"Settings" is a literal that can be anything meaningful that you want...such as;"Form1 Settings", "Address Settings", etc\nThe next parameter ("First Name","Last Name", etc.) is a meaningful name for each "thing" you want to save.\nThe last parameter is the actual data that you are wanting to save.\n\nSAVE CODE Example 2:\ndim intFileNum as integer\nintFileNum = FreeFile\nOpen "Settings.txt" for output as #intFileNum \nprint #intfilenum, txtLastName.Text\nprint #intfilenum, txtFirstName.Text\nprint #intfilenum, txtAddress.Text\nprint #intfilenum, txtCity.Text\nprint #intfilenum, txtState.Text\nprint #intfilenum, txtZip.Text\nClose #intFileNum\n\nThe above code open a text file on your default drive and in a default location, generally where you have saved your application.\nIt then writes data to this file one line at a time, no identifiers or anything, just data followed by carriage return and line feed (vbCRLF).\nThe last line flushes the write buffer and closes the file.\n\n\nREAD CODE Example 1:\n    txtLastName.Text = GetSetting(applicationname, "Settings", "Last Name", "")\n    txtFirstName.Text = GetSetting(applicationname, "Settings", "First Name", "")\n    txtAddress.Text = GetSetting(applicationname, "Settings", "Address", "")\n    txtCity.Text = GetSetting(applicationname, "Settings", "City", "")\n    txtState.Text = GetSetting(applicationname, "Settings", "State", "")\n    txtZip.Text = GetSetting(applicationname, "Settings", "Zip", "")\n\nThis is just the reverse of the SaveSetting, however, the last parameter ("") is a default is the setting cannot be found in the registry.\n\n\nREAD CODE Example 2:\ndim intFileNum as integer\nintFileNum = FreeFile\nOpen "Settings.txt" for input as #intFileNum \ninput #intfilenum, txtLastName.Text\ninput #intfilenum, txtFirstName.Text\ninput #intfilenum, txtAddress.Text\ninput #intfilenum, txtCity.Text\ninput #intfilenum, txtState.Text\ninput #intfilenum, txtZip.Text\nClose #intFileNum
209872
I already answered this for you in your other thread, using Visual Basic. With a little effort, you ought to be able to convert one type of Basic to another. The languages are virtually identical.\n\nOnce again, what you need to do is create a function. Let's call it DozenBetType. It is going to take one argument: an integer: DozenBetType(someInteger)\n\nThe function is going to return:\n1 if the number passed to it is 1-12\n2 if the number is 13-24\n3 if the number is 25-36\n\nThen you can simply call the function on both the number guessed and the number your program has generated.\n\nFor example, if the number your program generated is declared as intResult, and the number the person guessed is declared as intGuess:\n\nif DozenBetType(intGuess) = DozenBetType(intResult) then they have won the bet, otherwise they have not. (A simple if-then-else statement\n\nIf you don't want to use a function, or if that's too complicated for you, you can declare two new variables: intDozenTypeResult, for the number your program generated and intDozenTypeGuess, for the number your user guessed.\n\nSet intDozenTypeResult to be 1 if the program's random number is between 1-12, set it to be 2 if the value is 13-24, set it to be 3 if the value is 25-36. \n\nDo the same thing for intDozenTypeGuess.\n\nThen, simply compare those two variables:\n\nIf intDozenTypeResult = intDozenTypeGuess then they have won, otherwise they have not (again, a simple if-then-else statement).\n\nPlease, don't create new threads for the same question. Just update your old question.
1179894
yes using widows Api\nHere is a sample created in visual basic\n\nhttp://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=22553&lngWId=1&txtForceRefresh=62020068412516566
966661
check out http://www.pscode.com for examples.  You would need to use ADO.NET in addition to VB.NET in order to obtain the required data.