| | | Advanced StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 8:54:38 PM Posts: 534, Visits: 2,204 |
| | 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 LocalsDim 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 RijoProgytech (Computer Consultants) |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 2 days ago @ 5:02:56 PM Posts: 2,682, Visits: 1,882 |
| | 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 |
| |
|
|