Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sorry - I remove this topic to WCF forum Pin
dan!sh 23-Oct-09 9:31
professional dan!sh 23-Oct-09 9:31 
GeneralRe: Sorry - I remove this topic to WCF forum Pin
Not Active23-Oct-09 10:10
mentorNot Active23-Oct-09 10:10 
Questionc# - copying out a segment from a byte array Pin
Alan Kurlansky23-Oct-09 5:02
Alan Kurlansky23-Oct-09 5:02 
AnswerRe: c# - copying out a segment from a byte array Pin
Matt Meyer23-Oct-09 5:28
Matt Meyer23-Oct-09 5:28 
GeneralRe: c# - copying out a segment from a byte array Pin
Alan Kurlansky23-Oct-09 5:44
Alan Kurlansky23-Oct-09 5:44 
QuestionTextbox text scrunched Pin
LimitedAtonement23-Oct-09 4:38
LimitedAtonement23-Oct-09 4:38 
AnswerRe: Textbox text scrunched Pin
ely_bob23-Oct-09 6:11
professionalely_bob23-Oct-09 6:11 
GeneralRe: Textbox text scrunched Pin
LimitedAtonement23-Oct-09 7:46
LimitedAtonement23-Oct-09 7:46 
Dear Mr. ely_bob,

Thanks for your response! You know what...now that you mention it, It might be using GDI+ that the text is being drawn. I just realized that the TextBox control is used for EDITING the value, not displaying it! I keep forgetting that it's programmed that way. I'll look at it. So you think that maybe what's happenning is that the x += 2; is not persisting; okay, I'll check it out. Thanks again.


[====EDIT====]

It looks like this is the code used to draw the strings:
context.Graphics.DrawString(label, _font, _brush, clipRect, _format);

Yup...just checked, and I see where it drew my string. So...let's see.
the arguments
label = "0.0\0.0\-25.0\0.0\0.0\-25.0\0.0\0.0\-25.0\0.0\0.0\-25.0\0.0\0.0\-25.0 "
_font = {[Font: Name=Microsoft Sans Serif, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False]}
_brush = {System.Drawing.SolidBrush}
clipRect = {X=418,Y=768,Width=338,Height=16}
_format = {[StringFormat, FormatFlags=FitBlackBox, NoWrap, NoClip]}


Now, I'm reading about the format.FitBlackBox property, it says
"...By default, characters are repositioned to avoid any overhang." I would guess that this is the effect I'm complaining about, but after changing that, I still have the effect. Let me know what you think.

In Christ,
Aaron Laws

http://ProCure.com

QuestionItem Databound Pin
Ersan Ercek23-Oct-09 3:57
Ersan Ercek23-Oct-09 3:57 
AnswerRe: Item Databound Pin
Henry Minute23-Oct-09 4:19
Henry Minute23-Oct-09 4:19 
GeneralRe: Item Databound Pin
Ersan Ercek23-Oct-09 4:29
Ersan Ercek23-Oct-09 4:29 
Questioninstaller to install is SQL Server 2005 Express Edition Pin
Member 180672423-Oct-09 3:00
Member 180672423-Oct-09 3:00 
AnswerRe: installer to install is SQL Server 2005 Express Edition Pin
Searril23-Oct-09 3:36
Searril23-Oct-09 3:36 
QuestionTreeView in C# Pin
silva10323-Oct-09 2:53
silva10323-Oct-09 2:53 
AnswerRe: TreeView in C# Pin
Henry Minute23-Oct-09 4:13
Henry Minute23-Oct-09 4:13 
GeneralRe: TreeView in C# Pin
silva10323-Oct-09 4:47
silva10323-Oct-09 4:47 
GeneralRe: TreeView in C# Pin
Henry Minute23-Oct-09 4:53
Henry Minute23-Oct-09 4:53 
GeneralRe: TreeView in C# Pin
silva10323-Oct-09 8:29
silva10323-Oct-09 8:29 
GeneralRe: TreeView in C# Pin
Henry Minute23-Oct-09 9:01
Henry Minute23-Oct-09 9:01 
GeneralRe: TreeView in C# Pin
silva10323-Oct-09 16:44
silva10323-Oct-09 16:44 
QuestionString split Pin
Sebastian T Xavier23-Oct-09 1:52
Sebastian T Xavier23-Oct-09 1:52 
AnswerRe: String split Pin
dan!sh 23-Oct-09 2:02
professional dan!sh 23-Oct-09 2:02 
AnswerRe: String split [modified] Pin
musefan23-Oct-09 2:42
musefan23-Oct-09 2:42 
GeneralRe: String split Pin
Sebastian T Xavier23-Oct-09 3:23
Sebastian T Xavier23-Oct-09 3:23 
GeneralRe: String split Pin
J4amieC23-Oct-09 4:09
J4amieC23-Oct-09 4:09 

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.