Click here to Skip to main content
16,005,121 members
Home / Discussions / C#
   

C#

 
Questionread a cd rom as a whole Pin
Iv0125-Oct-06 13:51
Iv0125-Oct-06 13:51 
AnswerRe: read a cd rom as a whole Pin
led mike25-Oct-06 13:59
led mike25-Oct-06 13:59 
AnswerRe: read a cd rom as a whole Pin
Nader Elshehabi25-Oct-06 21:14
Nader Elshehabi25-Oct-06 21:14 
QuestionNewbie: Question about ListViews? Pin
Phillip Hodges25-Oct-06 12:45
Phillip Hodges25-Oct-06 12:45 
AnswerRe: Newbie: Question about ListViews? Pin
led mike25-Oct-06 12:59
led mike25-Oct-06 12:59 
GeneralRe: Newbie: Question about ListViews? Pin
Phillip Hodges25-Oct-06 13:04
Phillip Hodges25-Oct-06 13:04 
GeneralRe: Newbie: Question about ListViews? Pin
led mike30-Oct-06 7:57
led mike30-Oct-06 7:57 
QuestionHow can I get the maximum length of a string that will fit into a textbox Pin
Dan Neely25-Oct-06 10:25
Dan Neely25-Oct-06 10:25 
I'm using a textbox to display a short running buffer for character data with new data being appended to the right of the string and old values falling off the left end. I'm measuring the length of the string in pixels to determine if I need to remove characters from the front to make it fit. The issue I have is that I can only get the total width of the textbox, not the width of the area available to display text within it. Is there any way I can get that value for use directly instead of coding in a magic number that appears to work for all testcases?

Graphics g = TheTextBox.CreateGraphics();
//the -5 is to compensate for pixels used in framing the textbox but is a guessed value not a calculated one
while (g.MeasureString(theString,TheTextBox.Font).Width >this.TheTextBox.Width -5)
	theString = theString.Remove(0,1);

AnswerRe: How can I get the maximum length of a string that will fit into a textbox Pin
led mike25-Oct-06 11:24
led mike25-Oct-06 11:24 
Questionhow do I binary search a struct array? Pin
kshet2625-Oct-06 10:23
kshet2625-Oct-06 10:23 
AnswerRe: how do I binary search a struct array? Pin
Guffa25-Oct-06 11:22
Guffa25-Oct-06 11:22 
GeneralRe: how do I binary search a struct array? Pin
kshet2625-Oct-06 11:47
kshet2625-Oct-06 11:47 
AnswerRe: how do I binary search a struct array? Pin
Guffa25-Oct-06 12:08
Guffa25-Oct-06 12:08 
GeneralRe: how do I binary search a struct array? Pin
kshet2626-Oct-06 2:33
kshet2626-Oct-06 2:33 
GeneralRe: how do I binary search a struct array? Pin
Guffa26-Oct-06 10:08
Guffa26-Oct-06 10:08 
QuestionInstantiate a HTMLDocument object with the Url or Html stream Pin
Nadia Monalisa25-Oct-06 8:53
Nadia Monalisa25-Oct-06 8:53 
QuestionSafeArray Pin
C++NewBe25-Oct-06 8:49
C++NewBe25-Oct-06 8:49 
AnswerRe: SafeArray Pin
led mike25-Oct-06 10:08
led mike25-Oct-06 10:08 
QuestionAny tool for code clean up ? Pin
Nadia Monalisa25-Oct-06 8:15
Nadia Monalisa25-Oct-06 8:15 
QuestionCompare types in a plugin API Pin
Jost Pedro25-Oct-06 7:09
Jost Pedro25-Oct-06 7:09 
AnswerRe: Compare types in a plugin API Pin
led mike25-Oct-06 8:55
led mike25-Oct-06 8:55 
GeneralRe: Compare types in a plugin API Pin
Jost Pedro26-Oct-06 0:00
Jost Pedro26-Oct-06 0:00 
Questionhow to deploy my app (vs2005) with crystalreport XI ? Pin
hdv21225-Oct-06 7:07
hdv21225-Oct-06 7:07 
AnswerRe: how to deploy my app (vs2005) with crystalreport XI ? Pin
bearfx25-Oct-06 8:33
bearfx25-Oct-06 8:33 
QuestionHow to debug when I'm developing an outlook add-in using COM? [modified] Pin
OctopusThu25-Oct-06 6:42
OctopusThu25-Oct-06 6:42 

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.