Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sending an Image over HTTP. Pin
Mazdak8-Feb-04 9:09
Mazdak8-Feb-04 9:09 
GeneralRe: Sending an Image over HTTP. Pin
Jon Newman8-Feb-04 9:32
Jon Newman8-Feb-04 9:32 
GeneralRe: Sending an Image over HTTP. Pin
Mazdak8-Feb-04 9:40
Mazdak8-Feb-04 9:40 
GeneralRe: Sending an Image over HTTP. Pin
Not Active9-Feb-04 3:12
mentorNot Active9-Feb-04 3:12 
GeneralAutoscrolling Text Boxes Pin
ZigmaT8-Feb-04 9:00
ZigmaT8-Feb-04 9:00 
QuestionGrid Control - How do I add single rows?? Pin
IrishSonic8-Feb-04 8:49
IrishSonic8-Feb-04 8:49 
AnswerRe: Grid Control - How do I add single rows?? Pin
Mazdak8-Feb-04 9:01
Mazdak8-Feb-04 9:01 
GeneralTroubles with Owner-draw TextBox... Pin
Mike0108-Feb-04 7:55
Mike0108-Feb-04 7:55 
I'm using C# and drying to develop a custom TextBox control. Currently I am simply trying to draw with blue instead of black. I've overriddent the OnPaint method and as long as the TextBox does not have the focus it draws the text in blue as i want it to; however, once you click inside of the edit box, my custom drawing routine no longer gets used. If you then force a repaint (i.e. minimize and then maximize) my code is once again used for the redraw. How do I get the control to use my drawing routine while it has the focus and the user is typing in it? Here is the code I have right now:

#region Custom Drawing Code <br />
protected override void OnPaint( PaintEventArgs pe ) <br />
{ <br />
   //base.OnPaint( pe ); <br />
   Brush b = new SolidBrush( Color.Aqua ); <br />
   Font f = new Font( "Arial", 12); <br />
<br />
   pe.Graphics.DrawString( Text, Font, b, 0, 0 ); <br />
} <br />
#endregion 

GeneralRe: Troubles with Owner-draw TextBox... Pin
leppie8-Feb-04 8:28
leppie8-Feb-04 8:28 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Mike0108-Feb-04 9:29
Mike0108-Feb-04 9:29 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Heath Stewart8-Feb-04 18:13
protectorHeath Stewart8-Feb-04 18:13 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Mike0109-Feb-04 4:43
Mike0109-Feb-04 4:43 
GeneralAdapt forms to screen resolution Pin
haezeban8-Feb-04 7:55
haezeban8-Feb-04 7:55 
GeneralRe: Adapt forms to screen resolution Pin
Mazdak8-Feb-04 8:24
Mazdak8-Feb-04 8:24 
GeneralRe: Adapt forms to screen resolution Pin
Heath Stewart8-Feb-04 18:07
protectorHeath Stewart8-Feb-04 18:07 
Questionminimize to tray? Pin
visiontec8-Feb-04 7:43
visiontec8-Feb-04 7:43 
AnswerRe: minimize to tray? Pin
OmegaSupreme8-Feb-04 10:18
OmegaSupreme8-Feb-04 10:18 
GeneralRe: minimize to tray? Pin
visiontec9-Feb-04 11:34
visiontec9-Feb-04 11:34 
GeneralRe: minimize to tray? Pin
OmegaSupreme9-Feb-04 15:25
OmegaSupreme9-Feb-04 15:25 
GeneralAdding parameters to a table Pin
Andrlage8-Feb-04 5:30
Andrlage8-Feb-04 5:30 
GeneralRe: Adding parameters to a table Pin
Nick Parker8-Feb-04 6:02
protectorNick Parker8-Feb-04 6:02 
QuestionMost efficient way of doing this? Pin
Alex Korchemniy7-Feb-04 22:31
Alex Korchemniy7-Feb-04 22:31 
GeneralZooming approach Pin
Meysam Mahfouzi7-Feb-04 18:08
Meysam Mahfouzi7-Feb-04 18:08 
GeneralRe: Zooming approach Pin
Heath Stewart7-Feb-04 19:00
protectorHeath Stewart7-Feb-04 19:00 
GeneralCombo Box problem... Pin
je_gonzalez7-Feb-04 17:27
je_gonzalez7-Feb-04 17:27 

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.