Click here to Skip to main content
15,921,113 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to the Cursor Location using C# 2.0 *** Urgent Pin
Thomas Stockwell18-Mar-06 13:41
professionalThomas Stockwell18-Mar-06 13:41 
QuestionNewbie: return const object? Pin
Dominik Reichl18-Mar-06 8:00
Dominik Reichl18-Mar-06 8:00 
AnswerRe: Newbie: return const object? Pin
CWIZO18-Mar-06 8:25
CWIZO18-Mar-06 8:25 
AnswerRe: Newbie: return const object? Pin
Richard Andrew x6418-Mar-06 12:34
professionalRichard Andrew x6418-Mar-06 12:34 
AnswerRe: Newbie: return const object? Pin
S. Senthil Kumar18-Mar-06 20:05
S. Senthil Kumar18-Mar-06 20:05 
QuestionIs there any way ... ? Pin
mostafa_h18-Mar-06 7:54
mostafa_h18-Mar-06 7:54 
AnswerRe: Is there any way ... ? Pin
Ed.Poore18-Mar-06 12:51
Ed.Poore18-Mar-06 12:51 
QuestionThe mysterious Desktop redraw Pin
Pascal Ganaye18-Mar-06 7:46
Pascal Ganaye18-Mar-06 7:46 
I noticed that when I run some Dotnet programs the icons in the background (XP desktop) flicker regularly.

I tried to find out what is happening and I managed to reproduce the problem with five lines of codes.

I hope someone will be kind enough to test that on their machine and tell me if they reproduce it or not.

You just need to
1 - create a new Windows Forms application.
2 - add a numericupdown control in the middle of the form
3 - set the numericupdown1 maximum to 1000
4 - Add the paint event for the form :
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
   for (int i =1 ;i< numericUpDown1.Value;i++) {
      e.Graphics.DrawLine(Pens.Red, 10 + i, 10, 10 + i, 10 + i);
   }
}

5 - Add the value changed event on the NumericUpDown1
private void numericUpDown1_ValueChanged(object sender, System.EventArgs e)
{
    this.Invalidate();
}

Then when you click on the NumericDown control and reach 150 (on my machine) the icons on the background are starting to refresh...
Do you reproduce that ?
GeneralRe: The mysterious Desktop redraw Pin
Guffa18-Mar-06 8:34
Guffa18-Mar-06 8:34 
AnswerRe: The mysterious Desktop redraw Pin
Robert Rohde18-Mar-06 9:04
Robert Rohde18-Mar-06 9:04 
GeneralRe: The mysterious Desktop redraw Pin
Pascal Ganaye20-Mar-06 7:29
Pascal Ganaye20-Mar-06 7:29 
QuestionWorking with Outlook Pin
Yevgeny Efter18-Mar-06 7:10
Yevgeny Efter18-Mar-06 7:10 
AnswerRe: Working with Outlook Pin
Pascal Ganaye18-Mar-06 7:30
Pascal Ganaye18-Mar-06 7:30 
GeneralRe: Working with Outlook Pin
Yevgeny Efter18-Mar-06 17:49
Yevgeny Efter18-Mar-06 17:49 
QuestionRAS Connection Pin
plz.ze18-Mar-06 5:42
plz.ze18-Mar-06 5:42 
QuestionSorry all Pin
CoolASL18-Mar-06 5:40
CoolASL18-Mar-06 5:40 
GeneralRe: Sorry all Pin
Guffa18-Mar-06 8:28
Guffa18-Mar-06 8:28 
GeneralRe: Sorry all Pin
CoolASL19-Mar-06 0:29
CoolASL19-Mar-06 0:29 
QuestionCopy/paste of generic collection Pin
[Gone]18-Mar-06 4:54
[Gone]18-Mar-06 4:54 
AnswerRe: Copy/paste of generic collection Pin
leppie18-Mar-06 7:11
leppie18-Mar-06 7:11 
AnswerRe: Copy/paste of generic collection Pin
[Gone]18-Mar-06 7:30
[Gone]18-Mar-06 7:30 
GeneralRe: Copy/paste of generic collection Pin
leppie18-Mar-06 7:43
leppie18-Mar-06 7:43 
GeneralRe: Copy/paste of generic collection Pin
[Gone]18-Mar-06 8:34
[Gone]18-Mar-06 8:34 
QuestionMp3 streaming Pin
dennizsoftware.se18-Mar-06 4:51
dennizsoftware.se18-Mar-06 4:51 
AnswerRe: Mp3 streaming Pin
CoolASL18-Mar-06 6:12
CoolASL18-Mar-06 6:12 

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.