Converting a UserForm to a VB6 Form

D

Daniel Caron

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
 
P

Perry

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
 

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