Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
QuestionRead a value from another form ! Pin
mrkeivan10-Aug-07 21:25
mrkeivan10-Aug-07 21:25 
AnswerRe: Read a value from another form ! Pin
Hessam Jalali10-Aug-07 21:49
Hessam Jalali10-Aug-07 21:49 
AnswerRe: Read a value from another form ! Pin
Giorgi Dalakishvili10-Aug-07 22:16
mentorGiorgi Dalakishvili10-Aug-07 22:16 
AnswerRe: Read a value from another form ! Pin
Michael Sync12-Aug-07 4:04
Michael Sync12-Aug-07 4:04 
Questionmdi parent form Pin
monuSaini10-Aug-07 20:09
monuSaini10-Aug-07 20:09 
AnswerRe: mdi parent form Pin
Hessam Jalali10-Aug-07 20:36
Hessam Jalali10-Aug-07 20:36 
GeneralRe: mdi parent form Pin
monuSaini10-Aug-07 20:58
monuSaini10-Aug-07 20:58 
GeneralRe: mdi parent form Pin
Hessam Jalali10-Aug-07 21:09
Hessam Jalali10-Aug-07 21:09 
Are you sure you pass a form to it ??!!

if you don't pass mdiForm always, you must check it for being not null for changing the text.

here is the code I checked it right now and it works!

<br />
<br />
namespace TestForms<br />
{<br />
    public partial class Form1 : Form<br />
    {<br />
        Form2 frm;<br />
        public Form1(Form2 frm)<br />
        {<br />
            InitializeComponent();<br />
            this.frm = frm;<br />
        }<br />
<br />
        private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            frm.label1.Text = "Hello";<br />
<br />
        }<br />
    }<br />
<br />
<br />
<br />
// the mdi form<br />
    public partial class Form2 : Form<br />
    {<br />
        public Form2()<br />
        {<br />
            InitializeComponent();<br />
            Form1 frm = new Form1(this);<br />
            frm.Show();<br />
        }<br />
    }<br />
}<br />
<br />


Hope this one helps
Questioninternal /internal protected Pin
Sonia Gupta10-Aug-07 19:07
Sonia Gupta10-Aug-07 19:07 
GeneralRe: internal /internal protected Pin
Guffa11-Aug-07 2:10
Guffa11-Aug-07 2:10 
GeneralRe: internal /internal protected Pin
chinaQI11-Aug-07 6:39
chinaQI11-Aug-07 6:39 
QuestionThumbnail Pin
sathishkumar198210-Aug-07 18:44
sathishkumar198210-Aug-07 18:44 
AnswerRe: Thumbnail Pin
Csharp™11-Aug-07 23:24
Csharp™11-Aug-07 23:24 
QuestionAddDomain.Load() Pin
BoneSoft10-Aug-07 16:54
BoneSoft10-Aug-07 16:54 
QuestionToolStrip drags Pin
juFo10-Aug-07 13:15
juFo10-Aug-07 13:15 
Questionduplex images on a printer Pin
cmarmr10-Aug-07 11:04
cmarmr10-Aug-07 11:04 
QuestionCrystal Report Problem ! Pin
mrkeivan10-Aug-07 10:12
mrkeivan10-Aug-07 10:12 
AnswerRe: Crystal Report Problem ! Pin
Sonia Gupta10-Aug-07 18:18
Sonia Gupta10-Aug-07 18:18 
GeneralRe: Crystal Report Problem ! Pin
mrkeivan10-Aug-07 20:38
mrkeivan10-Aug-07 20:38 
AnswerRe: Crystal Report Problem ! Pin
Imranlogi12-Aug-07 21:00
Imranlogi12-Aug-07 21:00 
QuestionDeleting rows from a dataset Pin
tthellebuyck10-Aug-07 9:54
tthellebuyck10-Aug-07 9:54 
QuestionRegEx Headache Pin
Expert Coming10-Aug-07 9:49
Expert Coming10-Aug-07 9:49 
AnswerRe: RegEx Headache Pin
Expert Coming10-Aug-07 18:48
Expert Coming10-Aug-07 18:48 
GeneralRe: RegEx Headache Pin
Paul Conrad11-Aug-07 4:42
professionalPaul Conrad11-Aug-07 4:42 
QuestionCompiling DLL with Embeded XML Pin
Fred Fournier10-Aug-07 7:25
Fred Fournier10-Aug-07 7:25 

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.