Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
Questionwindows messaging Pin
Roy K25-Nov-05 12:16
Roy K25-Nov-05 12:16 
AnswerRe: windows messaging Pin
Curtis Schlak.25-Nov-05 13:41
Curtis Schlak.25-Nov-05 13:41 
GeneralRe: windows messaging Pin
Roy K25-Nov-05 16:43
Roy K25-Nov-05 16:43 
GeneralRe: windows messaging Pin
Curtis Schlak.26-Nov-05 7:11
Curtis Schlak.26-Nov-05 7:11 
QuestionAnyone with UserComponents experience Pin
rahulmballal25-Nov-05 12:08
rahulmballal25-Nov-05 12:08 
QuestionC# and SQL Express Primer Pin
budidharma25-Nov-05 11:27
budidharma25-Nov-05 11:27 
AnswerRe: C# and SQL Express Primer Pin
budidharma25-Nov-05 11:28
budidharma25-Nov-05 11:28 
QuestionCalls to OnPaint() - WinForms - VS 2005 Pin
mladen197425-Nov-05 10:44
mladen197425-Nov-05 10:44 
Hi,

I was wondering.......why so many calls are made to OnPaint method of the Form when ClientRectangle of the button needs to be invalidated.Confused | :confused:
I was testing some of the vs2005 features and i run a simple test which involved label, button and a call to OnPaint method.
This was done on XP Pro system.

The result was that each time the buttons ClientRectangle needs to be invalidated the Forms OnPaint method gets called. - just moving the mouse, on and off the button would call the Forms OnPaint method.
This happened only when button's style was set to Standard or System, otherwise everything works as expected.
(I used "label.text" to display #of calls to OnPaint( ) )

I've tried other standard vs2005 controls and this intensive (strange) calling of Forms OnPaint( ) manifested itself only with the button.

What am i missing here? Should this be happening?
Seems like a waste of resources.......

-- modified at 16:51 Friday 25th November, 2005
Questionnew desktop Pin
Sam 200625-Nov-05 9:58
Sam 200625-Nov-05 9:58 
AnswerRe: new desktop Pin
Dave Kreskowiak25-Nov-05 10:29
mveDave Kreskowiak25-Nov-05 10:29 
QuestionSqlDataAdapter and Data designers in VS8 Pin
Fernando A. Gomez F.25-Nov-05 9:26
Fernando A. Gomez F.25-Nov-05 9:26 
QuestionQu About Username and Password Encryption in C#.Net Pin
Reeturaja25-Nov-05 6:35
Reeturaja25-Nov-05 6:35 
QuestionHow to Encrypting Username and Password in C# Pin
Reeturaja25-Nov-05 6:35
Reeturaja25-Nov-05 6:35 
AnswerRe: How to Encrypting Username and Password in C# Pin
Stanciu Vlad25-Nov-05 6:45
Stanciu Vlad25-Nov-05 6:45 
QuestionControl visibility Problem in Inheriting WinForm! Pin
majidbhutta25-Nov-05 6:12
majidbhutta25-Nov-05 6:12 
AnswerRe: Control visibility Problem in Inheriting WinForm! Pin
Stanciu Vlad25-Nov-05 6:36
Stanciu Vlad25-Nov-05 6:36 
QuestionMultiple Inheritence problem Pin
rnvrnv25-Nov-05 5:10
rnvrnv25-Nov-05 5:10 
AnswerRe: Multiple Inheritence problem Pin
sjdevo3gsr25-Nov-05 5:30
sjdevo3gsr25-Nov-05 5:30 
GeneralRe: Multiple Inheritence problem Pin
rnvrnv25-Nov-05 5:49
rnvrnv25-Nov-05 5:49 
GeneralRe: Multiple Inheritence problem Pin
Colin Angus Mackay25-Nov-05 6:30
Colin Angus Mackay25-Nov-05 6:30 
QuestionPassing ref of a struct Pin
sjdevo3gsr25-Nov-05 4:55
sjdevo3gsr25-Nov-05 4:55 
AnswerRe: Passing ref of a struct Pin
leppie25-Nov-05 5:42
leppie25-Nov-05 5:42 
GeneralRe: Passing ref of a struct Pin
sjdevo3gsr25-Nov-05 8:08
sjdevo3gsr25-Nov-05 8:08 
QuestionC# Drawings.Image animation Pin
Ryotsuke25-Nov-05 3:41
Ryotsuke25-Nov-05 3:41 
AnswerRe: C# Drawings.Image animation Pin
Curtis Schlak.25-Nov-05 4:38
Curtis Schlak.25-Nov-05 4:38 

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.