Results 1 to 3 of 3

Thread: how to control a control located in another form in .net like we did in vb 6: form1.t

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    6

    how to control a control located in another form in .net like we did in vb 6: form1.t

    how to control a control located in another form in .net like we did in vb 6: form1.textbox1.text=" " thanks for help!

  2. #2
    Addicted Member
    Join Date
    Aug 1999
    Posts
    164
    PHP Code:
    Dim dlg as New form1
    dlg
    .textbox1.text ""
    dlg.show() 
    Like that? Form data are not static like in old VB. Each time you open the form, it is a new instance of that form. There are ways of saving that info and then loading it onload events and other ways to work around this.
    -Shurijo

  3. #3
    Lively Member
    Join Date
    Nov 2002
    Location
    Malaysia
    Posts
    124
    Let's say if you have form1 and form2

    In form2 control form1 objects is

    VB Code:
    1. dim f1 as form1
    2. f1 = new form1()
    3. f1.textbox1.text

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width