Click here to Skip to main content
15,893,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: Images not showing in toolbar Pin
Anders Molin10-Jan-04 16:36
professionalAnders Molin10-Jan-04 16:36 
GeneralSolved Pin
Anders Molin10-Jan-04 16:49
professionalAnders Molin10-Jan-04 16:49 
GeneralRe: Solved Pin
leppie10-Jan-04 23:35
leppie10-Jan-04 23:35 
GeneralFiltering Datasets Pin
MrJJKoolJ10-Jan-04 13:18
MrJJKoolJ10-Jan-04 13:18 
GeneralRe: Filtering Datasets Pin
Colin Angus Mackay10-Jan-04 16:30
Colin Angus Mackay10-Jan-04 16:30 
GeneralRe: Filtering Datasets Pin
Mazdak10-Jan-04 19:10
Mazdak10-Jan-04 19:10 
QuestionAdvice? Pin
Alex Korchemniy10-Jan-04 11:07
Alex Korchemniy10-Jan-04 11:07 
AnswerRe: Advice? Pin
Guillermo Rivero10-Jan-04 11:25
Guillermo Rivero10-Jan-04 11:25 
GeneralLooking for XP Style textBoxes and dataGrid Pin
sinnen10-Jan-04 11:00
sinnen10-Jan-04 11:00 
GeneralRe: Looking for XP Style textBoxes and dataGrid Pin
Heath Stewart10-Jan-04 11:55
protectorHeath Stewart10-Jan-04 11:55 
GeneralRe: Looking for XP Style textBoxes and dataGrid Pin
sinnen12-Jan-04 10:53
sinnen12-Jan-04 10:53 
GeneralCryptography question Pin
Mazdak10-Jan-04 9:54
Mazdak10-Jan-04 9:54 
GeneralRe: Cryptography question Pin
Heath Stewart10-Jan-04 12:01
protectorHeath Stewart10-Jan-04 12:01 
GeneralRe: Cryptography question Pin
Mazdak10-Jan-04 19:05
Mazdak10-Jan-04 19:05 
GeneralRe: Cryptography question Pin
TuringTest110-Jan-04 20:37
TuringTest110-Jan-04 20:37 
GeneralCollectionBase.OnRemove and CollectionEditor Pin
Chris Richner10-Jan-04 7:09
Chris Richner10-Jan-04 7:09 
GeneralRe: CollectionBase.OnRemove and CollectionEditor Pin
Heath Stewart10-Jan-04 12:03
protectorHeath Stewart10-Jan-04 12:03 
GeneralRe: CollectionBase.OnRemove and CollectionEditor Pin
Chris Richner10-Jan-04 16:50
Chris Richner10-Jan-04 16:50 
GeneralDirectShow winform Pin
just_a_builder10-Jan-04 2:05
just_a_builder10-Jan-04 2:05 
GeneralRe: DirectShow winform Pin
Kentamanos10-Jan-04 9:43
Kentamanos10-Jan-04 9:43 
GeneralMouseEnter Control Pin
Luther Baker9-Jan-04 19:41
Luther Baker9-Jan-04 19:41 
GeneralRe: MouseEnter Control Pin
Heath Stewart9-Jan-04 19:52
protectorHeath Stewart9-Jan-04 19:52 
Because there are several things that can happen while your mouse is moving or resting comfortably in the bounds of your control, it'd probably be best to set a flag (ex: set to true) and call Invalidate() in the handler for MouseEnter event, and to clear the flag (ex: set to false) in the handler for the MouseLeave event. Of course, your override for OnPaint (note, this is an override, not an event handler, which are typically wired for other controls - use overrides when possible to override functionality from the base class) should draw the border appropriately depending on the flag.

The first method is possible (see Control.CreateGraphics) but is too problematic since MouseEnter only fires once. Your border would get painted, sure, but then any successive painting required won't repaint the border.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: MouseEnter Control Pin
Luther Baker9-Jan-04 20:29
Luther Baker9-Jan-04 20:29 
General.net application without .net framework Pin
w3Nima9-Jan-04 19:29
w3Nima9-Jan-04 19:29 
GeneralRe: .net application without .net framework Pin
Heath Stewart9-Jan-04 19:46
protectorHeath Stewart9-Jan-04 19:46 

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.