Click here to Skip to main content
15,925,781 members
Home / Discussions / C#
   

C#

 
QuestionServer drives Pin
mrithula85-Feb-09 16:42
mrithula85-Feb-09 16:42 
AnswerRe: Server drives Pin
Dave Kreskowiak5-Feb-09 17:47
mveDave Kreskowiak5-Feb-09 17:47 
Question[Message Deleted] Pin
Michael Halsig5-Feb-09 9:10
Michael Halsig5-Feb-09 9:10 
AnswerRe: ShowDialog keeps loading the form. Pin
N a v a n e e t h5-Feb-09 15:39
N a v a n e e t h5-Feb-09 15:39 
AnswerRe: ShowDialog keeps loading the form. Pin
_Maxxx_5-Feb-09 15:45
professional_Maxxx_5-Feb-09 15:45 
GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig6-Feb-09 3:41
Michael Halsig6-Feb-09 3:41 
GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig6-Feb-09 6:35
Michael Halsig6-Feb-09 6:35 
GeneralRe: ShowDialog keeps loading the form. Pin
_Maxxx_8-Feb-09 12:53
professional_Maxxx_8-Feb-09 12:53 
Well, I would think this is how it is meant to behave.

When you Show() a form, you may show and hide it, with the 'controlling' program deciding upon its visibility, but it is only Loaded the first time it is shown.

With a dialog form, you have to close it before continuing - so as it is closed, showing it again 'Loads' it.

I'm guessing you are hiding the dialog to save time in having to recreate it each time?

If you want to keep the values, set them up in the Form2 constructor - then they won't be set again - or add your own 'init' method which you can call when you want to initialise the form.

The bottom line is that the Load event is triggered when the ShowDialog method is used, so don't put code there when you don't want it executed every time.

___________________________________________
.\\axxx
(That's an 'M')

GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig9-Feb-09 7:00
Michael Halsig9-Feb-09 7:00 
GeneralRe: ShowDialog keeps loading the form. Pin
_Maxxx_9-Feb-09 11:18
professional_Maxxx_9-Feb-09 11:18 
QuestionConvert PDF to text or html Pin
Johan Martensson5-Feb-09 7:12
Johan Martensson5-Feb-09 7:12 
AnswerRe: Convert PDF to text or html Pin
vaghelabhavesh5-Feb-09 8:05
vaghelabhavesh5-Feb-09 8:05 
GeneralRe: Convert PDF to text or html Pin
Johan Martensson5-Feb-09 8:26
Johan Martensson5-Feb-09 8:26 
QuestionSSIS, .net and C# Pin
mecca15-Feb-09 7:10
mecca15-Feb-09 7:10 
AnswerRe: SSIS, .net and C# Pin
aalex6755-Feb-09 7:41
aalex6755-Feb-09 7:41 
GeneralRe: SSIS, .net and C# Pin
mecca15-Feb-09 7:57
mecca15-Feb-09 7:57 
GeneralRe: SSIS, .net and C# Pin
aalex6755-Feb-09 8:00
aalex6755-Feb-09 8:00 
AnswerRe: SSIS, .net and C# Pin
Mbah Dhaim5-Feb-09 11:23
Mbah Dhaim5-Feb-09 11:23 
QuestionUnable to access control on a Master Page [.NET 3.5/ VS 2008] [modified] Pin
Alaric_5-Feb-09 7:00
professionalAlaric_5-Feb-09 7:00 
Questionhow to chang visual attribute of TaskBars (or other controls) Pin
Tonixic5-Feb-09 6:07
Tonixic5-Feb-09 6:07 
AnswerRe: how to chang visual attribute of TaskBars (or other controls) Pin
EliottA5-Feb-09 6:12
EliottA5-Feb-09 6:12 
QuestionC# and Firewire? Pin
sky_fire845-Feb-09 6:00
sky_fire845-Feb-09 6:00 
QuestionSystem.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed exception Pin
praveenvkumarv5-Feb-09 5:47
praveenvkumarv5-Feb-09 5:47 
AnswerRe: System.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed exception Pin
musefan5-Feb-09 6:13
musefan5-Feb-09 6:13 
AnswerRe: System.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed exception Pin
Wendelius5-Feb-09 6:25
mentorWendelius5-Feb-09 6:25 

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.