How can I pass value from web browser to Visual basic form?
105474
pass it in the query string\n\nwebform.html?value=27
293326
use activexcontrol if it is a snippet program\n\nalso you can go for visual interdev (VS6)\n\nin case of vs.net then they have option for web development\n\nhope this helps you a little
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)
787937
This example sets the value of the cell A1 with the answer to a messagebox with Yes and No options:\nDim Msg, Style, Title, Response, MyString\nMsg = "Is that ok?"    \nStyle = vbYesNo + vbCritical + vbDefaultButton2\nTitle = "Question"\nResponse = MsgBox(Msg, Style, Title)\nIf Response = vbYes Then    ' User chose Yes.\n    MyString = "Yes"\nElse    ' User chose No.\n    MyString = "No"\nEnd If\nActiveSheet.Cells(1, 1).FormulaR1C1 = MyString\n\n\nAnother example: User enter a value for the cell A1,using InputBox:\n\nDim Message, Title, Default, MyValue\nMessage = "Enter a value for the cell A1"\nTitle = "Value for A1"\nDefault = ActiveSheet.Cells(1, 1).FormulaR1C1 ' Get the previous value from the cell\nMyValue = InputBox(Message, Title, Default)\nActiveSheet.Cells(1, 1).FormulaR1C1 = MyValue 'Set the new value for the cell
470920
I am assuming that the code - \nstrSQL = "SELECT * FROM tbl_Hardware WHERE Hardware_ID = 2" \n\nis in a <script language=vbscript> block....\n\nIf I am correct, then that part of the code will be available on the client side, whereas the code that you have in the <%%> block is a sever side code available on the server side.\n\nIf the value of strSql does not change on the client side then one way of doing this is\n\n<%\ndim sql\nsql = "SELECT * FROM tbl_Hardware WHERE Hardware_ID = 2" \n%>\n<script language=vbscript>\nstrSQL = <%=sql%>\n </script>\n<%\nSet rs = cnnLogin.Execute(sql)\n%>\n\nIf the Value of the strSQL changes on the client side, then you need to pass it back to the server on submit using some sort of hidden fields.\n\n-jainnys\nMind Experts Inc\nhttp://www.mindexp.com
1081359
using fscommand you can pass the parameter values to script and then then next form.\nfscommand("passin",id). This id value passing from the flash button. you can get it using script. \n\nNow you can pass the value to other forms.
10062
in the form tag\n<form method="get" action="..." target="_blank" ...>
779217
There are built-in functions in a programming language to perform that task.For instance in C++ we have: cint("string value") for converting the string value into integer.And in Visual Basic we have the val() function to do the same thing.
1082702
Using C# in the code behind you can get access to the form as an object. \nYou can access it via a method on the object of the form class. I do not correctly remember the method but it is of this format: <form name>.getForm().. or something.. \nTry this out.. or contact me..
832090
Manipulate the inputs using vbscript.\n\nLinked page...\nLog_Type\n=Trim(Request.Form("Log_Type")) \nor\n=Trim(Request.QueryString("Log_Type"))\n\nMain page...\n<form>\n<input type=text name="Log_Type " value=" "> <=%Log_Type%>\n</form>
37333
Assuming you are writing your macro in VbScript:\nsResult = Inputbox("Prompt", "Input box title")
282906
Try using an includes file. If you have the VB script, then you can either put it into a file called VB.inc and then reference it like this:\n<!--#include virtual="VB.inc"-->\n\nThis should all you to use the code you currently have in your site. If you want to write to the page, try using\n<script language="visualbasic">\n//your script here.\n</script>\n\nFinally you can save it as a vbscript and reference it as shown above. \n\nGood luck!
500457
Dim objNet\non error resume next\n\nset objNet = CreateObject("WScript.Network")\n\nDim strInfo\nstrInfo = objNet.UserName &", "&objNet.ComputerName&", "&objNet.DomainName
935764
u get all the values from an input table or something...assign the inputs to variables..code the update button to input those variable values into the database
345258
Usually, you would add an OnClick handler in the html. Inside that handler you'd write some javascript inside the image's html tag to take you to a new page. It might look like this:\n\nOnClick= "document.location='www.yahoo.com'"\n\nThat works fine if your image control isn't a server control. \n\nThe trick with ASP.Net is that if your image is a server control then it believes that OnClick event is a server side event. That causes a postback. Sometimes that is exactly what you want. Sometimes it isn't.\n\nIf it isn't:\n\nIn the code behind you can add an "Attribute" to the control. What this does is renders a name&#92;value pair in the control's html element tag.\n\nYou can take advantage of this to inject some javascript into the tag. \n\nAssume your control is named "imgFoo".\n\nimgFoo.Attributes.Add("OnClick", \n"document.location='www.yahoo.com'")
724136
The easiest way to do it is with a session variable.\n\non your page doing the validation:\n<?\nsession_start();\n\n//your validation code\n\nif($validation_ok_boolean) {\n$_SESSION['variable'] = variable_value_to_be_passed\n}\n?>\n\non your framed page:\n\n<?\nsession_start();\nif(isset($_SESSION['variable']) {\n$anothervariable = $_SESSION['variable'];\n}\n?
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.