Click here to Skip to main content
15,887,340 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to call the dll writed by c in c# Pin
Luc Pattyn19-Jun-07 7:02
sitebuilderLuc Pattyn19-Jun-07 7:02 
GeneralRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:04
anuo0619-Jun-07 8:04 
GeneralRe: how to call the dll writed by c in c# Pin
Luc Pattyn19-Jun-07 12:18
sitebuilderLuc Pattyn19-Jun-07 12:18 
GeneralRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 19:04
anuo0619-Jun-07 19:04 
GeneralRe: how to call the dll writed by c in c# Pin
Luc Pattyn20-Jun-07 1:26
sitebuilderLuc Pattyn20-Jun-07 1:26 
AnswerRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:10
anuo0619-Jun-07 8:10 
AnswerRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:13
anuo0619-Jun-07 8:13 
QuestionNeed GUI help, to child or not child? Pin
Skcheng19-Jun-07 6:07
Skcheng19-Jun-07 6:07 
Hi all,

Here is the background to this issue. I am writing a C# program that is to be a self-guided training software. I have a sneaking suspicion that I'm not doing it properly.

Currently, I have several (10+) form screens. As the user goes through each form, there is a next button, which:

(1) Creates a new instance of next form (form2) & passes some parameters to form2
(2) from2.show
(3) this.dispose

I'm now running into a problem where there are certain cases where the user cancels out or needs to go back several forms (i.e. on form5, need to load form1) and an error occurs becuase I have disposed the form.

What is the proper way to do this? I think there are two other options that may be more correct, but I'm not sure which is right:

(a) Have all the controls for all the forms on one form. Pressing next causes a set of form controls to be visible and hides the controls not currently used. i.e:

* Main form has 4 sub-forms, each form containing a button form1, form2, form3 & form4.
* Initially form1 button is shown, all others hidden.
* Press next, and form1 button is hidden, form2 button is shown, all others hidden
* etc.

I think this may get cumbersome and messy.

(b) Have a main form and it'll contain child forms
(c) Have a main form and use it as a container for MDI

Any suggestions? Advice? Please correct me if I'm totally off track. Thank you so much!

~~~~~~~~~~~~
Dead | X| Over-worked, under-paid, glorified "secretary" Sigh | :sigh:

AnswerRe: Need GUI help, to child or not child? Pin
Luc Pattyn19-Jun-07 6:16
sitebuilderLuc Pattyn19-Jun-07 6:16 
QuestionRe: Need GUI help, to child or not child? Pin
Skcheng19-Jun-07 6:59
Skcheng19-Jun-07 6:59 
AnswerRe: Need GUI help, to child or not child? Pin
Luc Pattyn19-Jun-07 7:39
sitebuilderLuc Pattyn19-Jun-07 7:39 
GeneralRe: Need GUI help, to child or not child? Pin
Skcheng19-Jun-07 8:11
Skcheng19-Jun-07 8:11 
AnswerRe: Need GUI help, to child or not child? Pin
Jon Hulatt19-Jun-07 10:18
Jon Hulatt19-Jun-07 10:18 
Questionattach serial command to button [modified] Pin
dirtylarry19-Jun-07 6:06
dirtylarry19-Jun-07 6:06 
AnswerRe: attach serial command to button Pin
dirtylarry20-Jun-07 12:57
dirtylarry20-Jun-07 12:57 
Questionno value returned Pin
arkiboys19-Jun-07 6:05
arkiboys19-Jun-07 6:05 
AnswerRe: no value returned Pin
Jimmanuel19-Jun-07 6:54
Jimmanuel19-Jun-07 6:54 
GeneralSorted collection with alternate sort key Pin
Brady Kelly19-Jun-07 5:24
Brady Kelly19-Jun-07 5:24 
GeneralRe: Sorted collection with alternate sort key Pin
originSH19-Jun-07 5:44
originSH19-Jun-07 5:44 
QuestionGrey Scale Image error?? Pin
Software_Specialist19-Jun-07 5:04
Software_Specialist19-Jun-07 5:04 
AnswerRe: Grey Scale Image error?? Pin
Giorgi Dalakishvili19-Jun-07 5:20
mentorGiorgi Dalakishvili19-Jun-07 5:20 
GeneralRe: Grey Scale Image error?? Pin
Software_Specialist19-Jun-07 5:30
Software_Specialist19-Jun-07 5:30 
GeneralRe: Grey Scale Image error?? Pin
Luc Pattyn19-Jun-07 5:40
sitebuilderLuc Pattyn19-Jun-07 5:40 
GeneralRe: Grey Scale Image error?? Pin
Software_Specialist19-Jun-07 5:57
Software_Specialist19-Jun-07 5:57 
GeneralRe: Grey Scale Image error?? Pin
Luc Pattyn19-Jun-07 6:08
sitebuilderLuc Pattyn19-Jun-07 6:08 

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.