Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# class help? Pin
ShermansLagoon14-Feb-07 0:41
ShermansLagoon14-Feb-07 0:41 
AnswerRe: C# class help? Pin
Pete O'Hanlon14-Feb-07 1:21
mvePete O'Hanlon14-Feb-07 1:21 
Questionhow to validate a textbox field for no special characters Pin
Rocky#13-Feb-07 23:54
Rocky#13-Feb-07 23:54 
AnswerRe: how to validate a textbox field for no special characters Pin
stancrm14-Feb-07 0:20
stancrm14-Feb-07 0:20 
AnswerRe: how to validate a textbox field for no special characters Pin
Martin#14-Feb-07 0:24
Martin#14-Feb-07 0:24 
GeneralRe: how to validate a textbox field for no special characters Pin
Rocky#14-Feb-07 17:33
Rocky#14-Feb-07 17:33 
QuestionBegin and End Drawing function in C# Pin
free_soul42413-Feb-07 23:47
free_soul42413-Feb-07 23:47 
AnswerRe: Begin and End Drawing function in C# Pin
Ed.Poore14-Feb-07 0:30
Ed.Poore14-Feb-07 0:30 
No there isn't really, what you want is double-buffering, if you're using .NET 2 then there should be a DoubleBuffered property on the control you're inheriting from.  If not then use base.SetStyle in the constructor of the class.

The BeginUpdate and EndUpdate are used in a different way, say you have a ListBox, if you want to add 1000 items to it normally each time you add an item the Invalidate method is called, this will cause the control to recalculate it's entire contents and redraw all of them.  If you use the Begin/EndUpdate pair then what this does is set a flag to say that when an item is added / deleted changed it's not meant to be redrawn.  When you call the EndUpdate function when all the items have been added then it calls the Invalidate method to redraw the control (and clears the flag).

You can see the obvious benefits, in the first method (no Begin/EndUpdate) the control is redrawn 1000 times as each item is added (thus producing a flicker (unless you have an awesomely specced machine)), in the second it only redraws once when everything has finished.



GeneralRe: Begin and End Drawing function in C# Pin
free_soul42414-Feb-07 18:49
free_soul42414-Feb-07 18:49 
GeneralRe: Begin and End Drawing function in C# Pin
Ed.Poore14-Feb-07 23:50
Ed.Poore14-Feb-07 23:50 
QuestionHow to fill Combobox & ListBox in PopUp Windows Forms Pin
rzthebeginner13-Feb-07 23:44
rzthebeginner13-Feb-07 23:44 
AnswerRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
Ed.Poore14-Feb-07 0:31
Ed.Poore14-Feb-07 0:31 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
rzthebeginner14-Feb-07 0:41
rzthebeginner14-Feb-07 0:41 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
Ed.Poore14-Feb-07 0:47
Ed.Poore14-Feb-07 0:47 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms [modified] Pin
rzthebeginner14-Feb-07 0:53
rzthebeginner14-Feb-07 0:53 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
Ed.Poore14-Feb-07 1:14
Ed.Poore14-Feb-07 1:14 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
rzthebeginner14-Feb-07 1:20
rzthebeginner14-Feb-07 1:20 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
Ed.Poore14-Feb-07 2:55
Ed.Poore14-Feb-07 2:55 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
rzthebeginner14-Feb-07 21:04
rzthebeginner14-Feb-07 21:04 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
Ed.Poore15-Feb-07 0:20
Ed.Poore15-Feb-07 0:20 
GeneralRe: How to fill Combobox & ListBox in PopUp Windows Forms Pin
rzthebeginner15-Feb-07 1:10
rzthebeginner15-Feb-07 1:10 
Questiondatetime [modified] Pin
debnathrubs13-Feb-07 23:27
debnathrubs13-Feb-07 23:27 
AnswerRe: datetime [modified] Pin
dipswitch@ownage4u.nl13-Feb-07 23:35
professionaldipswitch@ownage4u.nl13-Feb-07 23:35 
AnswerRe: datetime Pin
dipswitch@ownage4u.nl14-Feb-07 0:11
professionaldipswitch@ownage4u.nl14-Feb-07 0:11 
QuestionExporting DataGrid contents to Excel Pin
Imthu13-Feb-07 23:27
Imthu13-Feb-07 23:27 

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.