Click here to Skip to main content
15,894,540 members
Home / Discussions / C#
   

C#

 
GeneralRe: Broadcasting on a local network Pin
ZigmaT8-Feb-04 12:22
ZigmaT8-Feb-04 12:22 
GeneralRe: Broadcasting on a local network Pin
Heath Stewart8-Feb-04 18:33
protectorHeath Stewart8-Feb-04 18:33 
GeneralCompiling Dependancies Pin
ZigmaT8-Feb-04 9:47
ZigmaT8-Feb-04 9:47 
GeneralRe: Compiling Dependancies Pin
Mazdak8-Feb-04 9:56
Mazdak8-Feb-04 9:56 
GeneralRe: Compiling Dependancies Pin
ZigmaT8-Feb-04 10:37
ZigmaT8-Feb-04 10:37 
GeneralRe: Compiling Dependancies Pin
Heath Stewart8-Feb-04 18:22
protectorHeath Stewart8-Feb-04 18:22 
GeneralRe: Compiling Dependancies Pin
ZigmaT9-Feb-04 8:30
ZigmaT9-Feb-04 8:30 
GeneralGetDisplayName - Valid, but no return value Pin
Tristan Rhodes8-Feb-04 9:14
Tristan Rhodes8-Feb-04 9:14 
GeneralRe: GetDisplayName - Valid, but no return value Pin
Nick Parker8-Feb-04 10:28
protectorNick Parker8-Feb-04 10:28 
GeneralRe: GetDisplayName - Valid, but no return value Pin
Tristan Rhodes8-Feb-04 12:46
Tristan Rhodes8-Feb-04 12:46 
GeneralSending an Image over HTTP. Pin
Jon Newman8-Feb-04 9:03
Jon Newman8-Feb-04 9:03 
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 

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.