Results 1 to 3 of 3

Thread: Access another form's control

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    219

    Question Access another form's control

    I'm trying to access another form's panel control but wasn't successful. Here's what I have in form1 under buttonOK sub routin.

    Dim myForm as New form2

    myForm.showdialog()
    myForm.panel1.visible = True
    myForm.panel1.BringToFront()

    But when form2 shows up, the panel wasn't visible and not bring to front. Will anyone give me a suggestion?

    Many thanks in advance!

    ljCharlie
    Last edited by Chong; Aug 4th, 2003 at 11:40 AM.

  2. #2
    Lively Member
    Join Date
    Sep 2002
    Location
    Belgium
    Posts
    99
    What happens when you use show instead of showdialog ?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    219
    Thanks for the effor. I got it working now. Actually, the showdialog() must be at the very bottom of the execution position.

    ljCharlie

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