Solved

multicolumn combobox

Posted on 2004-08-03
13
518 Views
Last Modified: 2008-02-01
I want to use multicolumn combobox in my program.  and I have not found any such facility in vb.net
Is there any way to use multicolumn combobox in vb.net like VB6

thanks
SS
0
Comment
Question by:ssonia27
  • 5
  • 3
13 Comments
 
LVL 4

Expert Comment

by:rohanpandya
ID: 11703050
Hi

    I don't think show that there is any functionality like multi column combo in the vb.net. Ya you can use like in item collection you can enter data by giving space so they looks like different column.

   
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 11703414
0
 

Author Comment

by:ssonia27
ID: 11899520
emoreau has given good links for multicolumn combobox feature.
but these are all lengthy methods and contains code to add values in multicolumns at runtime only.
my requirement is to have almost20-30 multicolumn comboboxes in my form.
so this idea has not solved my problem.

SS
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 11901541
Why don't you create your own multi-column combo based on these articles?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 11901551
You surely have a ready one in: http://msdn.microsoft.com/vbasic/vbrkit/
0
 

Author Comment

by:ssonia27
ID: 11911730
I have designed one multicolumn combobox. but for this I'm using listview, textbox and commandbutton controls. this is also time consuming method and make form very heavy.
so I want to use property file type functionality to implement multicolumn combobox.
for my requirement , in front end only single column combobox will also work. but in coding I need code of the value selected from the combobox.
so without multicoulm combobox, this can be done.

now I'm searching for how to use property file to implement this.
is there any idea for this?

SS

0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 11911776
encapsulate your listview, textbox and commandbutton all in a usercontrol. once it will be created, all you will need to do is to replace the declaration from ComboBox ty YourComboBoxName.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 11911801
why don't you use the ready made from http://www.devwire.net/ComboPlus.aspx
0
 

Author Comment

by:ssonia27
ID: 12014708
encapsulation of  controls is good to implement and free combobox from the given link is good.
but I'm using property files to load and get values from combobox.
this method works fine.

I'm accepting emoreau's answer "encapsulation of controls".

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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