PC Review


Reply
Thread Tools Rate Thread

How to add a multi line list box?

 
 
MeAgin
Guest
Posts: n/a
 
      8th Feb 2007
Hi all,



I have a list box control derived from MS Forms 2.0 library in my VB.NET
2005 project. I want to add 2 columns of data for this and needs to show
only the 1st row. How this can be done?
It seems there is a limit no of methods and properties available.
The second column will store a value to reference the data shown. (The
Int_Key)

Thanks
Nadee


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      9th Feb 2007
"MeAgin" <(E-Mail Removed)> schrieb:
> I have a list box control derived from MS Forms 2.0 library in my VB.NET
> 2005 project.


Bad idea. Note that the control is not redistributable and requires Office
to be installed.

Why not use 'System.Windows.Forms.ListBox', which has 'DataSource',
'DisplayMember', and 'ValueMember' properties.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

 
Reply With Quote
 
MeAgin
Guest
Posts: n/a
 
      9th Feb 2007
Hi,

Thanks for the reply.

Yes in my case always office will be installed. I'm using this in an outlook
com add-in.
I have a list box in a outlook form and it cant be casted to a
System.Windows.forms.Listbox.
Therfore I have to cast it to a MS Forms 2.0 library.forms.ListBox. I want o
add some data to this list box.
I can add data using the AddMember() but when a value is selected I want use
the Int_Key to refer it back to the main data source.

Nadee


"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:u9kQQL%(E-Mail Removed)...
> "MeAgin" <(E-Mail Removed)> schrieb:
> > I have a list box control derived from MS Forms 2.0 library in my VB.NET
> > 2005 project.

>
> Bad idea. Note that the control is not redistributable and requires

Office
> to be installed.
>
> Why not use 'System.Windows.Forms.ListBox', which has 'DataSource',
> 'DisplayMember', and 'ValueMember' properties.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return to 1st cell in next line in multi-column list for quicker e Katijo Microsoft Excel Worksheet Functions 3 10th Oct 2008 06:32 AM
Multi Select List Box to Text Box (put each item on separate line) =?Utf-8?B?TWljaGVsbGU=?= Microsoft Access Forms 4 20th Jul 2007 07:44 PM
Is there a way to sort a list of multi-line items? =?Utf-8?B?UiBTY290dCBMb3dkZW4=?= Microsoft Excel Worksheet Functions 3 10th Jul 2007 04:54 AM
multi line list box Muhammad Ahsin Saleem Microsoft VB .NET 3 25th Sep 2006 11:54 AM
How do I print multi-line notes on a list of contacts. =?Utf-8?B?T250aXA=?= Microsoft Outlook Contacts 2 15th May 2006 01:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:02 AM.