Click here to Skip to main content
16,007,843 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multi Language in Dont Net Pin
Syed Shahid Hussain2-Mar-10 3:15
Syed Shahid Hussain2-Mar-10 3:15 
QuestionProject Version Pin
jojoba20112-Mar-10 0:04
jojoba20112-Mar-10 0:04 
AnswerRe: Project Version Pin
Rashmi_Karnam2-Mar-10 1:01
Rashmi_Karnam2-Mar-10 1:01 
AnswerRe: Project Version Pin
carlecomm2-Mar-10 18:04
carlecomm2-Mar-10 18:04 
QuestionPassing strings between windows forms Pin
Phil Saville1-Mar-10 23:26
Phil Saville1-Mar-10 23:26 
AnswerRe: Passing strings between windows forms Pin
OriginalGriff1-Mar-10 23:51
mveOriginalGriff1-Mar-10 23:51 
AnswerRe: Passing strings between windows forms Pin
DaveyM692-Mar-10 1:01
professionalDaveyM692-Mar-10 1:01 
AnswerRe: Passing strings between windows forms Pin
Som Shekhar2-Mar-10 1:03
Som Shekhar2-Mar-10 1:03 
depends.

1. Is the form2 being opened when the button is pressed in the form1?

in that case, you should pass the string through constructor of the form2.

somthing like:

class Form1:Form
{
button1_Click
{
Form2 form2 = new Form2("My Text");
}
}

class Form2:Form
{
public Form2(string caption)
{
this.Text = caption;
}
}


2. If the two forms are open together, then it is a bit tricky. You will need to either implement custom events or use static class with timer.
GeneralRe: Passing strings between windows forms Pin
Syed Shahid Hussain2-Mar-10 1:27
Syed Shahid Hussain2-Mar-10 1:27 
GeneralRe: Passing strings between windows forms Pin
OriginalGriff2-Mar-10 1:52
mveOriginalGriff2-Mar-10 1:52 
GeneralRe: Passing strings between windows forms Pin
Phil Saville2-Mar-10 2:28
Phil Saville2-Mar-10 2:28 
GeneralRe: Passing strings between windows forms Pin
Phil Saville2-Mar-10 2:46
Phil Saville2-Mar-10 2:46 
GeneralRe: Passing strings between windows forms Pin
Rasepretrep22-Mar-10 4:03
Rasepretrep22-Mar-10 4:03 
GeneralRe: Passing strings between windows forms Pin
Phil Saville2-Mar-10 4:18
Phil Saville2-Mar-10 4:18 
GeneralRe: Passing strings between windows forms Pin
OriginalGriff2-Mar-10 4:34
mveOriginalGriff2-Mar-10 4:34 
AnswerRe: Passing strings between windows forms Pin
DX Roster4-Mar-10 18:38
DX Roster4-Mar-10 18:38 
QuestionExporting DataGridView to excel Pin
Hum Dum1-Mar-10 23:18
Hum Dum1-Mar-10 23:18 
AnswerRe: Exporting DataGridView to excel Pin
Rashmi_Karnam2-Mar-10 0:13
Rashmi_Karnam2-Mar-10 0:13 
AnswerRe: Exporting DataGridView to excel Pin
Dan Mos2-Mar-10 1:30
Dan Mos2-Mar-10 1:30 
GeneralRe: Exporting DataGridView to excel Pin
Hum Dum2-Mar-10 2:04
Hum Dum2-Mar-10 2:04 
GeneralRe: Exporting DataGridView to excel [modified] Pin
Dan Mos2-Mar-10 2:17
Dan Mos2-Mar-10 2:17 
QuestionControl Authoring OnPaint not working as expected Pin
TheFoZ1-Mar-10 22:54
TheFoZ1-Mar-10 22:54 
AnswerRe: Control Authoring OnPaint not working as expected Pin
OriginalGriff1-Mar-10 23:54
mveOriginalGriff1-Mar-10 23:54 
GeneralRe: Control Authoring OnPaint not working as expected Pin
TheFoZ1-Mar-10 23:56
TheFoZ1-Mar-10 23:56 
QuestionC# - Fill a .xlsx / .xls - file with data based on a grid Pin
Mschauder1-Mar-10 22:44
Mschauder1-Mar-10 22:44 

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.