Changeset 786 for branches/eraser6/Eraser/Program.cs
- Timestamp:
- 12/11/08 08:46:47 (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Eraser/Program.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Eraser/Program.cs
r782 r786 174 174 //Create the main form 175 175 program.MainForm = new MainForm(); 176 program.MainForm.CreateControl(); 176 177 bool showMainForm = true; 177 178 foreach (string param in program.CommandLine) … … 286 287 //Initialise and run the program. 287 288 if (OnInitInstance(this) && MainForm != null) 288 Application.Run( mainForm);289 Application.Run(MainForm); 289 290 else 291 { 292 //If we aren't showing the form, force the creation of the window 293 //handle. 294 MainForm.CreateControl(); 295 IntPtr handle = MainForm.Handle; 290 296 Application.Run(); 297 } 291 298 return true; 292 299 }
Note: See TracChangeset
for help on using the changeset viewer.
