|
-
Jun 21st, 2006, 06:58 PM
#8
Thread Starter
Fanatic Member
Re: Variables between forms
Ok i've been looking and reading about forms in VB.Net tutorials from jmcilhinney signature and i conclude that they just don't give me the
information i need (considering that I would prefer not to use a Module) so i decided to explain my problem much better.
I've two forms:
1 - MuShop (the principal)
2 - Customize
In MuShop when u click in Customize button he shows the Customize form with the command Customize.Show().
In Customize I've a checkbox.
What i need it to do?
When i open the customize control and put the value of the checkbox to true he puts the value to a "global" variable then i close Customize form.
I go to MuShop and i click in a Search Button if the "global" variable is true then he searchs in a way if its false he searchs in a different way.
What i've tried?
1)Declared in Customize Class
Public FindWholeWords As Boolean
And when hes leaving the form:
FindWholeWords = SearchWords.Checked (SearchWords is a Checkbox)
Then in Search button (in MuShop form) something like:
if Customize.FindWholeWords = true then
...
elseif Customize.FindWholeWords = False then
...
end if
The problem:
This only work if the customize form stays open, something that can't happen
2) The same as above but instead of Public FindWholeWords As Boolean
i put Friend FindWholeWords As Boolean
The problem:
The same as Above
What did i miss or not tried??
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
|