Results 1 to 4 of 4

Thread: How to place COM controls on a form at design time ?

  1. #1

    Thread Starter
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694

    How to place COM controls on a form at design time ?

    Hello and Happy Easter !

    Does somebody know how to place COM controls on a form at design time ?
    Unfortunately , i manage only to put intrinsic controls like comboboxes , textboxes etc. on a form at design time.
    I haven't figured out the way to put for example a Webbrowser control at design time on a form .

    Thank you !
    Alex

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    After you add reference to Microsoft Web Browser in the COM Tab , you can declare instance of it like this . You need to set the other properties like location and size :

    VB Code:
    1. Dim myBrowser As New AxSHDocVw.AxWebBrowser

  3. #3

    Thread Starter
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694
    Originally posted by Pirate
    After you add reference to Microsoft Web Browser in the COM Tab , you can declare instance of it like this . You need to set the other properties like location and size :

    VB Code:
    1. Dim myBrowser As New AxSHDocVw.AxWebBrowser
    you mean that i can't control the location and size at design time and have to manually specify them in the code ?

    thanks!

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by alexandros
    you mean that i can't control the location and size at design time and have to manually specify them in the code ?

    thanks!
    You can as long as the control has Size and Location properties.

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