Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

Problems with MsForms 2.0 ComboBoxes and ListBoxes

     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
ibabic
Asked:
ibabic
  • 6
  • 4
1 Solution
 
ibabicAuthor Commented:
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
 
ibabicAuthor Commented:
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
 
ibabicAuthor Commented:
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.

 
zsiCommented:
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
 
ibabicAuthor Commented:
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
 
zsiCommented:
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
 
ibabicAuthor Commented:
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
 
ibabicAuthor Commented:
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
 
zsiCommented:
There are a number of controls that will do what you need.  A good one is vsFlex from Videosoft (http://www.videosoft.com)
0
 
zsiCommented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now