Click here to Skip to main content
15,795,402 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sorry - I remove this topic to WCF forum Pin
dan!sh 23-Oct-09 10:31
professional dan!sh 23-Oct-09 10:31 
GeneralRe: Sorry - I remove this topic to WCF forum Pin
Not Active23-Oct-09 11:10
mentorNot Active23-Oct-09 11:10 
Questionc# - copying out a segment from a byte array Pin
Alan Kurlansky23-Oct-09 6:02
Alan Kurlansky23-Oct-09 6:02 
AnswerRe: c# - copying out a segment from a byte array Pin
Matt Meyer23-Oct-09 6:28
Matt Meyer23-Oct-09 6:28 
GeneralRe: c# - copying out a segment from a byte array Pin
Alan Kurlansky23-Oct-09 6:44
Alan Kurlansky23-Oct-09 6:44 
QuestionTextbox text scrunched Pin
LimitedAtonement23-Oct-09 5:38
LimitedAtonement23-Oct-09 5:38 
AnswerRe: Textbox text scrunched Pin
ely_bob23-Oct-09 7:11
professionalely_bob23-Oct-09 7:11 
GeneralRe: Textbox text scrunched Pin
LimitedAtonement23-Oct-09 8:46
LimitedAtonement23-Oct-09 8: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 4:57
Ersan Ercek23-Oct-09 4:57 
AnswerRe: Item Databound Pin
Henry Minute23-Oct-09 5:19
Henry Minute23-Oct-09 5:19 
GeneralRe: Item Databound Pin
Ersan Ercek23-Oct-09 5:29
Ersan Ercek23-Oct-09 5:29 
Questioninstaller to install is SQL Server 2005 Express Edition Pin
Member 180672423-Oct-09 4:00
Member 180672423-Oct-09 4:00 
AnswerRe: installer to install is SQL Server 2005 Express Edition Pin
Searril23-Oct-09 4:36
Searril23-Oct-09 4:36 
QuestionTreeView in C# Pin
silva10323-Oct-09 3:53
silva10323-Oct-09 3:53 
AnswerRe: TreeView in C# Pin
Henry Minute23-Oct-09 5:13
Henry Minute23-Oct-09 5:13 
GeneralRe: TreeView in C# Pin
silva10323-Oct-09 5:47
silva10323-Oct-09 5:47 
GeneralRe: TreeView in C# Pin
Henry Minute23-Oct-09 5:53
Henry Minute23-Oct-09 5:53 
GeneralRe: TreeView in C# Pin
silva10323-Oct-09 9:29
silva10323-Oct-09 9:29 
GeneralRe: TreeView in C# Pin
Henry Minute23-Oct-09 10:01
Henry Minute23-Oct-09 10:01 
GeneralRe: TreeView in C# Pin
silva10323-Oct-09 17:44
silva10323-Oct-09 17:44 
QuestionString split Pin
Sebastian T Xavier23-Oct-09 2:52
Sebastian T Xavier23-Oct-09 2:52 
AnswerRe: String split Pin
dan!sh 23-Oct-09 3:02
professional dan!sh 23-Oct-09 3:02 
AnswerRe: String split [modified] Pin
musefan23-Oct-09 3:42
musefan23-Oct-09 3:42 
GeneralRe: String split Pin
Sebastian T Xavier23-Oct-09 4:23
Sebastian T Xavier23-Oct-09 4:23 
GeneralRe: String split Pin
J4amieC23-Oct-09 5:09
J4amieC23-Oct-09 5: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.