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

Managed C++/CLI

 
AnswerRe: problem with switch in C++/CLI Pin
Luc Pattyn25-May-11 1:36
sitebuilderLuc Pattyn25-May-11 1:36 
AnswerRe: problem with switch in C++/CLI Pin
Luc Pattyn26-May-11 1:47
sitebuilderLuc Pattyn26-May-11 1:47 
QuestionScrollbar in c++/cli winform Pin
Lighter Joul23-May-11 3:59
Lighter Joul23-May-11 3:59 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn23-May-11 4:15
sitebuilderLuc Pattyn23-May-11 4:15 
GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul23-May-11 4:37
Lighter Joul23-May-11 4:37 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn23-May-11 4:38
sitebuilderLuc Pattyn23-May-11 4:38 
GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul23-May-11 5:00
Lighter Joul23-May-11 5:00 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn23-May-11 5:30
sitebuilderLuc Pattyn23-May-11 5:30 
There are two ways I know of:

1.
you derive your own DoubleBufferedPanel from the normal Panel, then in its constructor you can set the double-buffered property (as it is protected). Once you build a project with such DoubleBufferedPanel class present (but still unused), Visual Designer should have it available and now you can replace the Panel by a DoubleBufferedPanel.

2.
you can change the properties of a regular Panel at run-time, something akin to:
panel.SetStyle(System.Windows.Forms.ControlStyles.DoubleBuffer,true);
panel.SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint,true);
panel.SetStyle(System.Windows.Forms.ControlStyles.UserPaint,true);
oanel.UpdateStyles();

This also works on pre-2.0 .NET versions where Control.DoubleBuffered didn't exist.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul24-May-11 3:33
Lighter Joul24-May-11 3:33 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn24-May-11 9:07
sitebuilderLuc Pattyn24-May-11 9:07 
GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul24-May-11 16:55
Lighter Joul24-May-11 16:55 
QuestionStatic and Global Variables? Pin
VonHagNDaz19-May-11 3:08
VonHagNDaz19-May-11 3:08 
AnswerRe: Static and Global Variables? Pin
Mark Salsbery19-May-11 8:28
Mark Salsbery19-May-11 8:28 
QuestionDateTime->Parse Pin
VonHagNDaz16-May-11 4:34
VonHagNDaz16-May-11 4:34 
AnswerRe: DateTime->Parse [modified] Pin
Mark Salsbery16-May-11 7:26
Mark Salsbery16-May-11 7:26 
GeneralRe: DateTime->Parse Pin
VonHagNDaz16-May-11 10:56
VonHagNDaz16-May-11 10:56 
GeneralRe: DateTime->Parse Pin
Mark Salsbery16-May-11 12:57
Mark Salsbery16-May-11 12:57 
GeneralRe: DateTime->Parse Pin
VonHagNDaz17-May-11 1:57
VonHagNDaz17-May-11 1:57 
Question[C++/CLI]problem with unmanaged C library and callback functions Pin
re dei giovani16-May-11 3:39
re dei giovani16-May-11 3:39 
AnswerRe: [C++/CLI]problem with unmanaged C library and callback functions Pin
John Schroedl16-May-11 5:22
professionalJohn Schroedl16-May-11 5:22 
GeneralRe: [C++/CLI]problem with unmanaged C library and callback functions Pin
re dei giovani17-May-11 3:27
re dei giovani17-May-11 3:27 
GeneralRe: [C++/CLI]problem with unmanaged C library and callback functions Pin
re dei giovani17-May-11 3:55
re dei giovani17-May-11 3:55 
AnswerRe: [C++/CLI]problem with unmanaged C library and callback functions Pin
Luc Pattyn17-May-11 4:22
sitebuilderLuc Pattyn17-May-11 4:22 
GeneralRe: [C++/CLI]problem with unmanaged C library and callback functions Pin
re dei giovani18-May-11 2:15
re dei giovani18-May-11 2:15 
AnswerRe: [C++/CLI]problem with unmanaged C library and callback functions Pin
Luc Pattyn18-May-11 2:46
sitebuilderLuc Pattyn18-May-11 2:46 

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.