Click here to Skip to main content
15,895,084 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: How to remove an ambiguity in namespace in .NET 1.1 Pin
Rocky#30-Sep-07 0:04
Rocky#30-Sep-07 0:04 
GeneralRe: How to remove an ambiguity in namespace in .NET 1.1 Pin
DanB198330-Sep-07 9:16
DanB198330-Sep-07 9:16 
QuestionPassing a list of structures from managed c++ to c# Pin
slkr17126-Sep-07 2:42
slkr17126-Sep-07 2:42 
AnswerRe: Passing a list of structures from managed c++ to c# Pin
led mike26-Sep-07 4:55
led mike26-Sep-07 4:55 
GeneralRe: Passing a list of structures from managed c++ to c# Pin
slkr17126-Sep-07 20:55
slkr17126-Sep-07 20:55 
Questionusing unmanaged dlls asserts Pin
dedil26-Sep-07 1:13
dedil26-Sep-07 1:13 
QuestionWhat is resposible for Painting DataGridView Pin
BuckBrown24-Sep-07 12:33
BuckBrown24-Sep-07 12:33 
AnswerRe: What is resposible for Painting DataGridView Pin
Luc Pattyn24-Sep-07 14:15
sitebuilderLuc Pattyn24-Sep-07 14:15 
Hi Buck,

still drawing wafers?

all Controls get painted by the Paint event; when you make a Form visible, it will show
(hence paint) all the items in its Controls property (unless they are flagged invisible);
furthermore it will execute an OnPaint method if available, and it will invoke whatever
you may have added to the Paint event (with Paint+=gcnew PaintEventHandler(...)).

if you modify the DGV once it is painted, it will be repainted; hence you should not
just add items to it, that would become very slow unless you do it while invisible,
or you turn it off temporarily (I guess with SuspendLayout or maybe BeginUpdate).

How many Controls does your form have? Normal forms have no more than say 50 Controls;
exceeding this number will make things slow.

are you sure you need one big DGV? is it just for painting? if so, consider the
light-weight approach: have a single Panel, and write the code to draw your 12000 chips
in one (or two) big for loops inside a single Paint handler. That would take a fraction
of a second. If later on you need to process say mouse events per chip, let the same
Panel catch the mouse event and convert the Panel-relative coordinates to a chip position...

Hope this helps.




Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 6:05
BuckBrown25-Sep-07 6:05 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 7:19
BuckBrown25-Sep-07 7:19 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 9:26
BuckBrown25-Sep-07 9:26 
GeneralRe: What is resposible for Painting DataGridView [modified] Pin
Luc Pattyn26-Sep-07 7:31
sitebuilderLuc Pattyn26-Sep-07 7:31 
GeneralRe: What is resposible for Painting DataGridView Pin
Luc Pattyn26-Sep-07 10:04
sitebuilderLuc Pattyn26-Sep-07 10:04 
AnswerRe: What is resposible for Painting DataGridView Pin
led mike25-Sep-07 5:01
led mike25-Sep-07 5:01 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 6:10
BuckBrown25-Sep-07 6:10 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 7:19
BuckBrown25-Sep-07 7:19 
AnswerRe: What is resposible for Painting DataGridView Pin
KarstenK26-Sep-07 4:02
mveKarstenK26-Sep-07 4:02 
QuestionReading and writing to a named pipe C, C++, C# Pin
higgsbo23-Sep-07 7:41
higgsbo23-Sep-07 7:41 
AnswerRe: Reading and writing to a named pipe C, C++, C# Pin
led mike24-Sep-07 4:57
led mike24-Sep-07 4:57 
AnswerRe: Reading and writing to a named pipe C, C++, C# Pin
KarstenK26-Sep-07 4:06
mveKarstenK26-Sep-07 4:06 
QuestionSomething to reflect upon... Pin
Sandeep Datta22-Sep-07 20:31
Sandeep Datta22-Sep-07 20:31 
AnswerRe: Something to reflect upon... Pin
George L. Jackson23-Sep-07 4:50
George L. Jackson23-Sep-07 4:50 
GeneralRe: Something to reflect upon... Pin
Sandeep Datta23-Sep-07 19:50
Sandeep Datta23-Sep-07 19:50 
GeneralRe: Something to reflect upon... Pin
George L. Jackson24-Sep-07 0:35
George L. Jackson24-Sep-07 0:35 
GeneralRe: Something to reflect upon... Pin
Sandeep Datta24-Sep-07 1:22
Sandeep Datta24-Sep-07 1:22 

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.