Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Casting wierdness.. Pin
leppie5-Aug-02 10:16
leppie5-Aug-02 10:16 
GeneralRe: Casting wierdness.. Pin
Ryan Cromwell5-Aug-02 10:21
Ryan Cromwell5-Aug-02 10:21 
GeneralRe: Casting wierdness... Lordy be the funk's on me! Pin
Ryan Cromwell5-Aug-02 10:56
Ryan Cromwell5-Aug-02 10:56 
GeneralRe: Casting wierdness... Lordy be the funk's on me! Pin
leppie5-Aug-02 11:13
leppie5-Aug-02 11:13 
GeneralSystem.Windows.Forms.TextBox and WM_CTLCOLOREDIT Pin
Nish Nishant4-Aug-02 23:43
sitebuilderNish Nishant4-Aug-02 23:43 
GeneralRe: System.Windows.Forms.TextBox and WM_CTLCOLOREDIT Pin
Russell Morris5-Aug-02 6:14
Russell Morris5-Aug-02 6:14 
GeneralRe: System.Windows.Forms.TextBox and WM_CTLCOLOREDIT Pin
Rama Krishna Vavilala5-Aug-02 6:14
Rama Krishna Vavilala5-Aug-02 6:14 
GeneralRe: System.Windows.Forms.TextBox and WM_CTLCOLOREDIT Pin
Nish Nishant5-Aug-02 10:11
sitebuilderNish Nishant5-Aug-02 10:11 
Rama Krishna wrote:
The Control class handles WM_CTLCOLOR for you and sets the background color and the text color of the dc to that specified in the properties of the Control. So you don't need to handle it.

Usually we dont need to. But if you handle WM_PAINT yourself, and draw a different color background, then you have a problem. Now when the user types something in, the bgcolor of the text is not your back color Frown | :-(
Even specifying the backColor property is useless here. I wasted half an hr over this today. Also discussed with James. He feels that when you handle WM_PAINT yourself somehow WM_CTLCOLOR is handled by the OS Frown | :-(

Nish


Author of the romantic comedy

Summer Love and Some more Cricket [New Win]

Review by Shog9
Click here for review[NW]

GeneralRe: System.Windows.Forms.TextBox and WM_CTLCOLOREDIT Pin
Rama Krishna Vavilala5-Aug-02 10:18
Rama Krishna Vavilala5-Aug-02 10:18 
GeneralTextBoxes - custom stuff Pin
Nish Nishant4-Aug-02 21:35
sitebuilderNish Nishant4-Aug-02 21:35 
GeneralRe: TextBoxes - custom stuff [more...] Pin
Nish Nishant4-Aug-02 21:39
sitebuilderNish Nishant4-Aug-02 21:39 
GeneralRe: TextBoxes - custom stuff Pin
Rama Krishna Vavilala5-Aug-02 7:29
Rama Krishna Vavilala5-Aug-02 7:29 
GeneralCEdit::SetMargins equivalent in .NET Pin
Nish Nishant4-Aug-02 20:49
sitebuilderNish Nishant4-Aug-02 20:49 
GeneralRe: CEdit::SetMargins equivalent in .NET Pin
Nish Nishant4-Aug-02 21:09
sitebuilderNish Nishant4-Aug-02 21:09 
GeneralTag for ComboBox items Pin
Luis Alonso Ramos4-Aug-02 19:14
Luis Alonso Ramos4-Aug-02 19:14 
GeneralRe: Tag for ComboBox items Pin
James T. Johnson4-Aug-02 19:54
James T. Johnson4-Aug-02 19:54 
GeneralRe: Tag for ComboBox items Pin
Luis Alonso Ramos5-Aug-02 5:12
Luis Alonso Ramos5-Aug-02 5:12 
GeneralFilter out non-standard fonts Pin
Nish Nishant4-Aug-02 14:53
sitebuilderNish Nishant4-Aug-02 14:53 
GeneralTrueType OpenType Pin
Nish Nishant4-Aug-02 14:47
sitebuilderNish Nishant4-Aug-02 14:47 
GeneralRe: TrueType OpenType Pin
Domenic Denicola4-Aug-02 17:32
Domenic Denicola4-Aug-02 17:32 
GeneralForce Scroll in DataGrid Pin
MStanbrook4-Aug-02 14:01
MStanbrook4-Aug-02 14:01 
GeneralRe: Force Scroll in DataGrid Pin
James T. Johnson4-Aug-02 21:28
James T. Johnson4-Aug-02 21:28 
GeneralRe: Force Scroll in DataGrid Pin
mike.5-Aug-02 8:15
mike.5-Aug-02 8:15 
GeneralMarshaling Pin
Kastro4-Aug-02 10:52
Kastro4-Aug-02 10:52 
GeneralRe: Marshaling Pin
Rama Krishna Vavilala4-Aug-02 11:18
Rama Krishna Vavilala4-Aug-02 11:18 

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.