Click here to Skip to main content
15,903,033 members
Home / Discussions / C#
   

C#

 
GeneralPlease Help! Function on Separate Form Pin
DJdC8-Jun-05 22:56
DJdC8-Jun-05 22:56 
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 
You need to get a reference to Form1.
+ if Form2 has an instance of Form1, for example f1, then call f1.components()
+ else you iterate through all open form, and find a form whose name is Form1'name, and then cast this form to Form1 and call the method. example
Form f1 = "Open form whose name is Form1's name";
((Form1)f1).components();
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 
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 

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.