How to call forms and more....?


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi all,

I am new to .NET and SF, I have a concern about what is the proper or the SF way to call/open forms within the application.  I found the code below in the forums and I wonder if there is such a method in any of the SF classes to re-used, instead of having to create one manually?:

'-- Establish Locals

Dim loForm As System.Windows.Forms.Form

'-- Create the form

loForm = CType(Activator.CreateInstance(FormType), System.Windows.Forms.Form)

'-- Set the MDI

loForm.MdiParent = Me

'-- Show the Form

loForm.Show()

Also, how to handle only one instance of the form to be opened, ex: I don't want the users to open the forms more than once.

P.S.

I am using an MDI form based on SF StandardForm class.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search