Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
AnswerRe: Which one Is Better...? Pin
Muammar©8-Jun-07 20:53
Muammar©8-Jun-07 20:53 
AnswerRe: Which one Is Better...? Pin
Sonia Gupta8-Jun-07 21:01
Sonia Gupta8-Jun-07 21:01 
AnswerRe: Which one Is Better...? Pin
Robert Rohde8-Jun-07 21:56
Robert Rohde8-Jun-07 21:56 
AnswerRe: Which one Is Better...? Pin
Christian Graus8-Jun-07 23:50
protectorChristian Graus8-Jun-07 23:50 
QuestionHow To Check Form Exist Or Not...? Pin
Pankaj - Joshi8-Jun-07 19:10
Pankaj - Joshi8-Jun-07 19:10 
AnswerRe: How To Check Form Exist Or Not...? Pin
Luc Pattyn8-Jun-07 23:29
sitebuilderLuc Pattyn8-Jun-07 23:29 
GeneralRe: How To Check Form Exist Or Not...? Pin
Pankaj - Joshi10-Jun-07 22:19
Pankaj - Joshi10-Jun-07 22:19 
GeneralRe: How To Check Form Exist Or Not...? Pin
Luc Pattyn10-Jun-07 23:26
sitebuilderLuc Pattyn10-Jun-07 23:26 
Hi,

your isForm1Shows should not be an instance (=non-static) member of Form1.
Make it either:
- an instance member of the class that creates the forms (your app itself?);
- a static member of the Form1 class (so it is shared by all Form1 instances,
and can be accessed even before the first Form1 instance exists).

You set it to true when you dco the frm.Show(); that is OK. Now you must set
it to false again when the form gets closed; this requires using one of
the events, e.g. the Closed event.

I dont see why you mention disposing the form; you can achieve what you want
without it...

If you are unfamiliar with static, public, Closed event, I strongly recommend
you buy a book on C# and work your way through it...

Good luck.

Smile | :)


AnswerRe: How To Check Form Exist Or Not...? Pin
Christian Graus8-Jun-07 23:50
protectorChristian Graus8-Jun-07 23:50 
GeneralRe: How To Check Form Exist Or Not...? Pin
Pankaj - Joshi10-Jun-07 22:21
Pankaj - Joshi10-Jun-07 22:21 
GeneralRe: How To Check Form Exist Or Not...? Pin
Marcel Vreuls (www.agentbase.nl)9-Jun-07 21:55
Marcel Vreuls (www.agentbase.nl)9-Jun-07 21:55 
GeneralRe: How To Check Form Exist Or Not...? Pin
Pankaj - Joshi10-Jun-07 22:56
Pankaj - Joshi10-Jun-07 22:56 
QuestionExe is installed or not check from web Pin
justindhas8-Jun-07 19:00
justindhas8-Jun-07 19:00 
AnswerRe: Exe is installed or not check from web Pin
Sathesh Sakthivel8-Jun-07 19:06
Sathesh Sakthivel8-Jun-07 19:06 
GeneralRe: Exe is installed or not check from web Pin
justindhas8-Jun-07 19:36
justindhas8-Jun-07 19:36 
QuestionHow to get the ProgID Pin
jason_mf8-Jun-07 18:39
jason_mf8-Jun-07 18:39 
AnswerRe: How to get the ProgID Pin
Sathesh Sakthivel8-Jun-07 19:02
Sathesh Sakthivel8-Jun-07 19:02 
GeneralRe: How to get the ProgID Pin
jason_mf8-Jun-07 19:06
jason_mf8-Jun-07 19:06 
QuestionCan't get total to work... Help! Pin
Aj_ling8-Jun-07 16:47
Aj_ling8-Jun-07 16:47 
AnswerRe: Can't get total to work... Help! Pin
Sathesh Sakthivel8-Jun-07 16:54
Sathesh Sakthivel8-Jun-07 16:54 
AnswerRe: Can't get total to work... Help! Pin
Guffa8-Jun-07 22:40
Guffa8-Jun-07 22:40 
AnswerRe: Can't get total to work... Help! Pin
Expert Coming8-Jun-07 17:48
Expert Coming8-Jun-07 17:48 
NewsRe: Can't get total to work... Help! Pin
Aj_ling8-Jun-07 21:37
Aj_ling8-Jun-07 21:37 
GeneralRe: Can't get total to work... Help! Pin
Expert Coming8-Jun-07 21:54
Expert Coming8-Jun-07 21:54 
Questionsilly question Pin
jupiter10008-Jun-07 14:14
jupiter10008-Jun-07 14:14 

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.