473,441 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Listbox alignment in visual studio 2010

How do I align items on a listbox trued using courier new font but still.
Nov 24 '19 #1
1 1955
SioSio
272 256MB
Do you want to align right?

Expand|Select|Wrap|Line Numbers
  1. 'Ex. total string count is 20
  2. Dim S1 As String = "aaaaaaaa"
  3. Dim S2 As String = "bbbbbbb"
  4. Dim S3 As String = "cccc"
  5. Dim SP1 As String = S1.PadLeft(20, " "c) 
  6. Dim SP2 As String = S2.PadLeft(20, " "c) 
  7. Dim SP3 As String = S2.PadLeft(20, " "c) 
  8. listBox1.Items.add(SP1)
  9. listBox1.Items.add(SP2)
  10. listBox1.Items.add(SP3)
Dec 17 '19 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: jabailo | last post by:
These guys have it going on. They actually use design ideas that Microsoft employees can drool upon. Visual Studio 2010 Concept IDE http://www.codeproject.com/csharp/Concept_IDE.asp "Like...
1
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Visual Studio 2010 and .NET Framework 4.0 Overview URL:http://msdn.microsoft.com/en-us/vstudio/products/cc948977.aspx Regards Kerem -- ----------------------- Beste Grüsse / Best regards...
0
by: garbmail10 | last post by:
Hallo to all I'm using visual studio 2010 c# on windows 7 In a program i use SpeechLib (located in C:\Windows\System32\Speech\Common\sapi.dll) with SpVoice voice = new SpVoice();...
0
by: Jourdan | last post by:
I am creating a web application backed by a SQL database in visual studio 2010. I have created a form with a dropdownlists for date and category as well as a textbox to perform a key word search. The...
1
by: saikat bose | last post by:
We create our c# dll file using the visual studio 2010. So first from file menu select the project option, then select the class library,named it as you wish after cliking ok by default a...
0
by: Swee Keng | last post by:
When I use Visual Studio 2010 to debug Visual Studio 2005 project, I get some error prompt out, seem like not support it. So we have a license for Visual Studio 2010, but we still want to maintenance...
3
by: Phillis2013 | last post by:
how do i fix this here is all my code from my header file and cpp file #include "Counter.h" #include<iostream> using namespace std; Counter::Counter(int c) { Add = 1; Total += Add+Add;
0
by: abii | last post by:
I was trying to install visual studio 2010, but when it was installing one of its components(microsoft .net framework 4) it failed to install , and I got this error in the error log: Microsoft .NET...
2
by: rakesh1225 | last post by:
Hi, I wanna read/write data from USB mass storage in windows7 using Visual studio 2010. I don't wanna write a driver but I want to use the existing windows drivers to communicate with the USB. ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.