Click here to Skip to main content
14,665,452 members
Home » Discussions » C#
   

C#

 
AnswerRe: what is the difference between Dictionary<> and SortedList<> Pin
Luc Pattyn11-Jun-09 10:36
sitebuilderLuc Pattyn11-Jun-09 10:36 
GeneralRe: what is the difference between Dictionary<> and SortedList<> Pin
led mike11-Jun-09 10:43
Memberled mike11-Jun-09 10:43 
QuestionRichTextBoxStreamType.PlainText Does not work. Pin
Baeltazor11-Jun-09 10:11
MemberBaeltazor11-Jun-09 10:11 
AnswerRe: RichTextBoxStreamType.PlainText Does not work. Pin
Baeltazor11-Jun-09 11:02
MemberBaeltazor11-Jun-09 11:02 
QuestionHow to disable JavaScript in webControl hosted in a WinForm Pin
kozu11-Jun-09 10:06
Memberkozu11-Jun-09 10:06 
AnswerRe: How to disable JavaScript in webControl hosted in a WinForm Pin
kozu11-Jun-09 10:25
Memberkozu11-Jun-09 10:25 
GeneralRe: How to disable JavaScript in webControl hosted in a WinForm Pin
kozu11-Jun-09 13:32
Memberkozu11-Jun-09 13:32 
QuestionText formatting Pin
Skymir11-Jun-09 9:26
MemberSkymir11-Jun-09 9:26 
I'm trying to add spacing to the beginning of some text so that I can put small symbols before specific lines of text. The size of the symbols is always the same, 10x10 pixels, however the number of symbols can range from none to half a dozen.

The problem I'm running in to is figuring out the number of spaces to indent the text. Normally I'd simply move the bounding box over by the size of the bullets, but in this case, the next line of text needs to wrap under the graphics I'm inserting, so moving the bounding box cuts down on the space available for text.

Right now I'm just adding in 3 * the number of spaces as there are symbols in hopes of getting close, but it's a bit off. I've tried using MeasureString to get the size of a space, then adding enough spaces to move the text, but it comes out too little with only 1 symbol and not nearly enough by the time there are 4 or more symbols.

Any suggestions?

The true man wants two things: danger and play. For that reason he wants woman, as the most dangerous plaything.

AnswerRe: Text formatting Pin
OriginalGriff11-Jun-09 10:33
mveOriginalGriff11-Jun-09 10:33 
GeneralRe: Text formatting Pin
Skymir11-Jun-09 10:46
MemberSkymir11-Jun-09 10:46 
GeneralRe: Text formatting Pin
OriginalGriff11-Jun-09 10:55
mveOriginalGriff11-Jun-09 10:55 
GeneralRe: Text formatting Pin
Skymir11-Jun-09 11:02
MemberSkymir11-Jun-09 11:02 
GeneralRe: Text formatting Pin
Skymir12-Jun-09 9:35
MemberSkymir12-Jun-09 9:35 
Questiontoolstripcombobox and arraylist problem Pin
ThorTheBraveGod11-Jun-09 7:58
MemberThorTheBraveGod11-Jun-09 7:58 
AnswerRe: toolstripcombobox and arraylist problem Pin
ThorTheBraveGod11-Jun-09 8:21
MemberThorTheBraveGod11-Jun-09 8:21 
GeneralRe: toolstripcombobox and arraylist problem Pin
EliottA11-Jun-09 8:49
MemberEliottA11-Jun-09 8:49 
QuestionAudio vedio caputing Pin
mastercpj11-Jun-09 7:31
Membermastercpj11-Jun-09 7:31 
AnswerRe: Audio vedio caputing Pin
molesworth11-Jun-09 7:36
Membermolesworth11-Jun-09 7:36 
GeneralRe: Audio vedio caputing Pin
mastercpj11-Jun-09 7:45
Membermastercpj11-Jun-09 7:45 
GeneralRe: Audio vedio caputing Pin
EliottA11-Jun-09 7:49
MemberEliottA11-Jun-09 7:49 
GeneralRe: Audio vedio caputing Pin
molesworth11-Jun-09 10:58
Membermolesworth11-Jun-09 10:58 
AnswerRe: Audio vedio caputing Pin
Rajesh R Subramanian11-Jun-09 10:56
professionalRajesh R Subramanian11-Jun-09 10:56 
AnswerRe: Audio vedio caputing Pin
Nooner11-Jun-09 11:34
MemberNooner11-Jun-09 11:34 
GeneralRe: Audio vedio caputing Pin
Mycroft Holmes11-Jun-09 14:11
professionalMycroft Holmes11-Jun-09 14:11 
Questionabout ArraySegment<> Pin
Seraph_summer11-Jun-09 6:48
MemberSeraph_summer11-Jun-09 6:48 

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.