Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
AnswerRe: Including a "using System.X" object Pin
mav.northwind15-Jul-07 3:08
mav.northwind15-Jul-07 3:08 
QuestionEmail Pin
mcaos15-Jul-07 2:10
professionalmcaos15-Jul-07 2:10 
AnswerRe: Email Pin
martin_hughes15-Jul-07 3:12
martin_hughes15-Jul-07 3:12 
AnswerRe: Email Pin
mav.northwind15-Jul-07 3:15
mav.northwind15-Jul-07 3:15 
QuestionAppend new node to XML file Pin
saud_a_k15-Jul-07 1:34
saud_a_k15-Jul-07 1:34 
AnswerRe: Append new node to XML file Pin
mav.northwind15-Jul-07 2:18
mav.northwind15-Jul-07 2:18 
GeneralRe: Append new node to XML file Pin
saud_a_k15-Jul-07 19:25
saud_a_k15-Jul-07 19:25 
Questionhow to pass variable between classes in window application Pin
mhp13015-Jul-07 0:00
mhp13015-Jul-07 0:00 
Hi,there

I have a window application in C# (vs2003), I have one form class(Form1) and the Main[] located in the other class - MyProjectMain,

how do I pass variable between those two classes, for example I want to pass the arg[] that Main[] gets and populate in textBox1 of Form1?

Thanks a lot for your help,




namespace MyProject1
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textBox1;
}
...

}


namespace MyProject1
{

public class MyprojectMain
{
[STAThread]
public static void Main(string[] args)
{
Application.Run(new Form1());
}
}
AnswerRe: how to pass variable between classes in window application Pin
Guffa15-Jul-07 0:11
Guffa15-Jul-07 0:11 
GeneralRe: how to pass variable between classes in window application Pin
mhp13015-Jul-07 0:13
mhp13015-Jul-07 0:13 
AnswerRe: how to pass variable between classes in window application Pin
Muhammad Gouda15-Jul-07 0:17
Muhammad Gouda15-Jul-07 0:17 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 1:15
Colin Angus Mackay15-Jul-07 1:15 
GeneralRe: how to pass variable between classes in window application Pin
Muhammad Gouda15-Jul-07 1:30
Muhammad Gouda15-Jul-07 1:30 
GeneralRe: how to pass variable between classes in window application Pin
Luc Pattyn15-Jul-07 1:47
sitebuilderLuc Pattyn15-Jul-07 1:47 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 2:05
Colin Angus Mackay15-Jul-07 2:05 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 1:08
Colin Angus Mackay15-Jul-07 1:08 
QuestionWindows Form in web form Pin
ankit_mait14-Jul-07 23:03
ankit_mait14-Jul-07 23:03 
AnswerRe: Windows Form in web form Pin
Manas Bhardwaj14-Jul-07 23:28
professionalManas Bhardwaj14-Jul-07 23:28 
GeneralRe: Windows Form in web form Pin
Christian Graus15-Jul-07 6:19
protectorChristian Graus15-Jul-07 6:19 
GeneralRe: Windows Form in web form Pin
ankit_mait16-Jul-07 6:26
ankit_mait16-Jul-07 6:26 
AnswerRe: Windows Form in web form Pin
WillemM14-Jul-07 23:40
WillemM14-Jul-07 23:40 
Questionbutton appearance Pin
Maddie from Dartford14-Jul-07 22:02
Maddie from Dartford14-Jul-07 22:02 
AnswerRe: button appearance Pin
mav.northwind14-Jul-07 22:18
mav.northwind14-Jul-07 22:18 
GeneralRe: button appearance Pin
Maddie from Dartford14-Jul-07 22:28
Maddie from Dartford14-Jul-07 22:28 
Questionabout using dataset.xsd Pin
abstar14-Jul-07 20:31
abstar14-Jul-07 20:31 

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.