Thread: .NET forms
View Single Post
Old 01-17-07, 12:39 PM   #7
DEP Hater :)
Head_slinger's Avatar
Join Date: Jul 2002
Location: Newcastle, UK
Posts: 277
Send a message via ICQ to Head_slinger
Default Re: .NET forms


Deployment packages are only really for deploying code you have wrote in VS, they are limited when deploying other stuff, not sure what he is doing.

To open new Forms do this.

Create a new form object (right click project -> Add -> WindowsForm)
Give it a name (i will call it TestForm).

Then to open that dialog simply:

//Create a new instance of the form
TestForm myForm = new TestForm();

//Call the ShowDialog method

You can pass variables etc. to the new form by creating a custom constructor.

Hope this helps!


I just re-read your post, do you want to process the xml file before showing the user the Form. If this is the case simply put the code for reading in the xml in the constructor for the main form, do your processing and customise the form as appropriate.
AMD Athlon 64 3500+
1gb Corsair XMS3200C2PT
Leadtek 6800GT
Audigy 2

Windows XP Prof./SuSe 8.2
Head_slinger is offline   Reply With Quote