Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
AnswerRe: CurrentTimestamp Pin
Giorgi Dalakishvili19-Jun-07 7:22
mentorGiorgi Dalakishvili19-Jun-07 7:22 
JokeCool signature! Pin
Martin#19-Jun-07 9:29
Martin#19-Jun-07 9:29 
GeneralRe: Cool signature! [modified] Pin
Giorgi Dalakishvili19-Jun-07 10:01
mentorGiorgi Dalakishvili19-Jun-07 10:01 
GeneralRe: CurrentTimestamp Pin
Le centriste20-Jun-07 2:06
Le centriste20-Jun-07 2:06 
GeneralRe: CurrentTimestamp Pin
Giorgi Dalakishvili20-Jun-07 2:49
mentorGiorgi Dalakishvili20-Jun-07 2:49 
QuestionFile Open Status/Access Pin
RussBus19-Jun-07 7:10
RussBus19-Jun-07 7:10 
AnswerRe: File Open Status/Access Pin
Giorgi Dalakishvili19-Jun-07 7:27
mentorGiorgi Dalakishvili19-Jun-07 7:27 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 7:32
RussBus19-Jun-07 7:32 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 10:03
RussBus19-Jun-07 10:03 
GeneralRe: File Open Status/Access Pin
Giorgi Dalakishvili19-Jun-07 10:27
mentorGiorgi Dalakishvili19-Jun-07 10:27 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 10:47
RussBus19-Jun-07 10:47 
GeneralRe: File Open Status/Access Pin
Abisodun19-Jun-07 11:30
Abisodun19-Jun-07 11:30 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 11:42
RussBus19-Jun-07 11:42 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 11:53
RussBus19-Jun-07 11:53 
GeneralRe: File Open Status/Access Pin
Abisodun19-Jun-07 14:12
Abisodun19-Jun-07 14:12 
Questionhow to call the dll writed by c in c# Pin
anuo0619-Jun-07 6:20
anuo0619-Jun-07 6:20 
AnswerRe: how to call the dll writed by c in c# Pin
Giorgi Dalakishvili19-Jun-07 6:55
mentorGiorgi Dalakishvili19-Jun-07 6:55 
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:

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.