Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
GeneralRe: tapi communication over the LAN Pin
Dave Kreskowiak15-May-04 9:21
mveDave Kreskowiak15-May-04 9:21 
GeneralRe: tapi communication over the LAN Pin
Member 69108916-May-04 2:53
Member 69108916-May-04 2:53 
GeneralRe: tapi communication over the LAN Pin
Dave Kreskowiak16-May-04 4:22
mveDave Kreskowiak16-May-04 4:22 
GeneralRe: tapi communication over the LAN Pin
Member 69108916-May-04 7:57
Member 69108916-May-04 7:57 
GeneralRe: tapi communication over the LAN Pin
Dave Kreskowiak16-May-04 11:52
mveDave Kreskowiak16-May-04 11:52 
GeneralRe: tapi communication over the LAN Pin
andré_k28-Dec-04 21:49
andré_k28-Dec-04 21:49 
GeneralPassing data between forms Pin
pj4FarEweDsf14-May-04 14:35
pj4FarEweDsf14-May-04 14:35 
GeneralRe: Passing data between forms Pin
Meysam Mahfouzi14-May-04 16:05
Meysam Mahfouzi14-May-04 16:05 
Pass an instance of Form1 to constructor of Form2 when instanciating, something like this:

Form2 frm2 = new Form2(this);

Then in Form2, you have access to all public and internal variables of Form1, so you can define a property of your Lable1 in Form1:

public string MyLable{
get{
    return this.Lable1.Text;
}
set{
}
    this.Lable1.Text = value;
}

and in Form2, when the user clicks on Button1, do this:

frm1.MyLable = TextBox1.Text;


frm1 is a variable of type Form1 that holds a refrence to Form1 which has been passed to constructor of Form2.


abcdabcdabcdabcda

Don't forget, that's
Persian Gulf
not Arabian gulf!


Why do we close our eyes, when we dream?, When we cry?, When we imagine?, When we kiss?, Its because the most beautiful things in the world are unseen



Murphy:
Click Here![^]

I'm thirsty like sun, more landless than wind...

GeneralRe: Passing data between forms Pin
Jeff Varszegi15-May-04 6:23
professionalJeff Varszegi15-May-04 6:23 
GeneralTicker –Gimme Some Desktop property.. Pin
Eustov14-May-04 13:56
Eustov14-May-04 13:56 
General"DataGrid received an exception at design time. Please reset the DataSource and DataMember property on the grid." Pin
turtle9549214-May-04 11:37
turtle9549214-May-04 11:37 
GeneralRedrawing form borders Pin
PhineasPhreak14-May-04 10:41
PhineasPhreak14-May-04 10:41 
GeneralRe: Redrawing form borders Pin
Heath Stewart14-May-04 11:05
protectorHeath Stewart14-May-04 11:05 
GeneralRe: Redrawing form borders Pin
PhineasPhreak14-May-04 23:26
PhineasPhreak14-May-04 23:26 
GeneralRe: Redrawing form borders Pin
Heath Stewart16-May-04 11:23
protectorHeath Stewart16-May-04 11:23 
GeneralCrystal Report Formatting question Pin
Chris#14-May-04 10:23
Chris#14-May-04 10:23 
GeneralRe: Crystal Report Formatting question Pin
TigerNinja_14-May-04 13:40
TigerNinja_14-May-04 13:40 
Generalrowstate changes to Unchanged when sybasecommandbuilder is created Pin
CodeAgnostic14-May-04 9:55
CodeAgnostic14-May-04 9:55 
GeneralRe: rowstate changes to Unchanged when sybasecommandbuilder is created Pin
Heath Stewart14-May-04 10:39
protectorHeath Stewart14-May-04 10:39 
GeneralRe: rowstate changes to Unchanged when sybasecommandbuilder is created Pin
CodeAgnostic14-May-04 11:00
CodeAgnostic14-May-04 11:00 
GeneralSimple language question Pin
Joel Holdsworth14-May-04 9:08
Joel Holdsworth14-May-04 9:08 
GeneralRe: Simple language question Pin
Nemanja Trifunovic14-May-04 9:19
Nemanja Trifunovic14-May-04 9:19 
GeneralRe: Simple language question Pin
Joel Holdsworth14-May-04 9:34
Joel Holdsworth14-May-04 9:34 
GeneralRe: Simple language question Pin
Judah Gabriel Himango14-May-04 9:49
sponsorJudah Gabriel Himango14-May-04 9:49 
GeneralRe: Simple language question Pin
Nemanja Trifunovic14-May-04 10:11
Nemanja Trifunovic14-May-04 10:11 

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.