Groups | Blog | Home
all groups > dotnet windows forms > april 2004 >

dotnet windows forms : Access to other forms objects


Thom Little
4/25/2004 11:28:52 AM
Have the handler for Form 1 call Form 2. Something like ...

private void mnuAbout_Click( object sender, System.EventArgs e )
{
Form frm = new frmAbout( );
frm.ShowDialog( this );
}

--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--

[quoted text, click to view]

SOS
4/25/2004 7:24:07 PM
Hi guys ,
i have 2 win from in my app. and i have a text box on my from 1.
how can i a access to this text box from form 2 ?

Thanx

SOS
4/26/2004 9:06:51 PM
Thanx,
but i want to change the text of TextBox on form2 .
How ?


[quoted text, click to view]

Remigiusz Samosiuk
4/27/2004 8:18:00 AM
If both forms are in the same application, you can create service object
that allows you to comunicate with other forms.

Here is good article about it:
http://www.urbanpotato.net/default.aspx/document/1757

Regards
Remi Samosiuk




[quoted text, click to view]

AddThis Social Bookmark Button