Click here to Skip to main content
16,007,163 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dllnotfound Exception for Sqlite Dll Pin
Adnan Siddiqi24-Feb-05 9:28
Adnan Siddiqi24-Feb-05 9:28 
GeneralRe: Dllnotfound Exception for Sqlite Dll Pin
Joel Lucsy25-Feb-05 3:56
Joel Lucsy25-Feb-05 3:56 
GeneralAdding right aligned controls to MenuStrip in whidbey Pin
SathishVJ24-Feb-05 7:38
SathishVJ24-Feb-05 7:38 
GeneralRe: Adding right aligned controls to MenuStrip in whidbey Pin
Judah Gabriel Himango24-Feb-05 8:56
sponsorJudah Gabriel Himango24-Feb-05 8:56 
GeneralRe: Adding right aligned controls to MenuStrip in whidbey Pin
SathishVJ25-Feb-05 11:07
SathishVJ25-Feb-05 11:07 
GeneralPassword protected files - HELP! Pin
Anthony Mushrow24-Feb-05 6:09
professionalAnthony Mushrow24-Feb-05 6:09 
GeneralRe: Password protected files - HELP! Pin
Dave Kreskowiak24-Feb-05 8:14
mveDave Kreskowiak24-Feb-05 8:14 
GeneralHELP! override OnPain, OnLayout and DoubleBuffer Pin
TheSebaster24-Feb-05 5:47
TheSebaster24-Feb-05 5:47 
I am currently making a user control that contains a collection of my custom control witch overides OnPaint method. I use:

My custom control constructor inits those style:
SetStyle(System.Windows.Forms.ControlStyles.DoubleBuffer, true);
SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint, true);
SetStyle(System.Windows.Forms.ControlStyles.ResizeRedraw, true);
SetStyle(System.Windows.Forms.ControlStyles.UserPaint, true);
UpdateStyles();

Now, my user control constructor add a collection of my custom control
to its Controls Collection and also sets ControlStyles like my custom control does.

My user control overrides OnLayout to place the collection of custom control as a special way. I SuspendLayout at the Begining of OnLayout and ResumeLayout at the end. So my problem is that my user control OnPaint event is not called so DoubleBuffering is not working on user control.
Is it because I use double buffering in my custom control or is just
a desing problem? If someone could help me with that, I will apreciate a lot. And I am sorry for my english, if its'no clear just please tell me.


Sebastien
Generallinking schema programatically Pin
Member 110614424-Feb-05 5:15
Member 110614424-Feb-05 5:15 
GeneralRegular expression mayhem Pin
Esmo200024-Feb-05 4:18
Esmo200024-Feb-05 4:18 
GeneralRe: Regular expression mayhem Pin
Michael Dunn24-Feb-05 6:09
sitebuilderMichael Dunn24-Feb-05 6:09 
GeneralRe: Regular expression mayhem Pin
Esmo200024-Feb-05 7:21
Esmo200024-Feb-05 7:21 
GeneralRe: Regular expression mayhem Pin
S. Senthil Kumar24-Feb-05 8:43
S. Senthil Kumar24-Feb-05 8:43 
GeneralRe: Regular expression mayhem Pin
Esmo200024-Feb-05 9:25
Esmo200024-Feb-05 9:25 
GeneralSending Emails - The "SendUsing" configuration value is invalid. Pin
MrEyes24-Feb-05 2:51
MrEyes24-Feb-05 2:51 
GeneralRe: Sending Emails - The "SendUsing" configuration value is invalid. Pin
turbochimp24-Feb-05 12:06
turbochimp24-Feb-05 12:06 
Generalcannot pass a string through an object to an unmanaged VC++ dll Pin
grs_files24-Feb-05 2:29
grs_files24-Feb-05 2:29 
GeneralNeed Help - Game Menu programming. Pin
giggssux9224-Feb-05 1:48
giggssux9224-Feb-05 1:48 
GeneralRe: Need Help - Game Menu programming. Pin
exhaulted24-Feb-05 2:32
exhaulted24-Feb-05 2:32 
GeneralInformation about a streamed file embedded in a WebPage (WindowsMediaPlayer ActiveX) Pin
rwelte24-Feb-05 0:30
rwelte24-Feb-05 0:30 
GeneralSorting DataGrid Pin
Maqsood Ahmed24-Feb-05 0:21
Maqsood Ahmed24-Feb-05 0:21 
GeneralRe: Sorting DataGrid Pin
turbochimp24-Feb-05 12:07
turbochimp24-Feb-05 12:07 
GeneralRe: Sorting DataGrid Pin
Maqsood Ahmed24-Feb-05 20:20
Maqsood Ahmed24-Feb-05 20:20 
GeneralRe: Sorting DataGrid Pin
turbochimp25-Feb-05 3:02
turbochimp25-Feb-05 3:02 
GeneralRe: Sorting DataGrid Pin
Maqsood Ahmed26-Feb-05 3:54
Maqsood Ahmed26-Feb-05 3: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.