Click here to Skip to main content
15,911,142 members
Home / Discussions / C#
   

C#

 
GeneralTreeView OwnerDraw: WndProc(...) How to get item information like ItemRectangle, ItemText, Focused Pin
STW27-Feb-03 6:28
STW27-Feb-03 6:28 
GeneralRe: TreeView OwnerDraw: WndProc(...) How to get item information like ItemRectangle, ItemText, Focused Pin
leppie27-Feb-03 9:08
leppie27-Feb-03 9:08 
GeneralRe: TreeView OwnerDraw: WndProc(...) How to get item information like ItemRectangle, ItemText, Focused Pin
STW28-Feb-03 3:10
STW28-Feb-03 3:10 
GeneralInternet date and time Pin
Bjornar Henden27-Feb-03 5:35
Bjornar Henden27-Feb-03 5:35 
GeneralRe: Internet date and time Pin
David Stone27-Feb-03 7:45
sitebuilderDavid Stone27-Feb-03 7:45 
GeneralRe: Internet date and time Pin
Bjornar Henden27-Feb-03 8:26
Bjornar Henden27-Feb-03 8:26 
GeneralRe: Internet date and time Pin
Maq28-Feb-03 0:46
Maq28-Feb-03 0:46 
GeneralRe: Internet date and time Pin
Bjornar Henden2-Mar-03 7:57
Bjornar Henden2-Mar-03 7:57 
GeneralRe: Internet date and time Pin
Maq2-Mar-03 22:35
Maq2-Mar-03 22:35 
QuestionFlat combobox? Pin
se99ts27-Feb-03 4:05
se99ts27-Feb-03 4:05 
AnswerRe: Flat combobox? Pin
Furty27-Feb-03 14:46
Furty27-Feb-03 14:46 
GeneralAdd Web Reference Pin
morefalt27-Feb-03 3:51
morefalt27-Feb-03 3:51 
GeneralADO .net filter prohibited characters on a query Pin
Braulio Dez26-Feb-03 23:14
Braulio Dez26-Feb-03 23:14 
GeneralRe: ADO .net filter prohibited characters on a query Pin
Nick Parker27-Feb-03 4:43
protectorNick Parker27-Feb-03 4:43 
GeneralWebServices and older versions of VC and VB Pin
Braulio Dez26-Feb-03 23:07
Braulio Dez26-Feb-03 23:07 
GeneralRe: WebServices and older versions of VC and VB Pin
David Stone27-Feb-03 7:47
sitebuilderDavid Stone27-Feb-03 7:47 
GeneralRe: WebServices and older versions of VC and VB Pin
Dato27-Feb-03 14:47
Dato27-Feb-03 14:47 
GeneralWebServices and older versions of VC and VB Pin
Braulio Dez26-Feb-03 23:06
Braulio Dez26-Feb-03 23:06 
GeneralSmtp mail Pin
John Karbin26-Feb-03 20:42
John Karbin26-Feb-03 20:42 
GeneralRe: Smtp mail Pin
David Stone27-Feb-03 7:42
sitebuilderDavid Stone27-Feb-03 7:42 
GeneralRe: Smtp mail Pin
John Karbin27-Feb-03 21:02
John Karbin27-Feb-03 21:02 
General.net Pin
devvvy26-Feb-03 19:32
devvvy26-Feb-03 19:32 
GeneralRe: .net Pin
Hesham Amin26-Feb-03 22:07
Hesham Amin26-Feb-03 22:07 
GeneralVery hard to fix bug in my Form Pin
Mattingly26-Feb-03 13:45
Mattingly26-Feb-03 13:45 
I have what is a very annoying and subtle little glitch that I cannot get rid of. I'll try to be brief and to the point.

I have a form, on it are a handful of Label controls that I have subclassed, but I haven't changed the way they draw or render at all, just added some private properties to them specific my app.

When you click on the label, a ContextMenu is shown, and the label's image property recieves a different image to show it in a downstate.

If you chose not to select a menu item and click somewhere within the form, the context menu dissapears, naturally, and the label's image state returns to normal.

However, if you click *outside* the form while the context menu is displayed, say on another application behind the form, which has the effect of the form losing its focus and falling behind, and then if you bring the form back to focus, the label's image can be seen for a half second to still be in its down state before changing back to the normal state.

I have tried to put the code that returns the labels image state to normal *everywhere* in the lifecycle of the form's visibility that I can possibly think of. But no matter what, for a half of a second you can still see it in its down state when the form returns.

I am pulling my hair out. It sounds trivial, but it looks very bad, and I cannot allow it to behave this way when released. Is there something I'm missing? Maybe something to do with validation of controls?

Anything?

Thanks for any ideas people might have and hearing my little tale of woe.

Matttingly
GeneralRe: Very hard to fix bug in my Form Pin
Jeff J26-Feb-03 17:31
Jeff J26-Feb-03 17:31 

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.