Click here to Skip to main content
15,900,906 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using dynamic enum as type in a parameter of a method Pin
dashingsidds21-May-10 1:36
dashingsidds21-May-10 1:36 
AnswerRe: Using dynamic enum as type in a parameter of a method Pin
PIEBALDconsult21-May-10 3:46
mvePIEBALDconsult21-May-10 3:46 
AnswerRe: Using dynamic enum as type in a parameter of a method Pin
T M Gray21-May-10 5:19
T M Gray21-May-10 5:19 
QuestionDuplicate form with every instantiation of a class?? Pin
Jibrohni20-May-10 22:03
Jibrohni20-May-10 22:03 
AnswerRe: Duplicate form with every instantiation of a class?? Pin
OriginalGriff20-May-10 23:56
mveOriginalGriff20-May-10 23:56 
GeneralRe: Duplicate form with every instantiation of a class?? Pin
Jibrohni21-May-10 0:29
Jibrohni21-May-10 0:29 
GeneralRe: Duplicate form with every instantiation of a class?? Pin
Jibrohni21-May-10 0:47
Jibrohni21-May-10 0:47 
GeneralRe: Duplicate form with every instantiation of a class?? Pin
OriginalGriff21-May-10 1:09
mveOriginalGriff21-May-10 1:09 
I assume you mean "When I close the main form, all the other forms close."
Well yes. When you close the main form, the program terminates. This closes all the other forms. Look at the Main method in program.cs
If you have a pump form as your main form, then when that is closed, your app terminates.

Best solution: Don't make the pump form your main form. Have a fuel station form which opens all the pump forms. When you close the fuel station form, the app terminates.

Other solutions are rather more complex.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

GeneralRe: Duplicate form with every instantiation of a class?? Pin
Luc Pattyn21-May-10 2:42
sitebuilderLuc Pattyn21-May-10 2:42 
AnswerRe: Duplicate form with every instantiation of a class?? Pin
PIEBALDconsult21-May-10 4:28
mvePIEBALDconsult21-May-10 4:28 
QuestionSelectedValue and comboboxen Pin
redspiderke20-May-10 21:44
redspiderke20-May-10 21:44 
AnswerRe: SelectedValue and comboboxen Pin
V.20-May-10 23:10
professionalV.20-May-10 23:10 
GeneralSOVELD: SelectedValue and comboboxen Pin
redspiderke21-May-10 3:59
redspiderke21-May-10 3:59 
AnswerRe: SelectedValue and comboboxen Pin
Luc Pattyn21-May-10 2:48
sitebuilderLuc Pattyn21-May-10 2:48 
GeneralOPGELOST: SelectedValue and comboboxen Pin
redspiderke21-May-10 4:01
redspiderke21-May-10 4:01 
QuestionMessage Removed Pin
20-May-10 20:43
tanzeel8520-May-10 20:43 
AnswerRe: wmp..urgent Pin
J4amieC20-May-10 21:04
J4amieC20-May-10 21:04 
GeneralRe: wmp..urgent Pin
Luc Pattyn21-May-10 2:50
sitebuilderLuc Pattyn21-May-10 2:50 
QuestionHow to use wpf Pin
amit_8320-May-10 19:56
professionalamit_8320-May-10 19:56 
AnswerRe: How to use wpf Pin
Abhinav S20-May-10 20:57
Abhinav S20-May-10 20:57 
QuestionC# and Excel Pin
prithaa20-May-10 17:57
prithaa20-May-10 17:57 
AnswerRe: C# and Excel Pin
Garth J Lancaster20-May-10 18:26
professionalGarth J Lancaster20-May-10 18:26 
AnswerRe: C# and Excel Pin
RCoate20-May-10 19:20
RCoate20-May-10 19:20 
AnswerRe: C# and Excel Pin
Abhinav S20-May-10 20:53
Abhinav S20-May-10 20:53 
AnswerRe: C# and Excel Pin
Anas Abbas20-May-10 23:53
Anas Abbas20-May-10 23:53 

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.