473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Listbox Multicolumn Vs Datagrid

Hi I have a form with a listbox, two comboboxes and two Radiobuttons.
What I want to do is make a selection from both comboboxes and either
Radiobutton and display these three elements across the top of the
listbox eg. 5, 10, 'Go'

As I need multiple rows of data I have a button to 'Load' this to the
listbox. I'm stuck though as I'm having difficulty loading this
correctly. Question: Woulkd I be better off with a datagrid for this
job, and if so, would I need to use dataview. If it is easy using the
listbox, I'm in need of some guidance

Private Sub RadioButton1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles RadioButton1.Click

Dim first, Second As String

If RadioButton1.Checked = True Then

first = "Go"

ElseIf RadioButton2.Checked = True Then

Second = "Stop"

End If

End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load

ComboBox1.Items.Add(5)

ComboBox1.Items.Add(10)

ComboBox1.Items.Add(15)

ComboBox1.Items.Add(20)

ComboBox1.Items.Add(25)

ComboBox1.Items.Add(30)

ComboBox2.Items.Add(1)

ComboBox2.Items.Add(2)

ComboBox2.Items.Add(3)

ComboBox2.Items.Add(4)

ComboBox2.Items.Add(5)

ComboBox2.Items.Add(6)

End Sub

Nov 21 '05 #1
1 5041
Hi Zone,

Please splits your problems up in for a newsgroup answerable small parts.

The answer is simple, there is basically not a Multicolumn listbox in the
way as I think you describe it.
A multicolumn listbox is an horizontal listbox where a non multicolumn
listbox is a vertical listbox.

When you want to edit data, than in my opinion probably the datagrid will be
your best choose.
When you only want to show data than in my opinion probably the dataview is
your best choose.

I hope this helps

Cor
Nov 21 '05 #2

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

Similar topics

4
by: kackson | last post by:
Hi. I attempted to create a multicolumn listbox for my web based aspx application. I search the net, all I get is something like listview or I need to have system.windwos.form. But for the...
4
by: David Webster | last post by:
I have the following bit of code (which works fine): Dim Customer As New CCustomer mFrmOrder.lstCustID.DataSource = Customer.getCustomers.Tables("data") mFrmOrder.lstCustID.DisplayMember =...
7
by: Paul Bromley | last post by:
How can I use this please - I need 2 columns. I have been having difficulty finding info on this and the 2005 Treeview control today. Many thanks for any links or info, Paul Bromley
5
by: matthewtec | last post by:
I see that it is possible to have a multicolumn ListBox: lstOne.MultiColumn = True lstOne.ColumnWidth = 10 but the only way I have seen to have the items in the listbox print in the next...
1
by: mkhmer | last post by:
I am now trying to add a listbox with multicolumn data item into my ASP.Net page using VB.net language, but it seems to be impossible. Anybody got clue on this? Your suggestion is warmly...
2
by: dev.amit | last post by:
Hello Friends I am a new bee to the world of vb. I have an appication in the MS Access and now i have to convert it to the Vb. I am having problem creating multicolumn Listbox in the vb form....
6
by: is49460 | last post by:
Hello! I have two textboxes and a multicolumn listbox on the form. User enters first name in one textbox and last name in the other. After "submit" button is clicked I want first and last name to...
6
by: =?Utf-8?B?SnVzdGlu?= | last post by:
Hello: Does anyone know how I can create a multi-column listbox in VB.Net (Windows)...I am using VS.Net 2003. If there is another control available that can be databound with multiple...
2
by: =?Utf-8?B?Sm9uYXRoYW4=?= | last post by:
Hi I so new to vb.net that the paints still wet... I would like to load a listbox (as I would do using vba). The properties show multicolumn = true column width = 300 How do I set the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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
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...

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.