Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2005

Tip: Looking for answers? Try searching our database.

Adding controls to a "designer form"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elliot - 28 Dec 2005 16:28 GMT
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
Perry - 30 Dec 2005 10:10 GMT
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)
-------------------------------------
> Hi All,
>
[quoted text clipped - 7 lines]
>
> Elliot
Perry - 30 Dec 2005 10:17 GMT
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)
-------------------------------------
> You can not use the VB toolbox to modify a (designer) VBA UserForm.
> VBA userforms, and controls are different components as opposed to native
[quoted text clipped - 39 lines]
>>
>> Elliot
Elliot - 30 Dec 2005 22:26 GMT
Will try, thanks for the help
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.