Solved

Problems with MsForms 2.0 ComboBoxes and ListBoxes

Posted on 1998-04-20
10
542 Views
Last Modified: 2012-06-21
     I have a problem using MsForms 2.0 ComboBoxes and ListBoxes. When i close the project (vb4) and i try to reopen it, it gives me trouble. VB4 tries to open the MsForms 2.0 Combobox as an old one, i mean, as a MsForms 1.0 ComboBox. And of course, it gives me an error like :
Line 218: The Property Size Name of CD_CAMPAÑA is not valid.
Line 220: Couldn't load the Property ColumnCount of CD_CAMPAÑA .
etc...
      It's because it's trying to open the combobox as a standard vb4 combo. How can i fix this?
      Ivan Babic
      ibabic@hotmail.com
      PD: Also for ListBoxes
0
Comment
Question by:ibabic
  • 6
  • 4
10 Comments
 

Author Comment

by:ibabic
ID: 1425644
Somebody told me i should open the fm20.dll in Visual C++ and edit it in order to change all the words "ComboBox" and "ListBox" to any other word (example: "xxx" and "yyy") and recompile it so that it works. I don't have any idea how to do this, but it seems not to be the best solution.
I'm giving you 150 points for solving this.
Thanks
Ivan Babic
ibabic@hotmail.com
0
 

Author Comment

by:ibabic
ID: 1425645
Let me know if the question is very difficult or if i have to reformulate it.
Please add comments to it so that i know at least somebody has read it and also to let me know your thoughts about it.
I'm giving you 250 points.
Ivan Babic
ibabic@hotmail.com
0
 

Author Comment

by:ibabic
ID: 1425646
Adjusted points to 290
0
 
LVL 4

Expert Comment

by:zsi
ID: 1425647
Try unregistering and then re-registering the Forms 2.0 OCX.

Before doing this, remove the controls from your form and save the project.  Then, close VB.  After re-registering the OCX, open the project and try adding the controls back.

zsi
0
 

Author Comment

by:ibabic
ID: 1425648
zsi:
I tried what you said, but it doesn't work. How do i unregister/register an OCX in VB4?
I did this. Tell me if i did it right. I removed all the forms 2.0 controls from my project. Then i opened the Tools Menu an selected Customized Controls. Then i unchecked the Microsost Forms 2.0 Object Library and clicked OK. Then i saved my project and closed VB4. After that, i opened my project again and re-registered thhe MsForms2.0 OCX (the same way as before), saved the project and re-created the controls in the forms and saved again. It worked, it really worked (the same as before). But i still have the same problem, when i close project and reopen it, it shows me the same error:

Line 218: The Property Size Name of ComboBox1 is not valid.
Line 220: Couldn't load the Property ColumnCount of ComboBox1.

As you can imagine it, i need to work in long projects, so i can't keep VB4 on till i finish the jobs.
Please, help me with this.
It's very important for me.
Ivan Babic
ibabic@hotmail.com
PD: What i really need is MultiColumns COmboBoxes and ListBoxes. Tell me if you know where can i get them from free. or paid...
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 4

Expert Comment

by:zsi
ID: 1425649
ibabic,

ok, first, to unregister an ocx, you need regocx32.exe.  You can find it on your VB install CD under the tools directory (it does not get installed to your hard drive automatically).  The syntax is regocx32.exe /u <control filename>

For multicolumn ComboBoxes and ListBoxes, you can look at FarPoint's ListPro control, which will give you the features (and then some) that you are looking for.  You can download a fully functional demo at http://www.fpoint.com.

Alternately, you can use the Win32 API to do multiple columns.  If you are up to the additional work, you can find a wealth of information in Dan Appleman's book "The Visual Basic 5.0 Programmers Guide to the Win32 API."  There can be no better investment than this book.

Lastly, for listboxes, you can use a Tab character (chr(9)) to get multiple columns, but I suspect that this is not what you are looking for.

Hope this helps,

zsi
0
 

Author Comment

by:ibabic
ID: 1425650
zsi:
i unregistered and reregistered the ocx, but it didn't work. Have you tried to use MsForms2.0 in a VB4 project. I invite you to use it. It has a powerful ComboBox and ListBox. More powerful than any other. But i has some trouble. Use it in one project and you'll understand what i mean.
The FarPoint's ListPro control is nice, but i think it's not what i'm looking for. I'll prove it hardly to see if it's what i'm looking for.
The Win32 API is an unknown option for me. Please try to be more specific.
Let me know if anyone have ever cracked the MsForms 2.0 DLL. Changing ComboBox for ComboXYZ and ListBox for ListXYZ and recompiling it. Or if there is any other Useful MultiColumn ComboBox in the market. And as before, where can i download it?
Bye
Ivan Babic
ibabic@hotmail.com
0
 

Author Comment

by:ibabic
ID: 1425651
Hey: I just need a multicolumn Combobox and ListBox. Somebody has to know where can i find one similar to the MsForms 2.0 Format.
Giving you 350 points.
Ivan Babic
ibabic@hotmail.com
0
 
LVL 4

Accepted Solution

by:
zsi earned 350 total points
ID: 1425652
There are a number of controls that will do what you need.  A good one is vsFlex from Videosoft (http://www.videosoft.com)
0
 
LVL 4

Expert Comment

by:zsi
ID: 1425653
Some more are Sheridan's DataWidgets, GreenTree's DataList, and I think that there is one in OLETools (BeCubed, formally owned by MicroHelp).  You can also subclass the controls and write your own.

I might even have a freeware/shareware one lying around. I'll see if I can find it.

zsi
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now