Click here to Skip to main content
15,895,084 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Datagridview Pin
Paul Conrad27-Oct-07 11:28
professionalPaul Conrad27-Oct-07 11:28 
QuestionBindingList versus DataGridview.Rows.Add Pin
dreamz648016-Sep-07 22:45
dreamz648016-Sep-07 22:45 
AnswerRe: BindingList versus DataGridview.Rows.Add Pin
Urs Enzler17-Sep-07 2:02
Urs Enzler17-Sep-07 2:02 
AnswerRe: BindingList versus DataGridview.Rows.Add Pin
dreamz648017-Sep-07 19:40
dreamz648017-Sep-07 19:40 
QuestionSlow repaint of controls [modified] Pin
MrRobot16-Sep-07 21:36
MrRobot16-Sep-07 21:36 
AnswerRe: Slow repaint of controls Pin
Luc Pattyn16-Sep-07 22:51
sitebuilderLuc Pattyn16-Sep-07 22:51 
GeneralRe: Slow repaint of controls Pin
MrRobot17-Sep-07 0:50
MrRobot17-Sep-07 0:50 
GeneralRe: Slow repaint of controls Pin
Luc Pattyn17-Sep-07 1:19
sitebuilderLuc Pattyn17-Sep-07 1:19 
Hi,

your tgC control is very simple, making it DoubleBuffered won't help;
you might try to make its container (the Form) DoubleBuffered though (that is where
the complexity is, due to the high number of Controls).

Why do you need/want tgC Controls in the first place? if all they do is draw a Rectangle,
they are not worth the trouble. This is what I would do:
- eliminta tgC class;
- add a Panel to the Form;
- make that Panel double-buffered;
- give it an OnPaint that draws all required shapes;
- if other events on tgC were going to be used, implement them on the Panel instead;
e.g. write simple code to convert a Panel.MouseClick to a Click in the right rectangle...

Smile | :)

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: Slow repaint of controls Pin
MrRobot17-Sep-07 2:57
MrRobot17-Sep-07 2:57 
GeneralRe: Slow repaint of controls Pin
Luc Pattyn17-Sep-07 2:59
sitebuilderLuc Pattyn17-Sep-07 2:59 
GeneralRe: Slow repaint of controls Pin
MrRobot17-Sep-07 5:44
MrRobot17-Sep-07 5:44 
GeneralRe: Slow repaint of controls Pin
Dave Kreskowiak17-Sep-07 13:54
mveDave Kreskowiak17-Sep-07 13:54 
GeneralRe: Slow repaint of controls Pin
MrRobot17-Sep-07 21:45
MrRobot17-Sep-07 21:45 
AnswerRe: Slow repaint of controls Pin
MrRobot17-Sep-07 0:28
MrRobot17-Sep-07 0:28 
QuestionToolstrip control Work like toolbox in vs2005 Pin
VB 8.013-Sep-07 20:33
VB 8.013-Sep-07 20:33 
QuestionImage Background in a RichTextBox Pin
Stige13-Sep-07 11:52
Stige13-Sep-07 11:52 
AnswerRe: Image Background in a RichTextBox Pin
DigiOz Multimedia16-Sep-07 12:49
DigiOz Multimedia16-Sep-07 12:49 
QuestionWebBrowser Control. Urgent. Pin
Elizma13-Sep-07 6:18
Elizma13-Sep-07 6:18 
AnswerRe: WebBrowser Control. Urgent. Pin
Paul Conrad26-Sep-07 16:18
professionalPaul Conrad26-Sep-07 16:18 
QuestionRunTime How to Set A Object Type Pin
M.Sathiskumar13-Sep-07 0:49
M.Sathiskumar13-Sep-07 0:49 
AnswerRe: RunTime How to Set A Object Type Pin
Lutosław17-Sep-07 4:40
Lutosław17-Sep-07 4:40 
QuestionUser Control with container area? [modified] Pin
MrBean12-Sep-07 23:23
MrBean12-Sep-07 23:23 
AnswerRe: User Control with container area? Pin
Lutosław13-Sep-07 7:13
Lutosław13-Sep-07 7:13 
GeneralRe: User Control with container area? Pin
MrBean13-Sep-07 21:19
MrBean13-Sep-07 21:19 
AnswerRe: User Control with container area? Pin
Patrick Etc.19-Sep-07 16:54
Patrick Etc.19-Sep-07 16:54 

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.