|
-
Apr 9th, 2007, 10:27 PM
#1
Thread Starter
Member
[2005] How to link 2 GUI's??
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
Last edited by Abhilash007; May 8th, 2007 at 12:30 AM.
-
Apr 10th, 2007, 06:30 AM
#2
Lively Member
Re: [2005] How to link 2 GUI's??
If you want to show another form, use
If you want to show an application (MS Word, etc), use
vb Code:
Process.Start("Application path")
or
vb Code:
Process.Start("Application path","File to open")
if you want to open a file with the application
-
Apr 10th, 2007, 08:40 AM
#3
Fanatic Member
Re: [2005] How to link 2 GUI's??
In the button click:
Dim f as New NameOfYourFormHere
f.Show (or f.ShowDialog)
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
-
Apr 11th, 2007, 04:36 AM
#4
Thread Starter
Member
Re: [2005] How to link 2 GUI's??
Hey guys!
thx.. your info helped a lot..
cheers
Abhilash
-
May 8th, 2007, 12:30 AM
#5
Thread Starter
Member
Re: [RESOLVED] [2005] How to link 2 GUI's??
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
-
May 8th, 2007, 12:39 AM
#6
Re: [2005] How to link 2 GUI's??
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.
-
May 8th, 2007, 01:07 AM
#7
Thread Starter
Member
Re: [2005] How to link 2 GUI's??
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|