Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of variables
Message
From
23/11/1998 09:13:37
Jody Cairns
OAO Technology Solutions
Moncton, New Brunswick, Canada
 
 
To
22/11/1998 13:17:46
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00160318
Message ID:
00160420
Views:
22
>I have a form (Form_A) from which I create an instance
>of Form_B and SHOW it using the Modal switch.

The usual method of returning a value from a modal form is either make the
value a public variable or property within the modal form, then call the form as such:

' show the modal form
Form1.Show vbModal, me
' get the value from the form
myvalue = form1.MyValue
' now unload the modal form
Unload Form1

In your modal form (Form1), do not UnLoad the form when the user closes it. Hide it instead.

Best,

jody
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform