Click here to Skip to main content
15,902,736 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get reference to Form1. Pin
Dave Kreskowiak9-Jun-05 16:13
mveDave Kreskowiak9-Jun-05 16:13 
GeneralRe: Get reference to Form1. Pin
Christian Graus9-Jun-05 16:16
protectorChristian Graus9-Jun-05 16:16 
GeneralReply to Dave's Solution Pin
DJdC9-Jun-05 15:42
DJdC9-Jun-05 15:42 
GeneralRe: Reply to Dave's Solution Pin
Dave Kreskowiak9-Jun-05 16:16
mveDave Kreskowiak9-Jun-05 16:16 
GeneralRe: Reply to Dave's Solution Pin
Christian Graus9-Jun-05 16:17
protectorChristian Graus9-Jun-05 16:17 
GeneralRe: Reply to Dave's Solution Pin
Dave Kreskowiak10-Jun-05 1:32
mveDave Kreskowiak10-Jun-05 1:32 
GeneralRe: Reply to Dave's Solution Pin
Christian Graus13-Jun-05 12:10
protectorChristian Graus13-Jun-05 12:10 
GeneralReply to Fantas's Solution Pin
DJdC9-Jun-05 15:37
DJdC9-Jun-05 15:37 
Hey man thanks for the suggestion, you make quite alot of sense and I think its exactly what I need to do but unfortunately it still doesn't work. The function is just simply not called. So I took your advice and I did

private void button1_Click(object sender, System.EventArgs e)
{
Form1 form = new Form1();
form.components();
this.Close();
}
in Form2 and only my Form2 closed without Form1 doing what it was suppose to do. It basically adds a shitload of components to itself with this.Controls.Add and yeah it didn't work. Or if you think its quite crap, still not even this works

private void button1_Click(object sender, System.EventArgs e)
{
Form1 form = new Form1();
form.Close();
this.Close();
}

even though both times were ABLE TO BE COMPILED. so maybe you might have a suggestion as to why? May I'm not doing my classes or namespace or the USING commands properly. Both forms belong to a namespace called webtest and the classes Form1 and Form2 are on different pages using Visual Studio 2003. Please help man, I'd very much appreciate it, thanks! Big Grin | :-D
GeneralRe: Reply to Fantas's Solution Pin
Christian Graus9-Jun-05 16:21
protectorChristian Graus9-Jun-05 16:21 
GeneralReply to Christian's Solution Pin
DJdC9-Jun-05 15:48
DJdC9-Jun-05 15:48 
GeneralRe: Reply to Christian's Solution Pin
Christian Graus9-Jun-05 15:53
protectorChristian Graus9-Jun-05 15:53 
GeneralReRe: Reply to Christian's Solution Pin
DJdC9-Jun-05 16:26
DJdC9-Jun-05 16:26 
GeneralRe: ReRe: Reply to Christian's Solution Pin
Christian Graus9-Jun-05 16:34
protectorChristian Graus9-Jun-05 16:34 
GeneralReRe: ReRe: Reply to Christian's Solution Pin
DJdC9-Jun-05 17:06
DJdC9-Jun-05 17:06 
GeneralRe: ReRe: ReRe: Reply to Christian's Solution Pin
Christian Graus9-Jun-05 17:12
protectorChristian Graus9-Jun-05 17:12 
GeneralReRe: ReRe: ReRe: Reply to Christian's Solution Pin
DJdC9-Jun-05 17:45
DJdC9-Jun-05 17:45 
GeneralRe: ReRe: ReRe: ReRe: Reply to Christian's Solution Pin
Christian Graus9-Jun-05 17:51
protectorChristian Graus9-Jun-05 17:51 
GeneralReRe: ReRe: ReRe: ReRe: Reply to Christian's Solution Pin
DJdC9-Jun-05 19:10
DJdC9-Jun-05 19:10 
GeneralRe: ReRe: ReRe: ReRe: ReRe: Reply to Christian's Solution Pin
Christian Graus13-Jun-05 11:56
protectorChristian Graus13-Jun-05 11:56 
GeneralRe: Please Help! Function on Separate Form Pin
Jack Bond13-Jun-05 2:23
Jack Bond13-Jun-05 2:23 
GeneralGame Programming Pin
Sabry19058-Jun-05 22:55
Sabry19058-Jun-05 22:55 
GeneralRe: Game Programming Pin
Philip Price8-Jun-05 23:20
Philip Price8-Jun-05 23:20 
GeneralRe: Game Programming Pin
MoustafaS9-Jun-05 0:49
MoustafaS9-Jun-05 0:49 
GeneralRe: Game Programming Pin
Christian Graus9-Jun-05 17:52
protectorChristian Graus9-Jun-05 17:52 
GeneralRe: Game Programming Pin
JDUK12-Jun-05 11:53
JDUK12-Jun-05 11: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.