C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » VB.NET Syntax »

Horizontal Scroll ListBoxes in VB.NET


Posted Date: 01 Nov 2008    Resource Type: Code Snippets    Category: VB.NET Syntax
Author: RoshanMember Level: Silver    
Rating: 3 out of 53 out of 53 out of 5Points: 10



We can make the ListBox Scroll Horizontally by the following code:


Dim ListBox1 As ListBox

Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Button1_Click

ListBox1=New ListBox()
ListBox1.Size=New System.Drawing.Size(270,100)
ListBox1.Location=New System.Drawing.Point(10,40)
Me.Controls.Add(ListBox1)
ListBox1.MultiColumn=True
ListBox1.BeginUpdate()
Dim intLoopIndex As Integer
For intLoopIndex=1 To 20
ListBox1.Items.Add("Item "&intLoopIndex.ToString())
Next intLoopIndex
ListBox1.EndUpdate()
End Sub




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Horizontal Scrolling ListBox  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Handling PictureBox Events in VB.NET
Previous Resource: RichTextBoxes having Text Indentation
Return to Discussion Resource Index
Post New Resource
Category: VB.NET Syntax


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use