Click here to Skip to main content
15,920,110 members
Home / Discussions / C#
   

C#

 
QuestionCreating Controls Dynamically using a For Loop? Pin
Darktaz23-Aug-05 18:32
Darktaz23-Aug-05 18:32 
AnswerRe: Creating Controls Dynamically using a For Loop? Pin
Christian Graus23-Aug-05 18:40
protectorChristian Graus23-Aug-05 18:40 
AnswerRe: Creating Controls Dynamically using a For Loop? Pin
Luis Alonso Ramos23-Aug-05 19:35
Luis Alonso Ramos23-Aug-05 19:35 
Generalmanaging the calendar Pin
lynnafna23-Aug-05 17:27
lynnafna23-Aug-05 17:27 
GeneralRetrieve and change email account settings Outlook Pin
23-Aug-05 16:21
suss23-Aug-05 16:21 
Generalpassing datareader to a User control Pin
dotcomcrash200523-Aug-05 15:36
dotcomcrash200523-Aug-05 15:36 
GeneralRe: passing datareader to a User control Pin
tiger200523-Aug-05 16:52
tiger200523-Aug-05 16:52 
GeneralProblem with Form Dispose please help Pin
Darktaz23-Aug-05 13:03
Darktaz23-Aug-05 13:03 
I have a Form which references another form within the same namespace eg:

Form2 frm2 = new Form2();

Form2 needs to be opened more than once.

I open the form when a button is clicked with:

frm2.Show();

After closing frm2 and clicking on the button to open the form again I get the following error:

Cannot access a disposed object named "Form2".

I can get around this by using frm2.ShowDialog() only problem being that the second time the form is opening the layout is all messed up as though the controls were not disposed when the form was closed.

How can I ensure that the form can be opened multiple times??
GeneralRe: Problem with Form Dispose please help Pin
David Stone23-Aug-05 13:26
sitebuilderDavid Stone23-Aug-05 13:26 
GeneralRe: Problem with Form Dispose please help Pin
Darktaz23-Aug-05 13:45
Darktaz23-Aug-05 13:45 
GeneralRe: Problem with Form Dispose please help Pin
tiger200523-Aug-05 14:49
tiger200523-Aug-05 14:49 
GeneralRe: Problem with Form Dispose please help Pin
Darktaz23-Aug-05 15:12
Darktaz23-Aug-05 15:12 
Generalusing rasapi32 for PPPoE :~ Pin
devitj23-Aug-05 11:24
devitj23-Aug-05 11:24 
GeneralEmail in C# 2005 (.net 2.0) Pin
Daniel132423-Aug-05 11:24
Daniel132423-Aug-05 11:24 
GeneralRe: Email in C# 2005 (.net 2.0) Pin
Guffa23-Aug-05 12:15
Guffa23-Aug-05 12:15 
GeneralRe: Email in C# 2005 (.net 2.0) Pin
David Stone23-Aug-05 12:33
sitebuilderDavid Stone23-Aug-05 12:33 
GeneralRe: Email in C# 2005 (.net 2.0) Pin
Guffa23-Aug-05 12:53
Guffa23-Aug-05 12:53 
GeneralRe: Email in C# 2005 (.net 2.0) Pin
Daniel132423-Aug-05 13:14
Daniel132423-Aug-05 13:14 
GeneralRe: Email in C# 2005 (.net 2.0) Pin
Daniel132423-Aug-05 13:29
Daniel132423-Aug-05 13:29 
GeneralRe: Email in C# 2005 (.net 2.0) Pin
David Stone23-Aug-05 12:34
sitebuilderDavid Stone23-Aug-05 12:34 
GeneralRe: Email in C# 2005 (.net 2.0) Pin
senorbadger10-Mar-09 7:12
senorbadger10-Mar-09 7:12 
QuestionHow to copy struct to byte [] ? Pin
queisser23-Aug-05 11:04
queisser23-Aug-05 11:04 
AnswerRe: How to copy struct to byte [] ? Pin
Bojan Rajkovic23-Aug-05 19:44
Bojan Rajkovic23-Aug-05 19:44 
AnswerRe: How to copy struct to byte [] ? Pin
leppie23-Aug-05 21:47
leppie23-Aug-05 21:47 
GeneralSelection Frames Pin
Shawn Dwyer23-Aug-05 10:06
Shawn Dwyer23-Aug-05 10:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.