Click here to Skip to main content
15,921,793 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: C# calling forms Pin
Paul Conrad7-Mar-08 14:47
professionalPaul Conrad7-Mar-08 14:47 
GeneralRe: C# calling forms Pin
Pete O'Hanlon9-Mar-08 10:50
mvePete O'Hanlon9-Mar-08 10:50 
GeneralRe: C# calling forms Pin
Paul Conrad9-Mar-08 11:00
professionalPaul Conrad9-Mar-08 11:00 
GeneralRe: C# calling forms Pin
Christian Graus7-Mar-08 23:10
protectorChristian Graus7-Mar-08 23:10 
GeneralRe: C# calling forms Pin
PRACTICE7-Mar-08 18:49
PRACTICE7-Mar-08 18:49 
GeneralRe: C# calling forms Pin
Christian Graus8-Mar-08 10:58
protectorChristian Graus8-Mar-08 10:58 
GeneralRe: C# calling forms Pin
Pete O'Hanlon7-Mar-08 9:09
mvePete O'Hanlon7-Mar-08 9:09 
GeneralRe: C# calling forms Pin
Gregory Bryant7-Mar-08 12:22
Gregory Bryant7-Mar-08 12:22 
Since you couldnt help here is how you do it declare a public, static variable of type Form1 just below the Form1 class declaration. I’ve named the variable frm1

public static Form1 frm1 = null;

then when you show form2

frm1 = this;
this.Visible = false;
Form2 frm2 = new Form2();
frm2.Show();

then from form2 you can call

Form1.frm1.show();
so thanks for all your help lol
GeneralRe: C# calling forms Pin
Paul Conrad7-Mar-08 14:49
professionalPaul Conrad7-Mar-08 14:49 
GeneralRe: C# calling forms Pin
Christian Graus7-Mar-08 23:14
protectorChristian Graus7-Mar-08 23:14 
GeneralRe: C# calling forms Pin
Pete O'Hanlon8-Mar-08 3:23
mvePete O'Hanlon8-Mar-08 3:23 
JokeRe: C# calling forms Pin
Christian Graus8-Mar-08 11:29
protectorChristian Graus8-Mar-08 11:29 
GeneralRe: C# calling forms Pin
Pete O'Hanlon9-Mar-08 10:48
mvePete O'Hanlon9-Mar-08 10:48 
QuestionCenter align items in combo box Pin
Bala Thirumalai6-Mar-08 20:15
Bala Thirumalai6-Mar-08 20:15 
GeneralRe: Center align items in combo box Pin
led mike7-Mar-08 4:45
led mike7-Mar-08 4:45 
GeneralRe: Center align items in combo box Pin
Gregory Bryant7-Mar-08 6:59
Gregory Bryant7-Mar-08 6:59 
GeneralRe: Center align items in combo box [modified] Pin
Bala Thirumalai7-Mar-08 15:44
Bala Thirumalai7-Mar-08 15:44 
GeneralUse Security Trimming on a WinForm... Pin
Illegal Operation6-Mar-08 1:19
Illegal Operation6-Mar-08 1:19 
GeneralRe: Use Security Trimming on a WinForm... Pin
led mike6-Mar-08 4:56
led mike6-Mar-08 4:56 
GeneralRe: Use Security Trimming on a WinForm... Pin
Pete O'Hanlon6-Mar-08 10:04
mvePete O'Hanlon6-Mar-08 10:04 
QuestionGlobally detect windows context menu popup [modified] Pin
AndrewVos4-Mar-08 1:00
AndrewVos4-Mar-08 1:00 
GeneralRe: Globally detect windows context menu popup Pin
Giorgi Dalakishvili4-Mar-08 1:26
mentorGiorgi Dalakishvili4-Mar-08 1:26 
GeneralRe: Globally detect windows context menu popup Pin
AndrewVos5-Mar-08 22:52
AndrewVos5-Mar-08 22:52 
Generalhelp needed in deploying windows application Pin
Sadaf Naeem3-Mar-08 22:30
Sadaf Naeem3-Mar-08 22:30 
GeneralRe: help needed in deploying windows application Pin
yogesh_kumar_agarwal3-Mar-08 22:53
yogesh_kumar_agarwal3-Mar-08 22: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.