Click here to Skip to main content
15,914,109 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to get external ip of my system? Pin
Michael Sync9-Jul-07 15:48
Michael Sync9-Jul-07 15:48 
AnswerRe: how to get external ip of my system? Pin
Vikram A Punathambekar8-Jul-07 20:11
Vikram A Punathambekar8-Jul-07 20:11 
GeneralRe: how to get external ip of my system? Pin
ruanr8-Jul-07 22:46
ruanr8-Jul-07 22:46 
GeneralRe: how to get external ip of my system? Pin
Michael Sync9-Jul-07 15:48
Michael Sync9-Jul-07 15:48 
QuestionC# directX how to? Pin
mercenary018-Jul-07 19:00
mercenary018-Jul-07 19:00 
AnswerRe: C# directX how to? Pin
DMWhiteDragon8-Jul-07 19:10
DMWhiteDragon8-Jul-07 19:10 
QuestionC# ListBox Justify Text Pin
fjlv20058-Jul-07 17:51
fjlv20058-Jul-07 17:51 
AnswerRe: C# ListBox Justify Text [modified] Pin
DMWhiteDragon8-Jul-07 18:23
DMWhiteDragon8-Jul-07 18:23 
Simple answer? You dont

You could try measuring the text width and calculate the remaining space and fill it with calulated amount of spaces however you wont be able to get exact alignment as spaces in each font have a set size more than one pixel.

Delete your listbox and add a listview control and use that

You can add columns (so each part has a header), change alignment of each column and its easy to add items:

<br />
ListViewItem MyItem = new ListViewItem(new string[] {"Bob Marley","$10,000"} );<br />
listView1.Items.Add(MyItem);<br />


or

<br />
string sDescription = "Bob Marley";<br />
string sSalary = "$10,000";<br />
<br />
ListViewItem MyItem = new ListViewItem(new string[] { sDescription, sSalary });<br />
listView1.Items.Add(MyItem);<br />


-- modified at 0:50 Monday 9th July, 2007

Just to be clear, this is all considering there is more than one column... if you just need the salary in there and nothing else and want it right aligned you set the RightToLeft property to Yes. Thought i should cover all bases Smile | :)



Always more to learn, and i wouldn't have it any other way.

AnswerRe: C# ListBox Justify Text Pin
Luc Pattyn9-Jul-07 2:28
sitebuilderLuc Pattyn9-Jul-07 2:28 
Questionregarding XML Pin
praveenanand8-Jul-07 17:48
praveenanand8-Jul-07 17:48 
AnswerRe: regarding XML Pin
Sathesh Sakthivel8-Jul-07 17:51
Sathesh Sakthivel8-Jul-07 17:51 
QuestionTimer Class Help Pin
DMWhiteDragon8-Jul-07 16:14
DMWhiteDragon8-Jul-07 16:14 
AnswerRe: Timer Class Help Pin
Luc Pattyn8-Jul-07 16:48
sitebuilderLuc Pattyn8-Jul-07 16:48 
GeneralRe: Timer Class Help Pin
DMWhiteDragon8-Jul-07 17:03
DMWhiteDragon8-Jul-07 17:03 
GeneralRe: Timer Class Help Pin
Luc Pattyn8-Jul-07 17:15
sitebuilderLuc Pattyn8-Jul-07 17:15 
GeneralRe: Timer Class Help Pin
DMWhiteDragon8-Jul-07 17:29
DMWhiteDragon8-Jul-07 17:29 
JokeRe: Timer Class Help Pin
Luc Pattyn8-Jul-07 17:31
sitebuilderLuc Pattyn8-Jul-07 17:31 
Questionwebsite Login with c# Pin
cardy18-Jul-07 15:14
cardy18-Jul-07 15:14 
AnswerRe: website Login with c# [modified] Pin
DMWhiteDragon8-Jul-07 16:30
DMWhiteDragon8-Jul-07 16:30 
AnswerRe: website Login with c# Pin
Ravi Bhavnani8-Jul-07 19:15
professionalRavi Bhavnani8-Jul-07 19:15 
QuestionGISMAP Pin
sarvenaz848-Jul-07 11:58
sarvenaz848-Jul-07 11:58 
AnswerRe: GISMAP Pin
Christian Graus8-Jul-07 16:18
protectorChristian Graus8-Jul-07 16:18 
Questionhow to connect C# application with j2me application? Pin
amna_am8-Jul-07 11:38
amna_am8-Jul-07 11:38 
AnswerRe: how to connect C# application with j2me application? Pin
Christian Graus8-Jul-07 11:41
protectorChristian Graus8-Jul-07 11:41 
GeneralRe: how to connect C# application with j2me application? Pin
Paul Conrad8-Jul-07 12:17
professionalPaul Conrad8-Jul-07 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.