473,387 Members | 1,897 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,387 software developers and data experts.

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 1954
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. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.