Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
GeneralRe: using a dll in my project Pin
MoustafaS15-May-05 1:59
MoustafaS15-May-05 1:59 
GeneralRe: using a dll in my project Pin
Anonymous15-May-05 2:05
Anonymous15-May-05 2:05 
GeneralRe: using a dll in my project Pin
Anonymous15-May-05 2:12
Anonymous15-May-05 2:12 
GeneralRe: using a dll in my project Pin
MoustafaS15-May-05 2:16
MoustafaS15-May-05 2:16 
GeneralAsynchronous Client/Server messages Pin
methodincharge14-May-05 23:37
methodincharge14-May-05 23:37 
GeneralRe: Asynchronous Client/Server messages Pin
S. Senthil Kumar15-May-05 2:53
S. Senthil Kumar15-May-05 2:53 
GeneralRe: Asynchronous Client/Server messages Pin
methodincharge15-May-05 7:13
methodincharge15-May-05 7:13 
GeneralRe: Asynchronous Client/Server messages Pin
S. Senthil Kumar15-May-05 7:25
S. Senthil Kumar15-May-05 7:25 
GeneralRe: Asynchronous Client/Server messages Pin
methodincharge16-May-05 7:34
methodincharge16-May-05 7:34 
GeneralPower Builder Pin
quocbao14-May-05 21:26
quocbao14-May-05 21:26 
GeneralCheck if a user is a member of a local group Pin
Johny Ng14-May-05 19:42
Johny Ng14-May-05 19:42 
Generalc# and DCOM Pin
Millzy14-May-05 10:22
Millzy14-May-05 10:22 
GeneralVoice Over IP Pin
charbelzibara14-May-05 9:20
charbelzibara14-May-05 9:20 
GeneralRe: Voice Over IP Pin
Dave Kreskowiak15-May-05 5:57
mveDave Kreskowiak15-May-05 5:57 
GeneralDateTime Pin
Bahadir Cambel14-May-05 9:15
Bahadir Cambel14-May-05 9:15 
GeneralRe: DateTime Pin
quilkin14-May-05 10:34
quilkin14-May-05 10:34 
GeneralRe: DateTime Pin
Luis Alonso Ramos14-May-05 17:13
Luis Alonso Ramos14-May-05 17:13 
GeneralRe: DateTime Pin
pubududilena15-May-05 18:15
pubududilena15-May-05 18:15 
GeneralNewbie: Q regarding Sorting DataGrid Pin
nad226314-May-05 8:36
nad226314-May-05 8:36 
GeneralRe: Newbie: Q regarding Sorting DataGrid Pin
MoustafaS14-May-05 14:41
MoustafaS14-May-05 14:41 
GeneralRe: Newbie: Q regarding Sorting DataGrid Pin
nad226314-May-05 18:21
nad226314-May-05 18:21 
GeneralRe: Newbie: Q regarding Sorting DataGrid Pin
Gary Perkin17-May-05 5:58
Gary Perkin17-May-05 5:58 
GeneralRe: Newbie: Q regarding Sorting DataGrid Pin
nad226318-May-05 10:39
nad226318-May-05 10:39 
Generali have the same problem also Pin
snouto14-May-05 8:00
snouto14-May-05 8:00 
GeneralRe: i have the same problem also Pin
Polis Pilavas14-May-05 8:10
Polis Pilavas14-May-05 8:10 
I have tried to answer this question on your previous post. There are many ways to achieve what you are trying. First of all, a form is a class like any other ordinary class. Say you have a textbox named text1 which is declared as public within your class Form1 and you use it for letting users write down their username. Then to send its value to a different class, named AnotherClass, from within class Form1 (which is the current form) you could say something like:
AnotherClass myClass = new AnotherClass();
myClass.userName = this.text1.text;

OR
//Assuming that you have overloaded its constructor properly
AnotherClass myClass = new AnotherClass(this.text1.text);


Hope this helps

Regards,
Polis

Can you practice what you teach?

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.