Click here to Skip to main content
15,887,425 members
Home / Discussions / C#
   

C#

 
GeneralRe: VC# 2008 Pin
AlucardCode13-Jan-10 3:19
AlucardCode13-Jan-10 3:19 
AnswerRe: VC# 2008 Pin
DaveyM6913-Jan-10 3:06
professionalDaveyM6913-Jan-10 3:06 
GeneralRe: VC# 2008 Pin
AlucardCode13-Jan-10 3:21
AlucardCode13-Jan-10 3:21 
AnswerRe: VC# 2008 Pin
Rick Shaub13-Jan-10 3:21
Rick Shaub13-Jan-10 3:21 
Questioncombining 2 codes Pin
djsproject13-Jan-10 1:35
djsproject13-Jan-10 1:35 
AnswerRe: combining 2 codes Pin
0x3c013-Jan-10 2:25
0x3c013-Jan-10 2:25 
GeneralRe: combining 2 codes Pin
djsproject16-Jan-10 8:09
djsproject16-Jan-10 8:09 
QuestionSet the parent textbox value from child form Pin
pavanig912-Jan-10 23:37
pavanig912-Jan-10 23:37 
Hi,

I am developing one application in that one parent form is there if i click on button it will open child form. Now i want to transfer data from child form to textbox in parent form.
I have tried the following code.
private string childMessage;
ChannelingServices.Cs(Parent)
public string ChildMessage
{
get { return childMessage; }
set { childMessage = value; }
}
public void UpdateMessage()
{
doctorid = ChildMessage;
txtDoctorId.Text = doctorid; //This is the destination textbox
}

private void btngetchilddata_Click(object sender, EventArgs e)
{
DoctorSearchWizard doctorsearch = new DoctorSearchWizard();
doctorsearch.Show();
this.Close();
}
DoctorSearchWizard.Cs(Child)
private void btnapply_Click(object sender, EventArgs e)
{
ChannelingServices.ChildMessage = txtdata.Text;
ChannelingServices.UpdateMessage();
}
But while debugging its UpdateMessage method showing value in textbox but after execution in form it doesn't contains any value in textbox.
Please tell me how to solve this problem.Or can you please suggest me how to pass data from child to parent textbox in form.


Thanks&Regards
Pavani
AnswerRe: Set the parent textbox value from child form Pin
Harvey Saayman12-Jan-10 23:42
Harvey Saayman12-Jan-10 23:42 
GeneralRe: Set the parent textbox value from child form Pin
pavanig913-Jan-10 0:52
pavanig913-Jan-10 0:52 
GeneralRe: Set the parent textbox value from child form Pin
Harvey Saayman13-Jan-10 0:55
Harvey Saayman13-Jan-10 0:55 
AnswerRe: Set the parent textbox value from child form Pin
DaveyM6913-Jan-10 0:22
professionalDaveyM6913-Jan-10 0:22 
QuestionDataGridView: SelectRow if EditMode=EditOnEnter Pin
Nigel Mackay12-Jan-10 23:33
Nigel Mackay12-Jan-10 23:33 
AnswerRe: DataGridView: SelectRow if EditMode=EditOnEnter Pin
Herman<T>.Instance13-Jan-10 7:45
Herman<T>.Instance13-Jan-10 7:45 
GeneralRe: DataGridView: SelectRow if EditMode=EditOnEnter Pin
Nigel Mackay13-Jan-10 18:25
Nigel Mackay13-Jan-10 18:25 
QuestionVirtualMode DataGridView - user presses Esc while editing Pin
Nigel Mackay12-Jan-10 23:31
Nigel Mackay12-Jan-10 23:31 
Questionpdf to text Pin
prem212-Jan-10 23:13
prem212-Jan-10 23:13 
AnswerRe: pdf to text Pin
SeMartens12-Jan-10 23:15
SeMartens12-Jan-10 23:15 
QuestionHow To directly Print Using Microsoft.Reporting.WinForms.ReportViewer Pin
Thaer Hamael12-Jan-10 22:23
Thaer Hamael12-Jan-10 22:23 
AnswerRe: How To directly Print Using Microsoft.Reporting.WinForms.ReportViewer Pin
Eddy Vluggen13-Jan-10 1:12
professionalEddy Vluggen13-Jan-10 1:12 
GeneralRe: How To directly Print Using Microsoft.Reporting.WinForms.ReportViewer Pin
Thaer Hamael13-Jan-10 1:38
Thaer Hamael13-Jan-10 1:38 
GeneralRe: How To directly Print Using Microsoft.Reporting.WinForms.ReportViewer Pin
Eddy Vluggen13-Jan-10 2:16
professionalEddy Vluggen13-Jan-10 2:16 
QuestionSystem.Runtime.InteropServices.COMException (0x80040154) Pin
Priya Prk12-Jan-10 20:48
Priya Prk12-Jan-10 20:48 
AnswerRe: System.Runtime.InteropServices.COMException (0x80040154) Pin
OriginalGriff12-Jan-10 23:09
mveOriginalGriff12-Jan-10 23:09 
AnswerRe: System.Runtime.InteropServices.COMException (0x80040154) Pin
Priya Prk13-Jan-10 8:39
Priya Prk13-Jan-10 8:39 

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.