Vb6 to .net Compatibility

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy

    #1

    Vb6 to .net Compatibility

    In visual Basic 6 we can reference controls on another
    form using code such as this

    anotherform.tex t1.text = "blah"

    how Do I reference controls that are located on anather
    form in .net ( It wont let me directly reference the
    controls evenif I import the entire class class to the
    other form )

    Thanks a lot
    Andy
  • Norm Yuan

    #2
    Re: Vb6 to .net Compatibility

    By default, controls on a form is specified as Private. You can change it to
    Public thus, you can access it the same way as you do in VB6.

    "Andy" <oxacah@hotmail .com> wrote in message
    news:068601c341 78$f6ec2d20$a00 1280a@phx.gbl.. .[color=blue]
    > In visual Basic 6 we can reference controls on another
    > form using code such as this
    >
    > anotherform.tex t1.text = "blah"
    >
    > how Do I reference controls that are located on anather
    > form in .net ( It wont let me directly reference the
    > controls evenif I import the entire class class to the
    > other form )
    >
    > Thanks a lot
    > Andy[/color]


    Comment

    Working...