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 / April 2005

Tip: Looking for answers? Try searching our database.

Converting a UserForm to a VB6 Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Caron - 08 Apr 2005 21:41 GMT
Good Day to all, I opened a UserForm in my VB6 and noticed that all controls
including the UserForm retains their properties and methods. As far as the
differences in my code I can live by doing the conversion myself, But How to
I get the Userform in my VB to use the properties and methods coming with
VB6 ?

Regards

Daniel
Perry - 09 Apr 2005 09:11 GMT
Do you mean:

For instance:
Yr VBA listbox to act as a VB listbox under VB6?

Nope, the VBA listbox in fact all yr VBA controls (ie. controls straight
from the default VBA toolset) are MSForms controls.
The native VB controls are registered differenty, have other eventhandlers
and other propertybags.
Look at a listbox for instance: you can't assign an array to the "List"
property of the native VB listbox to populate it.
Where as a VBA listbox can ...

In other words, you'll have redesign yr UserForm in a new VB Form in Visual
Basic, using the VBA code sequence adapted to VB.
Or you'll have to use the imported UserForm in yr VB app thus using the
MSForms scope of the UserForm in VB.

Krgrds,
Perry

> Good Day to all, I opened a UserForm in my VB6 and noticed that all controls
> including the UserForm retains their properties and methods. As far as the
[quoted text clipped - 5 lines]
>
> Daniel
Daniel Caron - 09 Apr 2005 14:02 GMT
That's what I was afraid of...thanks Perry

Daniel

> Do you mean:
>
[quoted text clipped - 30 lines]
>>
>> Daniel
 
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.