Click here to Skip to main content
15,916,601 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to display Form2 by click button in Form1 Pin
xingselex17-Jun-09 5:51
xingselex17-Jun-09 5:51 
AnswerRe: how to display Form2 by click button in Form1 [modified] Pin
musefan17-Jun-09 5:53
musefan17-Jun-09 5:53 
I see, maybe something like this then...

Form2 form2;
private void button1_Click(object sender, EventArgs e)
{
  if(form2 == null || form2.IsDisposed)
    form2 = new Form2();
  form2.Show();
}


Life goes very fast. Tomorrow, today is already yesterday.

modified on Wednesday, June 17, 2009 12:00 PM

GeneralRe: how to display Form2 by click button in Form1 Pin
Luc Pattyn17-Jun-09 5:56
sitebuilderLuc Pattyn17-Jun-09 5:56 
GeneralRe: how to display Form2 by click button in Form1 Pin
musefan17-Jun-09 6:01
musefan17-Jun-09 6:01 
GeneralRe: how to display Form2 by click button in Form1 Pin
led mike17-Jun-09 6:13
led mike17-Jun-09 6:13 
JokeRe: how to display Form2 by click button in Form1 Pin
musefan17-Jun-09 6:27
musefan17-Jun-09 6:27 
GeneralRe: how to display Form2 by click button in Form1 Pin
Luc Pattyn17-Jun-09 6:34
sitebuilderLuc Pattyn17-Jun-09 6:34 
GeneralRe: how to display Form2 by click button in Form1 Pin
led mike17-Jun-09 7:12
led mike17-Jun-09 7:12 
GeneralRe: how to display Form2 by click button in Form1 Pin
Luc Pattyn17-Jun-09 8:07
sitebuilderLuc Pattyn17-Jun-09 8:07 
GeneralRe: how to display Form2 by click button in Form1 Pin
led mike17-Jun-09 9:33
led mike17-Jun-09 9:33 
GeneralRe: how to display Form2 by click button in Form1 Pin
Luc Pattyn17-Jun-09 10:02
sitebuilderLuc Pattyn17-Jun-09 10:02 
GeneralRe: how to display Form2 by click button in Form1 Pin
led mike17-Jun-09 10:57
led mike17-Jun-09 10:57 
GeneralRe: how to display Form2 by click button in Form1 Pin
xingselex17-Jun-09 6:08
xingselex17-Jun-09 6:08 
GeneralRe: how to display Form2 by click button in Form1 Pin
musefan17-Jun-09 6:11
musefan17-Jun-09 6:11 
GeneralRe: how to display Form2 by click button in Form1 Pin
xingselex17-Jun-09 6:17
xingselex17-Jun-09 6:17 
GeneralRe: how to display Form2 by click button in Form1 Pin
musefan17-Jun-09 6:21
musefan17-Jun-09 6:21 
GeneralRe: how to display Form2 by click button in Form1 Pin
xingselex17-Jun-09 6:35
xingselex17-Jun-09 6:35 
GeneralRe: how to display Form2 by click button in Form1 Pin
musefan17-Jun-09 6:42
musefan17-Jun-09 6:42 
GeneralRe: how to display Form2 by click button in Form1 Pin
xingselex17-Jun-09 6:52
xingselex17-Jun-09 6:52 
GeneralRe: how to display Form2 by click button in Form1 Pin
musefan17-Jun-09 7:37
musefan17-Jun-09 7:37 
GeneralRe: how to display Form2 by click button in Form1 Pin
Christian Graus17-Jun-09 13:43
protectorChristian Graus17-Jun-09 13:43 
QuestionVerifying SSL Certificate for https Link Pin
singhdurgesh17-Jun-09 5:38
singhdurgesh17-Jun-09 5:38 
AnswerRe: Verifying SSL Certificate for https Link Pin
singhdurgesh18-Jun-09 1:24
singhdurgesh18-Jun-09 1:24 
QuestionMultiple Object Type Serialization Pin
David Muir17-Jun-09 5:34
David Muir17-Jun-09 5:34 
AnswerRe: Multiple Object Type Serialization Pin
I Believe In GOD17-Jun-09 8:41
I Believe In GOD17-Jun-09 8:41 

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.