Click here to Skip to main content
15,905,614 members
Home / Discussions / C#
   

C#

 
QuestionOkay, i gotta question - who wants to look? Pin
Anthony Mushrow10-Nov-05 9:54
professionalAnthony Mushrow10-Nov-05 9:54 
AnswerRe: Okay, i gotta question - who wants to look? Pin
Christian Graus10-Nov-05 13:35
protectorChristian Graus10-Nov-05 13:35 
QuestionPackage load error in VS2005? Pin
TheGreatAndPowerfulOz10-Nov-05 8:38
TheGreatAndPowerfulOz10-Nov-05 8:38 
QuestionLabel question Pin
Stanciu Vlad10-Nov-05 7:52
Stanciu Vlad10-Nov-05 7:52 
AnswerRe: Label question Pin
Anthony Mushrow10-Nov-05 8:01
professionalAnthony Mushrow10-Nov-05 8:01 
GeneralRe: Label question Pin
Stanciu Vlad10-Nov-05 8:35
Stanciu Vlad10-Nov-05 8:35 
AnswerRe: Label question Pin
Stanciu Vlad10-Nov-05 9:08
Stanciu Vlad10-Nov-05 9:08 
GeneralRe: Label question Pin
Anthony Mushrow10-Nov-05 9:27
professionalAnthony Mushrow10-Nov-05 9:27 
Aww, dammit, worked out this for nothing, well i'll post it anyway, and then well, whatever:

string labeltext = this.label1.Text;<br />
			int length = labeltext.Length;<br />
			<br />
			if(length > 35)<br />
			{<br />
				labeltext = labeltext.Remove(32, length - 32) + "...";<br />
			}<br />
			<br />
				this.label1.Text = labeltext;


that number there, yeah 35 thats the one, that should be however many characters that fit into your label, and then the second number (32) should be your first number minus 3 so that the "..." fits.

And if you want to keep the original text, just save it as a different string.

Well i'm outa here ##----------------------------->>
GeneralRe: Label question Pin
Dan Neely10-Nov-05 10:10
Dan Neely10-Nov-05 10:10 
QuestionExporting to Excel takes a very long time Pin
zaboboa10-Nov-05 7:33
zaboboa10-Nov-05 7:33 
AnswerRe: Exporting to Excel takes a very long time Pin
KaptinKrunch10-Nov-05 8:49
KaptinKrunch10-Nov-05 8:49 
GeneralRe: Exporting to Excel takes a very long time Pin
zaboboa10-Nov-05 9:02
zaboboa10-Nov-05 9:02 
QuestionC# Book for a Course Pin
1nsp1r3d10-Nov-05 7:10
1nsp1r3d10-Nov-05 7:10 
Questiongroup box control Pin
Manu_8110-Nov-05 7:03
Manu_8110-Nov-05 7:03 
AnswerRe: group box control Pin
Dan Neely10-Nov-05 7:07
Dan Neely10-Nov-05 7:07 
QuestionDear Inheritance - A question for you Pin
Gulfraz Khan10-Nov-05 6:37
Gulfraz Khan10-Nov-05 6:37 
AnswerRe: Dear Inheritance - A question for you Pin
leppie10-Nov-05 7:02
leppie10-Nov-05 7:02 
GeneralRe: Dear Inheritance - A question for you Pin
Colin Angus Mackay10-Nov-05 13:29
Colin Angus Mackay10-Nov-05 13:29 
AnswerRe: Dear Inheritance - A question for you Pin
Robert Rohde10-Nov-05 20:51
Robert Rohde10-Nov-05 20:51 
QuestionTime Text Field Pin
charbelasmar10-Nov-05 5:46
charbelasmar10-Nov-05 5:46 
AnswerRe: Time Text Field Pin
Joshua Quick10-Nov-05 7:11
Joshua Quick10-Nov-05 7:11 
QuestionMouse Events Pin
rich_wenger10-Nov-05 3:54
rich_wenger10-Nov-05 3:54 
AnswerRe: Mouse Events Pin
Dan Neely10-Nov-05 4:54
Dan Neely10-Nov-05 4:54 
GeneralRe: Mouse Events Pin
rich_wenger10-Nov-05 5:08
rich_wenger10-Nov-05 5:08 
AnswerRe: Mouse Events Pin
Luis Alonso Ramos10-Nov-05 5:32
Luis Alonso Ramos10-Nov-05 5:32 

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.