Click here to Skip to main content
15,881,812 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: .net application without .net framework Pin
Kentamanos10-Jan-04 9:47
Kentamanos10-Jan-04 9:47 
GeneralRe: .net application without .net framework Pin
Kentamanos10-Jan-04 12:27
Kentamanos10-Jan-04 12:27 
GeneralRe: .net application without .net framework Pin
Gerald Schwab9-Jan-04 20:02
Gerald Schwab9-Jan-04 20:02 
GeneralRe: .net application without .net framework Pin
Bo Hunter10-Jan-04 12:54
Bo Hunter10-Jan-04 12:54 
GeneralRe: .net application without .net framework Pin
hxxbin10-Jan-04 14:32
hxxbin10-Jan-04 14:32 
GeneralRe: .net application without .net framework Pin
leppie10-Jan-04 23:39
leppie10-Jan-04 23:39 
GeneralHelp regarding Listview & Progressbar Pin
jomargon9-Jan-04 18:53
jomargon9-Jan-04 18:53 
GeneralRe: Help regarding Listview & Progressbar Pin
Heath Stewart9-Jan-04 19:41
protectorHeath Stewart9-Jan-04 19:41 
QuestionSecure remoting channel? Pin
Alex Korchemniy9-Jan-04 14:18
Alex Korchemniy9-Jan-04 14:18 
AnswerRe: Secure remoting channel? Pin
Guillermo Rivero10-Jan-04 7:46
Guillermo Rivero10-Jan-04 7:46 
GeneralRe: Secure remoting channel? Pin
Alex Korchemniy10-Jan-04 9:45
Alex Korchemniy10-Jan-04 9:45 
GeneralProblem adding a reference Pin
Judy1011019-Jan-04 12:11
Judy1011019-Jan-04 12:11 
GeneralRe: Problem adding a reference Pin
Heath Stewart9-Jan-04 12:20
protectorHeath Stewart9-Jan-04 12:20 
GeneralRe: Problem adding a reference Pin
Judy1011019-Jan-04 15:56
Judy1011019-Jan-04 15: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.