Connecting Tech Pros Worldwide Help | Site Map

How to put controls on a form with VBA code

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 01:28 PM
BlueInGreen
Guest
 
Posts: n/a
Default How to put controls on a form with VBA code

How can I put a listbox, combobox... on a form, using VBA code?

Thx


  #2  
Old November 13th, 2005, 01:28 PM
polite person
Guest
 
Posts: n/a
Default Re: How to put controls on a form with VBA code

On Wed, 07 Sep 2005 21:39:46 GMT, BlueInGreen <blueingreen@mail.com> wrote:
[color=blue]
>How can I put a listbox, combobox... on a form, using VBA code?
>
>Thx[/color]
Hi
With CreateControl function, which has to be used with the form in design mode.

As these controls have a lot of properties, and design mode is messy to use
at run time it will be lot easier to put the controls you may
need on the form in advance, invisible, and just set their properties and show
them when you want to "create" them.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.