StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



How to call forms and more....?Expand / Collapse
Author
Message
Posted 09/12/2007 1:48:19 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 7:34:22 PM
Posts: 488, Visits: 2,089
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
Progytech (Computer Consultants)
Post #11445
Posted 09/13/2007 9:40:11 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 08/01/2008 8:53:41 AM
Posts: 2,671, Visits: 1,879
No, we don't have any reusable methods for opening forms like that.  Here's a link to some more information:

http://forum.strataframe.net/FindPost9345.aspx

Basically, you cycle through the MdiChildren on the main MDI form, and if one of those forms is the desired type, then you activate it; otherwise, you create a new form of the desired type and show it.


www.bungie.net
Post #11451
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:49pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.