Click here to Skip to main content
15,917,859 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please Help! Function on Separate Form Pin
Carsten Zeumer8-Jun-05 23:19
Carsten Zeumer8-Jun-05 23:19 
GeneralCadi's Solution Pin
DJdC8-Jun-05 23:45
DJdC8-Jun-05 23:45 
GeneralRe: Cadi's Solution Pin
Carsten Zeumer9-Jun-05 0:03
Carsten Zeumer9-Jun-05 0:03 
GeneralRe: Please Help! Function on Separate Form Pin
S. Senthil Kumar8-Jun-05 23:21
S. Senthil Kumar8-Jun-05 23:21 
GeneralSenthil's Solution Pin
DJdC8-Jun-05 23:41
DJdC8-Jun-05 23:41 
GeneralRe: Please Help! Function on Separate Form Pin
Christian Graus9-Jun-05 0:52
protectorChristian Graus9-Jun-05 0:52 
GeneralGet reference to Form1. Pin
Khoa Bui9-Jun-05 3:05
Khoa Bui9-Jun-05 3:05 
GeneralRe: Get reference to Form1. Pin
Dave Kreskowiak9-Jun-05 6:29
mveDave Kreskowiak9-Jun-05 6:29 
GeneralRe: Get reference to Form1. Pin
Christian Graus9-Jun-05 11:18
protectorChristian Graus9-Jun-05 11:18 
GeneralRe: Get reference to Form1. Pin
Dave Kreskowiak9-Jun-05 14:55
mveDave Kreskowiak9-Jun-05 14:55 
GeneralRe: Get reference to Form1. Pin
Christian Graus9-Jun-05 14:58
protectorChristian Graus9-Jun-05 14:58 
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 

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.