Click here to Skip to main content
15,920,896 members
Home / Discussions / C#
   

C#

 
Questionproject Pin
pramodrastogi9119-Feb-13 18:14
pramodrastogi9119-Feb-13 18:14 
AnswerRe: project Pin
Jibesh19-Feb-13 19:52
professionalJibesh19-Feb-13 19:52 
AnswerRe: project Pin
Abhinav S19-Feb-13 22:25
Abhinav S19-Feb-13 22:25 
AnswerRe: project Pin
fjdiewornncalwe20-Feb-13 3:17
professionalfjdiewornncalwe20-Feb-13 3:17 
QuestionBinary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization. Pin
kandel1519-Feb-13 14:25
kandel1519-Feb-13 14:25 
AnswerRe: Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization. Pin
BobJanova20-Feb-13 0:04
BobJanova20-Feb-13 0:04 
AnswerRe: Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization. Pin
Pete O'Hanlon20-Feb-13 0:11
mvePete O'Hanlon20-Feb-13 0:11 
QuestionWindows Mobile Pin
aymen Tn19-Feb-13 5:04
aymen Tn19-Feb-13 5:04 
AnswerRe: Windows Mobile Pin
Abhinav S19-Feb-13 5:49
Abhinav S19-Feb-13 5:49 
GeneralRe: Windows Mobile Pin
aymen Tn19-Feb-13 22:44
aymen Tn19-Feb-13 22:44 
AnswerRe: Windows Mobile Pin
Pete O'Hanlon19-Feb-13 6:00
mvePete O'Hanlon19-Feb-13 6:00 
GeneralRe: Windows Mobile Pin
aymen Tn19-Feb-13 22:42
aymen Tn19-Feb-13 22:42 
AnswerRe: Windows Mobile Pin
Pete O'Hanlon20-Feb-13 2:12
mvePete O'Hanlon20-Feb-13 2:12 
QuestionHow to create dynamic menu Pin
ebrahim kalteh19-Feb-13 1:36
ebrahim kalteh19-Feb-13 1:36 
AnswerRe: How to create dynamic menu Pin
BobJanova19-Feb-13 3:06
BobJanova19-Feb-13 3:06 
GeneralRe: How to create dynamic menu Pin
ebrahim kalteh19-Feb-13 8:13
ebrahim kalteh19-Feb-13 8:13 
GeneralRe: How to create dynamic menu Pin
Jibesh19-Feb-13 8:58
professionalJibesh19-Feb-13 8:58 
QuestionCLOSING FORMS Pin
airmigjr19-Feb-13 0:29
airmigjr19-Feb-13 0:29 
AnswerRe: CLOSING FORMS Pin
N a v a n e e t h19-Feb-13 1:05
N a v a n e e t h19-Feb-13 1:05 
AnswerRe: CLOSING FORMS PinPopular
V.19-Feb-13 1:23
professionalV.19-Feb-13 1:23 
GeneralRe: CLOSING FORMS Pin
Jegan Thiyagesan19-Feb-13 3:26
Jegan Thiyagesan19-Feb-13 3:26 
AnswerRe: CLOSING FORMS Pin
Dave Kreskowiak19-Feb-13 2:11
mveDave Kreskowiak19-Feb-13 2:11 
GeneralRe: CLOSING FORMS Pin
airmigjr19-Feb-13 3:25
airmigjr19-Feb-13 3:25 
GeneralRe: CLOSING FORMS Pin
Dave Kreskowiak19-Feb-13 10:25
mveDave Kreskowiak19-Feb-13 10:25 
AnswerRe: CLOSING FORMS Pin
BobJanova19-Feb-13 3:03
BobJanova19-Feb-13 3:03 
This is entirely the wrong way to demonstrate Show/Hide. Multi-form UIs are difficult to get right, and coding up the example that you are using correctly will introduce a whole bunch of concepts (about main forms, the application loop and Program.cs) that are not relevant to the point.

Just have a button on your main form that shows or hides the secondary one.

And why are you creating a new instance each time? Such an elementary misunderstanding of objects and classes indicates that you shouldn't really be teaching people about any OO environment.

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.