Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is the best choice of this day for NATIVE Windows programming ? Pin
Christian Graus21-Sep-06 12:24
protectorChristian Graus21-Sep-06 12:24 
AnswerRe: What is the best choice of this day for NATIVE Windows programming ? Pin
Nader Elshehabi21-Sep-06 19:26
Nader Elshehabi21-Sep-06 19:26 
QuestionP2P file sharing and messaging Pin
asamay21-Sep-06 10:22
asamay21-Sep-06 10:22 
AnswerRe: P2P file sharing and messaging Pin
Ri Qen-Sin21-Sep-06 10:35
Ri Qen-Sin21-Sep-06 10:35 
AnswerRe: P2P file sharing and messaging Pin
Nader Elshehabi21-Sep-06 19:50
Nader Elshehabi21-Sep-06 19:50 
GeneralRe: P2P file sharing and messaging Pin
asamay22-Sep-06 9:30
asamay22-Sep-06 9:30 
QuestionTyped DataSets Pin
eggsovereasy21-Sep-06 10:05
eggsovereasy21-Sep-06 10:05 
QuestionProblem: Form Controls ghost when form moves [modified] Pin
Alaric_21-Sep-06 9:02
professionalAlaric_21-Sep-06 9:02 
Hi. I'm building a custom shaped form and I'm having a problem with flickering whenever I move the form. The issue is that the form itself does not flicker, but the controls on the form still do. I use the following code to execute movement of the form(in my MouseMove event handler):
if(e.Button == MouseButtons.Left)
{
     if(!mouseOutOfBounds)
       {
          if(newMouseDrag)
            {
             mousePt = new Point(e.X, e.Y);
             newMouseDrag = false;
            }
          else
            {
             if(!blockProcessing)
               {
                this.Location = new Point(this.Location.X + e.X - mousePt.X,
                                          this.Location.Y + e.Y - mousePt.Y);
               }
                blockProcessing = !blockProcessing;
            }

       }
}
else
{
   newMouseDrag = true;
}


Whenever I disable the visibility of all of the controls on the form, everything works fine, and if I enable the visibility of one button, there isn't much degradation in performance. But, whenever I have all of them visible, the redraw of the controls ghosts, and the bitmap that I have displayed in a picturebox flickers as it rasterizes itself. Does anyone know of a way to fix this problem?






-- modified at 18:05 Thursday 21st September, 2006
AnswerRe: Problem: Form Controls ghost when form moves Pin
Nader Elshehabi21-Sep-06 19:46
Nader Elshehabi21-Sep-06 19:46 
GeneralRe: Problem: Form Controls ghost when form moves Pin
Alaric_22-Sep-06 5:42
professionalAlaric_22-Sep-06 5:42 
GeneralRe: Problem: Form Controls ghost when form moves Pin
Nader Elshehabi22-Sep-06 8:50
Nader Elshehabi22-Sep-06 8:50 
QuestionC# Objects Using XML File Pin
Cubzfan21-Sep-06 8:46
Cubzfan21-Sep-06 8:46 
AnswerRe: C# Objects Using XML File Pin
Le centriste21-Sep-06 9:06
Le centriste21-Sep-06 9:06 
QuestionHelp me in save values in app.config and retrieve it . Pin
hdv21221-Sep-06 8:32
hdv21221-Sep-06 8:32 
AnswerRe: Help me in save values in app.config and retrieve it . Pin
AndriyZZ21-Sep-06 9:33
AndriyZZ21-Sep-06 9:33 
GeneralRe: Help me in save values in app.config and retrieve it . Pin
hdv21221-Sep-06 11:47
hdv21221-Sep-06 11:47 
GeneralRe: Help me in save values in app.config and retrieve it . Pin
AndriyZZ21-Sep-06 12:02
AndriyZZ21-Sep-06 12:02 
QuestionSetting the CommandTimeout of a query in VS 05 Pin
Ami Bar21-Sep-06 8:25
Ami Bar21-Sep-06 8:25 
Questionhow to keep the menubar form scrolling in vs 2005 Pin
needtoknowC#21-Sep-06 7:21
needtoknowC#21-Sep-06 7:21 
QuestionHow I can get the text from x,y coordinates? Pin
Marco225021-Sep-06 7:08
Marco225021-Sep-06 7:08 
QuestionMultiSelect With ListBox Pin
ytubis21-Sep-06 6:08
ytubis21-Sep-06 6:08 
AnswerRe: MultiSelect With ListBox Pin
Ed.Poore21-Sep-06 6:13
Ed.Poore21-Sep-06 6:13 
GeneralRe: MultiSelect With ListBox Pin
ytubis21-Sep-06 6:22
ytubis21-Sep-06 6:22 
GeneralRe: MultiSelect With ListBox Pin
Ed.Poore21-Sep-06 6:36
Ed.Poore21-Sep-06 6:36 
AnswerRe: MultiSelect With ListBox Pin
Eric Dahlvang21-Sep-06 8:23
Eric Dahlvang21-Sep-06 8:23 

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.