473,467 Members | 1,559 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is there a way to link two listboxes together?

I am trying to simulate a multicolumn listbox. I need a way to link
two listboxes together so that if you scroll one listbox the other
scrolls with it. Any help will be appreciated.

Thanks,
Dominic Isaia
di****@spacecraft.com
Nov 20 '05 #1
6 4375
Dominic,
Have you considered a ListView instead of a ListBox?

Change the HeaderStyle to None, and the View to Details.

You will have what is effectively a multi column listbox.

Alternatively a ListBox can display multiple columns also, when you add the
string separate each column by a tab character, make sure
ListBox.UseTabStops is on.

Hope this helps
Jay

"Dominic Isaia" <di****@spacecraft.com> wrote in message
news:d8**************************@posting.google.c om...
I am trying to simulate a multicolumn listbox. I need a way to link
two listboxes together so that if you scroll one listbox the other
scrolls with it. Any help will be appreciated.

Thanks,
Dominic Isaia
di****@spacecraft.com

Nov 20 '05 #2
* di****@spacecraft.com (Dominic Isaia) scripsit:
I am trying to simulate a multicolumn listbox. I need a way to link
two listboxes together so that if you scroll one listbox the other
scrolls with it. Any help will be appreciated.


Why not use a ListView with multiple Columns and 'View' = 'Details'?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
I am designing a web form, and I don't believe I can use the listview
class on a web form. It won't let me import the System.Windows.Forms
namespace.

I am designing the listbox with strings and seperating the data by
nonbreaking spaces using a monospace character font. This seems to
work, although it's not pretty. The tabbing solution doesn't always
line up the columns well, especially if you have variable length data,
which is the case most of the time.

I would like to see the ability to create a mulitcolumn listbox in a
future version of VB.NET. It would be nice to be able to add headers
and footers and be able to sort on different columns, select an item
from one column, or have hyperlink text in the columns.

Dominic Isaia
di****@spacecraft.com
Nov 20 '05 #4

"Dominic Isaia" <di****@spacecraft.com> wrote in message
news:d8*************************@posting.google.co m...
I would like to see the ability to create a mulitcolumn listbox in a
future version of VB.NET. It would be nice to be able to add headers
and footers and be able to sort on different columns, select an item
from one column, or have hyperlink text in the columns.

Dominic Isaia
di****@spacecraft.com


Thats what the listview does.
Nov 20 '05 #5
Cor
Hi Rick,

Can you give me a link to that because searching for listview and webform I
could not find anything on MSDN and I want to see that too.

Or is it in the recourse kit, I did install it and uninstall, so maybe I did
not look well.

I am very curious for that information?

Cor
Nov 20 '05 #6
Dominic,
I am designing a web form, and I don't believe I can use the listview Well a web form is an entirely different world! ;-)

You are effectively limited to what you can include in HTML or "controls"
that you can download & run. I hate going to web sites that require me to
download a control to view the site! :-)

What I would suggest you do is look at the
System.Web.Ui.WebControls.DataGrid control. (note I suspect it will not
behave as you want! as again you are limited to what HTML can do!)

Also seeing as web forms need a specific set of knowledge, you may want to
ask this "down the hall" in one of the
microsoft.public.dotnet.framework.aspnet.* newsgroups, I would start with
microsoft.public.dotnet.framework.aspnet.webcontro ls.

Hope this helps
Jay

"Dominic Isaia" <di****@spacecraft.com> wrote in message
news:d8*************************@posting.google.co m... I am designing a web form, and I don't believe I can use the listview
class on a web form. It won't let me import the System.Windows.Forms
namespace.

I am designing the listbox with strings and seperating the data by
nonbreaking spaces using a monospace character font. This seems to
work, although it's not pretty. The tabbing solution doesn't always
line up the columns well, especially if you have variable length data,
which is the case most of the time.

I would like to see the ability to create a mulitcolumn listbox in a
future version of VB.NET. It would be nice to be able to add headers
and footers and be able to sort on different columns, select an item
from one column, or have hyperlink text in the columns.

Dominic Isaia
di****@spacecraft.com

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: rachel | last post by:
Hi all, I am new in ASP.Net. I have a question on link multiple web forms together. Here is the scenario: I create an Index.aspx WebForm which consists of a banner and three navigator...
2
by: faktujaa | last post by:
Hi All, I have to avoid cyclic reference in my DLLS. One way is to move the code to the common DLL. But now since i have written a lot of code, it would take a whole lot of time to do this. The...
0
by: ISmith | last post by:
Hi, I have two comboboxes on a master form. I need to link them together so that combobox a's on change will update combobox b with maching records and visa versa. Then when a button is...
5
by: Özden Irmak | last post by:
Hello, I have a Windows Forms control written in VB.Net which I want to include it to my C# project... For a special reason,instead of distributing the dll with my ap, I want it to compile...
0
by: Jessica | last post by:
Hi, I am new to C++ .Net so please forgive me if the question sounds silly. I have implemented a class, as well as some client code that uses the class. Now I decided that I want to add a GUI...
1
by: the friendly display name | last post by:
Hello, I need to dynamicaly populate a second listbox, based on the value, that the user has chosen in the first listbox. A good example of what i mean, is this site: ...
6
by: Imicola | last post by:
Hi, I've recently been tasked with developing a database to store data which has been collected by a lot of different people. I have quite alot of access experience, but not that much on...
1
by: federicog | last post by:
I'm using this calendar: http://www.dynarch.com/projects/calendar/. I have three calendars on a page, and I need to "link" them together so that if I select a month in one calendar, the two...
1
by: Tapodev Chakrab | last post by:
Hi, If I have an application compiled in GCC 3.4.6 and another compiled in workshop 5.9, is it possible to link them together ? For example, we want to buy a vendor product which is compiled in gcc...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.