?
Solved

Problems with MsForms 2.0 ComboBoxes and ListBoxes

Posted on 1998-04-20
10
Medium Priority
?
591 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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 700 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

718 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