abidmunirmalik
Programmer
Hi there,
I am trying to make a simple Notepad in VB.Net.
I have one main form and i have a Rich Text Box on it.
Now when user click on Edit-->Find , a new small window appear(Form) same like in Notepad we see.
Now when i click on FindNext Button it will not take me to the main form where i have my Rich Text Box.
I thouhgt frmFind has no idea about frmMain, so i declare a object of type frmMain and i open it in FindNext Button Click event.
Now it is opening a brand new frmMain with no text on it.
I am confuse here, like in Visual Basic if you want to refer a control of another form, you simple say OtherForm.Control.Property But here it is not working like that.
i am new to VB.Net so i dont know how to handle this in VB.Net .
can anyone give me any suggestion what should i do to accomplish this.
Thanks for any of your suggestions.
Regards
Abid
I am trying to make a simple Notepad in VB.Net.
I have one main form and i have a Rich Text Box on it.
Now when user click on Edit-->Find , a new small window appear(Form) same like in Notepad we see.
Now when i click on FindNext Button it will not take me to the main form where i have my Rich Text Box.
I thouhgt frmFind has no idea about frmMain, so i declare a object of type frmMain and i open it in FindNext Button Click event.
Now it is opening a brand new frmMain with no text on it.
I am confuse here, like in Visual Basic if you want to refer a control of another form, you simple say OtherForm.Control.Property But here it is not working like that.
i am new to VB.Net so i dont know how to handle this in VB.Net .
can anyone give me any suggestion what should i do to accomplish this.
Thanks for any of your suggestions.
Regards
Abid