Click here to Skip to main content
15,499,289 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cryptography question Pin
TuringTest110-Jan-04 21:37
MemberTuringTest110-Jan-04 21:37 
GeneralCollectionBase.OnRemove and CollectionEditor Pin
Chris Richner10-Jan-04 8:09
MemberChris Richner10-Jan-04 8:09 
GeneralRe: CollectionBase.OnRemove and CollectionEditor Pin
Heath Stewart10-Jan-04 13:03
protectorHeath Stewart10-Jan-04 13:03 
GeneralRe: CollectionBase.OnRemove and CollectionEditor Pin
Chris Richner10-Jan-04 17:50
MemberChris Richner10-Jan-04 17:50 
GeneralDirectShow winform Pin
just_a_builder10-Jan-04 3:05
Memberjust_a_builder10-Jan-04 3:05 
GeneralRe: DirectShow winform Pin
Kentamanos10-Jan-04 10:43
MemberKentamanos10-Jan-04 10:43 
GeneralMouseEnter Control Pin
Luther Baker9-Jan-04 20:41
MemberLuther Baker9-Jan-04 20:41 
GeneralRe: MouseEnter Control Pin
Heath Stewart9-Jan-04 20:52
protectorHeath Stewart9-Jan-04 20: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 21:29
MemberLuther Baker9-Jan-04 21:29 
General.net application without .net framework Pin
w3Nima9-Jan-04 20:29
Memberw3Nima9-Jan-04 20:29 
GeneralRe: .net application without .net framework Pin
Heath Stewart9-Jan-04 20:46
protectorHeath Stewart9-Jan-04 20:46 
GeneralRe: .net application without .net framework Pin
Kentamanos10-Jan-04 10:47
MemberKentamanos10-Jan-04 10:47 
GeneralRe: .net application without .net framework Pin
Kentamanos10-Jan-04 13:27
MemberKentamanos10-Jan-04 13:27 
GeneralRe: .net application without .net framework Pin
Gerald Schwab9-Jan-04 21:02
MemberGerald Schwab9-Jan-04 21:02 
GeneralRe: .net application without .net framework Pin
Bo Hunter10-Jan-04 13:54
MemberBo Hunter10-Jan-04 13:54 
GeneralRe: .net application without .net framework Pin
hxxbin10-Jan-04 15:32
Memberhxxbin10-Jan-04 15:32 
GeneralRe: .net application without .net framework Pin
leppie11-Jan-04 0:39
Memberleppie11-Jan-04 0:39 
GeneralHelp regarding Listview & Progressbar Pin
jomargon9-Jan-04 19:53
Memberjomargon9-Jan-04 19:53 
GeneralRe: Help regarding Listview & Progressbar Pin
Heath Stewart9-Jan-04 20:41
protectorHeath Stewart9-Jan-04 20:41 
QuestionSecure remoting channel? Pin
Alex Korchemniy9-Jan-04 15:18
MemberAlex Korchemniy9-Jan-04 15:18 
AnswerRe: Secure remoting channel? Pin
Guillermo Rivero10-Jan-04 8:46
MemberGuillermo Rivero10-Jan-04 8:46 
GeneralRe: Secure remoting channel? Pin
Alex Korchemniy10-Jan-04 10:45
MemberAlex Korchemniy10-Jan-04 10:45 
GeneralProblem adding a reference Pin
Judy1011019-Jan-04 13:11
MemberJudy1011019-Jan-04 13:11 
GeneralRe: Problem adding a reference Pin
Heath Stewart9-Jan-04 13:20
protectorHeath Stewart9-Jan-04 13:20 
GeneralRe: Problem adding a reference Pin
Judy1011019-Jan-04 16:56
MemberJudy1011019-Jan-04 16:56 

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.