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

C#

 
GeneralRe: Design Time Events? Pin
cnich236-Mar-06 5:03
cnich236-Mar-06 5:03 
GeneralRe: Design Time Events? Pin
Thomas Stockwell7-Mar-06 13:26
professionalThomas Stockwell7-Mar-06 13:26 
AnswerRe: Design Time Events? Pin
Thomas Stockwell22-Mar-06 12:21
professionalThomas Stockwell22-Mar-06 12:21 
QuestionHow to slide a panel without flickering Pin
SJ_Phoenix4-Mar-06 7:48
SJ_Phoenix4-Mar-06 7:48 
AnswerRe: How to slide a panel without flickering Pin
AFSEKI4-Mar-06 9:36
AFSEKI4-Mar-06 9:36 
GeneralRe: How to slide a panel without flickering Pin
SJ_Phoenix4-Mar-06 10:09
SJ_Phoenix4-Mar-06 10:09 
GeneralRe: How to slide a panel without flickering Pin
Thomas Stockwell4-Mar-06 17:25
professionalThomas Stockwell4-Mar-06 17:25 
AnswerRe: How to slide a panel without flickering Pin
AFSEKI5-Mar-06 4:44
AFSEKI5-Mar-06 4:44 
Hi, I don't know how it did not worked because I'm also a visual component developer and have developed custom panels also which you can move by mouse, expand and collapse vertically and horizontally (with or without animation) and everything works fine. Override WndProc event of your panel where you can find an example in MSDN library under WndProc. Handle the WM_PAINT event in a switch statement which is a value of 0x000F. To prevent repaint of your panel on every pixel move, checkout the location change and make it repaint itself forexample if the change is 2 or 3 pixels...

[System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name="FullTrust")]
protected override void WndProc(ref Message m)
{
// Listen for operating system messages.
switch (m.Msg)
{
// The WM_PAINT message occurs when the application
// becomes the active application or becomes inactive.
case 0x000F: // WM_PAINT

// What you should check...
// if new location of your panel is NOT different enough
// to repaint:
// Msg.Result = IntPtr.Zero; // prevents the repaint of your panel
// else:
// do nothing

break;
}
base.WndProc(ref m);
}

But my first reply should have helped you, if this does not help either, send me your code. I can have a look at it and may see if you do something wrong by mistake.

GeneralRe: How to slide a panel without flickering Pin
AFSEKI5-Mar-06 4:47
AFSEKI5-Mar-06 4:47 
GeneralRe: How to slide a panel without flickering Pin
SJ_Phoenix5-Mar-06 10:36
SJ_Phoenix5-Mar-06 10:36 
QuestionClient-Activated Object Pin
Marcin-Dz4-Mar-06 5:37
Marcin-Dz4-Mar-06 5:37 
Questionhow to turn off system error when i add daplicated ID unique? Pin
superdragon3-Mar-06 23:54
superdragon3-Mar-06 23:54 
AnswerRe: how to turn off system error when i add daplicated ID unique? Pin
Thomas Stockwell4-Mar-06 17:29
professionalThomas Stockwell4-Mar-06 17:29 
QuestionHow to pass the parameters for a dll functiion that is imported in dotnet environment. Pin
varmag3-Mar-06 22:31
varmag3-Mar-06 22:31 
AnswerRe: How to pass the parameters for a dll functiion that is imported in dotnet environment. Pin
AFSEKI5-Mar-06 4:52
AFSEKI5-Mar-06 4:52 
QuestionProcess id=0x748 (1864), Thread id = ... error! Pin
eyej3-Mar-06 14:58
eyej3-Mar-06 14:58 
GeneralRe: Process id=0x748 (1864), Thread id = ... error! Pin
Guffa3-Mar-06 21:39
Guffa3-Mar-06 21:39 
AnswerRe: Process id=0x748 (1864), Thread id = ... error! Pin
mav.northwind3-Mar-06 22:16
mav.northwind3-Mar-06 22:16 
GeneralRe: Process id=0x748 (1864), Thread id = ... error! Pin
eyej4-Mar-06 3:58
eyej4-Mar-06 3:58 
GeneralRe: Process id=0x748 (1864), Thread id = ... error! Pin
mav.northwind4-Mar-06 4:57
mav.northwind4-Mar-06 4:57 
AnswerRe: Process id=0x748 (1864), Thread id = ... error! Pin
leppie4-Mar-06 4:59
leppie4-Mar-06 4:59 
QuestionWhen main thread working the Whole Form Freezes Pin
kourvoisier3-Mar-06 12:20
kourvoisier3-Mar-06 12:20 
AnswerRe: When main thread working the Whole Form Freezes Pin
Sean893-Mar-06 13:16
Sean893-Mar-06 13:16 
AnswerRe: When main thread working the Whole Form Freezes Pin
Office Lineman3-Mar-06 13:36
Office Lineman3-Mar-06 13:36 
GeneralRe: When main thread working the Whole Form Freezes Pin
Sean893-Mar-06 14:09
Sean893-Mar-06 14:09 

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.