Nicholas,
Thanks for the sites - I've been browsing them most of the
day and picked up bits and pieces - thanks again.
I must say I'm a bit dumb though - no matter what I tinker
with I can't get form2 to 'see' any of the data from form1.
For example, I have a text box named txtDrv and I want to
be able to pass txtDrv.Text as a string in form1 and
form2 - form1 is fine, but as I say, I can't get form2 to
see it.
I'm sure it's not that hard but I'm being dumber than
usual I think :) so any help would be great, even if
someone can spare the time to give me an example of what
to type and where to put it in the code.
Sorry for the hassle....
-----Original Message-----
Mikey,
You probably want to start off with
http://www.windowsforms.com. Thisis a good start. You might also want to check out
http://www.gotdotnet.com.
To do what you want to do, you will first have to set
the accessor forall of the controls in your project (or at least the ones
that you want toaccess) to public. Once you have that, then you can pass
the instance ofyour form with the controls you want to access to the
second form, eitherthrough a property, or through a parameter on a method.
A form is like anyother object that you pass around and set values on.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Mikey" <an*******@discussions.microsoft.com> wrote in
messagenews:08****************************@phx.gbl... I'm really new at the c# scene and I think I've
proabably jumped in the deep end :)
I'm really interested in developing Windows Applications
but most sources seem to deal with web development and
c#.
So can anyone help me with the following:
This one relates to a project I've started. How can I
make the contents of textboxes in form1 available to
form2 in a Windows Application?
Can anyone give me the address of some good sites
dealing with c# and Windows Apps
thanks in advance.........
.