Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP download
Message
General information
Forum:
Visual Basic
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00424786
Message ID:
00444005
Views:
17
>Hi Phil,
>I have a question.
>In my prject, I want to user to be able to open the same form as mamy times as user wants to and let the user minimize the form and open a new form when ever user wants to.
>
>The user will open the forms using a menu. Now it only allows user to just one time, if the form is not close(if the form is minimized) if wouldn't let the user open another copy of the form from the menu.
>
>Is there a property I have to set to accomplish this?
>how can I allow the user to open the same form multiple times.
>
>Thanks phil :)

Hi Lal,

If you are using VFP forms, Nadya is correct. Setting the form as modeless will allow multiple copies. If you do this, you may also want to be sure you are using a private datasession for the form, so each form copy has individual record pointers.

If you are using VB, all you need to do is use a form reference, and the Set and New keywords. For example, in your menu code that loads the form, instead of doing:

frmMyForm.Show

try:

Dim x As Form
Set x = New frmMyForm
x.Show

This will allow you to create multiple instances of the form. Note that since you are now creating new instances of the form with each call, your form close
method should unload the form, not just hide it.
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform