Hey!
I need to link 2 GUI's through the pressing of a button. How do we code the button so that it open another GUI when clicked.
please advise
cheers
Abhilash
Printable View
Hey!
I need to link 2 GUI's through the pressing of a button. How do we code the button so that it open another GUI when clicked.
please advise
cheers
Abhilash
If you want to show another form, use
vb Code:
Form.Show()
If you want to show an application (MS Word, etc), use
orvb Code:
Process.Start("Application path")
if you want to open a file with the applicationvb Code:
Process.Start("Application path","File to open")
In the button click:
Dim f as New NameOfYourFormHere
f.Show (or f.ShowDialog)
Hey guys!
thx.. your info helped a lot..
cheers
Abhilash
HI Guys!
I hav another thing i want to ask since i am not able to figure it out myself...
I have to open a new form when the user selects a particular data from a dropdown box and clicks on a button.
Now i can open the new form using the above method which is :
Dim f as New "myformname"
f.show
But my problem is that i have to use the data that was selected by the user in the dropdown box in the previous form. How do i carry that information into the new form. can i store it in some variable and use it in the new form.
Please advise.
Cheers
Abhilash
A form is an object. How do you normally pass data to an object? The answer is that you either set a property or pass a parameter to a method. If that's how you do it for objects and a form is an object then that's how you do it for forms. Declare a property in your form and assign your data to it, or else declare a method in your form and call it, passing your data as a parameter.
Hey!
I am not sure on how to declare a property and assign the data to it.. cud u please gimme an example or something..
I am not even sure of how to get the data selected by the user in the dropdownbox. Is it something like dropdownbox1.selectedtext or something.
thx
Abhilash