Click here to Skip to main content
16,004,806 members
Home / Discussions / C#
   

C#

 
AnswerRe: Displaying time ONLY in a datagrid control Pin
Anonymous18-Oct-05 2:42
Anonymous18-Oct-05 2:42 
AnswerRe: Displaying time ONLY in a datagrid control Pin
Stan Shannon18-Oct-05 2:50
Stan Shannon18-Oct-05 2:50 
GeneralRe: Displaying time ONLY in a datagrid control Pin
Vikram A Punathambekar18-Oct-05 4:24
Vikram A Punathambekar18-Oct-05 4:24 
GeneralRe: Displaying time ONLY in a datagrid control Pin
Robert M Greene18-Oct-05 7:02
Robert M Greene18-Oct-05 7:02 
QuestionControls Leave Event - Help Pin
Craig G Fraser18-Oct-05 1:27
Craig G Fraser18-Oct-05 1:27 
AnswerRe: Controls Leave Event - Help Pin
Wjousts18-Oct-05 3:33
Wjousts18-Oct-05 3:33 
GeneralRe: Controls Leave Event - Help Pin
Craig G Fraser18-Oct-05 3:39
Craig G Fraser18-Oct-05 3:39 
GeneralRe: Controls Leave Event - Help Pin
Wjousts18-Oct-05 3:46
Wjousts18-Oct-05 3:46 
Hmmm....what if you set the KeyPreview property of the form that contains your control to true and handle the KeyDown event there? Will that let you see the KeyDown before the OnLeave event?

-- modified at 9:47 Tuesday 18th October, 2005

Actually, another thought. Perhaps you could check the mouse position using Cursor.Position in your OnLeave event and check to see if it is within your control or not?
Or better yet (maybe) perhaps you need to handle the MouseEnter and MouseLeave events for your control. Keep a flag (set on the MouseEnter and MouseLeave events) of whether the mouse is within the control. When the control first gets focus store the current state of that flag. On your OnLeave event check to see if the current flag state indicates that the mouse is outside the control where before it was inside. There are some details there that you'd have to work out, but it's something to think about.
Questionencryption in c# Pin
sandy_francs18-Oct-05 1:13
sandy_francs18-Oct-05 1:13 
AnswerRe: encryption in c# Pin
Vikram A Punathambekar18-Oct-05 1:37
Vikram A Punathambekar18-Oct-05 1:37 
GeneralRe: encryption in c# Pin
sandy_francs18-Oct-05 16:14
sandy_francs18-Oct-05 16:14 
AnswerRe: encryption in c# Pin
Ryan Roberts18-Oct-05 1:41
Ryan Roberts18-Oct-05 1:41 
Questionhi all Pin
magnifique18-Oct-05 0:37
magnifique18-Oct-05 0:37 
AnswerRe: hi all Pin
Rob Philpott18-Oct-05 1:10
Rob Philpott18-Oct-05 1:10 
QuestionMerging cells Pin
servik18-Oct-05 0:32
servik18-Oct-05 0:32 
QuestionNUMERIC DataGridViewColumn Pin
Greeky18-Oct-05 0:01
Greeky18-Oct-05 0:01 
AnswerRe: NUMERIC DataGridViewColumn Pin
Robert Rohde18-Oct-05 6:00
Robert Rohde18-Oct-05 6:00 
Questioniterating ResourceManager Pin
chettu17-Oct-05 23:51
chettu17-Oct-05 23:51 
QuestionAdd a toolbar in the windows deskbar... Pin
seup17-Oct-05 23:38
seup17-Oct-05 23:38 
AnswerRe: Add a toolbar in the windows deskbar... Pin
seup19-Oct-05 6:39
seup19-Oct-05 6:39 
QuestionODBC Dataadapter - Error HY007 on update! Pin
Patrick Klug17-Oct-05 22:33
Patrick Klug17-Oct-05 22:33 
AnswerRe: ODBC Dataadapter - Error HY007 on update! Pin
Gavin Jeffrey18-Oct-05 3:56
Gavin Jeffrey18-Oct-05 3:56 
GeneralRe: ODBC Dataadapter - Error HY007 on update! Pin
Patrick Klug18-Oct-05 6:00
Patrick Klug18-Oct-05 6:00 
QuestionWindows crash (BSOD) when compiling in VS.NET Pin
dorwin17-Oct-05 22:23
dorwin17-Oct-05 22:23 
AnswerRe: Windows crash (BSOD) when compiling in VS.NET Pin
leppie18-Oct-05 5:15
leppie18-Oct-05 5:15 

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.