backgrd color combobox

  • Thread starter Thread starter Harry
  • Start date Start date
H

Harry

I highlight the background colour of a textbox when it has focus, is there
a
way to do this for the combobox
eg cmbMortgage.BackColor = Color.Red;
 
Hi Harry,

You could handle the ComboBox' Enter and Leave event and for instance set
BackColor to Red on Enter and set it to whatever it had to begin with on
Leave.

Alternately you could handle the DrawItem event (DrawMode to either of the
ownerdrawn ones). That will give you control of how to draw the ComboBox
(beware that DropDownMode has to be DropDownList to handle drawing for the
EditBox).
 
Looking again. I am creating applications for the smartphone but do not
have enter/leave events. I can not find DrawMode
 
I'm not familiar with smartphones (Compact Framework?)

The Enter/Leave are focus events inherited from Control, and I'm not sure
they are available in Compact Framework. DrawMode does not appear to be
supported by Compact Framework.
 
Harry,

This is something that should be posted to the
microsoft.public.pocketpc.developer group. I have cross-posted it for you.

HTH,
~dotnetcoder
Looking again. I am creating applications for the smartphone but do not
have enter/leave events. I can not find DrawMode
 
Thyanks
D0tN3t C0d3r said:
Harry,

This is something that should be posted to the
microsoft.public.pocketpc.developer group. I have cross-posted it for you.

HTH,
~dotnetcoder
 
Back
Top