How to add a multi line list box?

  • Thread starter Thread starter MeAgin
  • Start date Start date
M

MeAgin

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
 
MeAgin said:
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.
 
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
 
Back
Top