Adding controls to a "designer form"

E

Elliot

Hi All,

A while ago I added a from, originally created in the Word VBA
environment, to a VB project. I need to modify it and don't know how to
add new controls to it from within VB 6. The forms toolbox is disabled
when the imported "designer form" is active. I cannot even cut and
paste from a new form created in Word VBA and then imported into VB.

Any help would be most welcome,

Elliot
 
P

Perry

You can not use the VB toolbox to modify a (designer) VBA UserForm.
VBA userforms, and controls are different components as opposed to native VB
forms/controls.

You can however, use the VBA toolbox and modify those.

The VBA toolbox isn't available in the toolbars and menus, but you can bring
it up by:
In the Project browser click on another object and then click on yr designer
Userform object.
This should normally popup the VBA controls toolbox and y're set.
If this doesn't work, do either of two below options.
Note: make a safe backup of yr VB project, before using below steps.

1) try to remove the designer VBA userform and reimport.
2) try to export under a different name and import the newly created one.

When exporting the designer userform, set File Type to ("*.* | All Files) in
the SaveAs dialog and give the userform a new name with the .FRM extension
Remove the designer userform from the VB project and (re)add the newly
created .FRM file in yr VB Project.
This should definitely bring the VBA toolbox.
-------------------------------------
Krgrds,
Perry

System parameters:
POS: WinXP SP2
MSO: MSOffice 2003 SP2
DEV: VS8 (dotnet)
 
P

Perry

And check whether the MS Forms library is activated:

Rightclick the VB Toolbox to add extra Components.
In the next dialog, choose the Designers tab and check the MS Forms 20 item
(if at all this options is already checked)
Hit OK to validate yr setting.
-------------------------------------
Krgrds,
Perry

System parameters:
POS: WinXP SP2
MSO: MSOffice 2003 SP2
DEV: VS8 (dotnet)
-------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top