Click here to Skip to main content
15,887,398 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
Jaffer Mumtaz19-Jan-12 23:55
Jaffer Mumtaz19-Jan-12 23:55 
AnswerRe: Problem Copying Raw RGB Data to Bitmap Pin
BobJanova20-Jan-12 2:17
BobJanova20-Jan-12 2:17 
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
Jaffer Mumtaz21-Jan-12 7:31
Jaffer Mumtaz21-Jan-12 7:31 
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
BobJanova21-Jan-12 10:59
BobJanova21-Jan-12 10:59 
QuestionTime taken to load a contrl Pin
Subin Mavunkal19-Jan-12 19:15
Subin Mavunkal19-Jan-12 19:15 
AnswerRe: Time taken to load a contrl Pin
BillWoodruff19-Jan-12 20:15
professionalBillWoodruff19-Jan-12 20:15 
AnswerRe: Time taken to load a contrl Pin
V.19-Jan-12 20:27
professionalV.19-Jan-12 20:27 
AnswerRe: Time taken to load a contrl Pin
Luc Pattyn19-Jan-12 21:51
sitebuilderLuc Pattyn19-Jan-12 21:51 
Use the StopWatch class, call Start() right before and Stop() right after the execution of the code you're interested in.

I don't know what you mean by "load a control"; with all the events going on in a WinForms Form when opening up a new Form, it may well be that your control is touched in the Form's constructor, and several event handlers such as Load and Shown. And that other controls also get handled at around the same time.

You might even have to deal with an extra Control which you handle all at once, using your own run-time code only.

Warning: if lots of data is loaded into the control (such as a DataGridView fed by a database), how you organize the data load will predominate, not the generating and painting of the control itself; unless you have coded a large number of operations on a single control and you've forgotten to make good use of optimizing calls such as Control.SuspendLayout() and the like.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

AnswerRe: Time taken to load a contrl Pin
BobJanova19-Jan-12 22:13
BobJanova19-Jan-12 22:13 
Questionis object part of CollectionBase Pin
Hanzaplast19-Jan-12 5:26
Hanzaplast19-Jan-12 5:26 
AnswerRe: is object part of CollectionBase Pin
BobJanova19-Jan-12 6:41
BobJanova19-Jan-12 6:41 
AnswerRe: is object part of CollectionBase Pin
Luc Pattyn19-Jan-12 7:24
sitebuilderLuc Pattyn19-Jan-12 7:24 
GeneralRe: is object part of CollectionBase Pin
Dave Kreskowiak19-Jan-12 7:30
mveDave Kreskowiak19-Jan-12 7:30 
GeneralRe: is object part of CollectionBase Pin
Luc Pattyn19-Jan-12 8:01
sitebuilderLuc Pattyn19-Jan-12 8:01 
GeneralRe: is object part of CollectionBase Pin
BillWoodruff19-Jan-12 20:24
professionalBillWoodruff19-Jan-12 20:24 
Questionusing variables in SSIS script task: c# code Pin
bigphish19-Jan-12 1:33
bigphish19-Jan-12 1:33 
GeneralRe: using variables in SSIS script task: c# code Pin
Richard MacCutchan19-Jan-12 22:58
mveRichard MacCutchan19-Jan-12 22:58 
QuestionWSE3 Soap Service generated XML structure modification at runtime. Pin
FrankieG197519-Jan-12 1:08
FrankieG197519-Jan-12 1:08 
AnswerRe: WSE3 Soap Service generated XML structure modification at runtime. Pin
FrankieG197522-Jan-12 20:21
FrankieG197522-Jan-12 20:21 
QuestionHow to handle this Event ? Pin
Paramu197318-Jan-12 23:01
Paramu197318-Jan-12 23:01 
AnswerRe: How to handle this Event ? PinPopular
Eddy Vluggen19-Jan-12 0:31
professionalEddy Vluggen19-Jan-12 0:31 
GeneralRe: How to handle this Event ? Pin
Paramu197320-Jan-12 18:43
Paramu197320-Jan-12 18:43 
GeneralRe: How to handle this Event ? Pin
Eddy Vluggen21-Jan-12 1:40
professionalEddy Vluggen21-Jan-12 1:40 
AnswerRe: How to handle this Event ? PinPopular
BobJanova19-Jan-12 1:01
BobJanova19-Jan-12 1:01 
GeneralRe: How to handle this Event ? Pin
Paramu197320-Jan-12 18:44
Paramu197320-Jan-12 18:44 

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.