Click here to Skip to main content
15,924,195 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please, everybody watching this thread, cause it's very urgent, and homework!!!! Pin
Martin#27-Jun-07 1:12
Martin#27-Jun-07 1:12 
GeneralRe: Please, everybody watching this thread, cause it's very urgent, and homework!!!! Pin
Tamimi - Code27-Jun-07 1:38
Tamimi - Code27-Jun-07 1:38 
QuestionTypes of containers [modified] Pin
srujana_m27-Jun-07 0:05
srujana_m27-Jun-07 0:05 
AnswerRe: Types of containers Pin
giddy_guitarist27-Jun-07 9:24
giddy_guitarist27-Jun-07 9:24 
Questionserialport and dangerous blue sreen? Pin
Mir_As27-Jun-07 0:02
Mir_As27-Jun-07 0:02 
Questioncrystal report Pin
B.A27-Jun-07 0:00
B.A27-Jun-07 0:00 
QuestionHow to create a DLL Library using C# called by the C/COBOL ? Pin
kuen65626-Jun-07 22:55
kuen65626-Jun-07 22:55 
QuestionDouble Buffered problem Pin
Richard W Allen26-Jun-07 22:29
Richard W Allen26-Jun-07 22:29 
I have posted this before, but now I have some more information. Many thanks to those who tried to help 1st time.
I have a windows form with a rapidly updating chart, and I want to use double buffering to prevent flicker. Without double buffering my app runs OK (apart from the flickering). With double buffering it starts up OK, but when I load the double buffered form the following occurs:-

The form loads then runs the paint method:-

private void Diagnostics_Paint(object sender, PaintEventArgs e)
{
Graphics ChartGraphics = e.Graphics;
ChartGraphics.DrawImage(DiagChart.Image, DiagChart.OutLine.Left, DiagChart.OutLine.Top);
ChartGraphics.Dispose();
if(Started)
StaticBtn.Enabled = false;
}

Then it runs:-

Application.Run(new SC226());

which causes an ArgumentException "Parameter is not valid". SC226 is my application, so shouldn't this line only run when the application is launched? If I comment out the first 3 lines of the paint method it doesn't run the "Application.Run" line and I don't get the exception(but my chart doesn't draw). Can anyone help please?


AnswerRe: Double Buffered problem Pin
Eduard Keilholz26-Jun-07 23:22
Eduard Keilholz26-Jun-07 23:22 
GeneralRe: Double Buffered problem Pin
Richard W Allen26-Jun-07 23:40
Richard W Allen26-Jun-07 23:40 
AnswerRe: Double Buffered problem Pin
leppie26-Jun-07 23:48
leppie26-Jun-07 23:48 
GeneralRe: Double Buffered problem Pin
Luc Pattyn26-Jun-07 23:52
sitebuilderLuc Pattyn26-Jun-07 23:52 
GeneralRe: Double Buffered problem Pin
Richard W Allen26-Jun-07 23:54
Richard W Allen26-Jun-07 23:54 
QuestionC# - SqlConnection Issue Pin
Vikas K.26-Jun-07 22:16
Vikas K.26-Jun-07 22:16 
AnswerRe: C# - SqlConnection Issue Pin
originSH26-Jun-07 22:20
originSH26-Jun-07 22:20 
GeneralRe: C# - SqlConnection Issue Pin
Vikas K.27-Jun-07 0:19
Vikas K.27-Jun-07 0:19 
QuestionControl conditions flows Pin
GermanDM26-Jun-07 21:40
GermanDM26-Jun-07 21:40 
AnswerRe: Control conditions flows Pin
Vikram A Punathambekar26-Jun-07 22:19
Vikram A Punathambekar26-Jun-07 22:19 
AnswerRe: Control conditions flows Pin
Dave Sexton26-Jun-07 22:30
Dave Sexton26-Jun-07 22:30 
QuestionHow to Fade in and out images? Pin
Khoramdin26-Jun-07 21:31
Khoramdin26-Jun-07 21:31 
AnswerRe: How to Fade in and out images? Pin
Eduard Keilholz26-Jun-07 22:31
Eduard Keilholz26-Jun-07 22:31 
AnswerRe: How to Fade in and out images? Pin
Eduard Keilholz26-Jun-07 22:33
Eduard Keilholz26-Jun-07 22:33 
AnswerRe: How to Fade in and out images? Pin
Martin#26-Jun-07 22:49
Martin#26-Jun-07 22:49 
AnswerRe: How to Fade in and out images? Pin
lmoelleb27-Jun-07 2:03
lmoelleb27-Jun-07 2:03 
Questionwhy my previous button first incremented after that decrementing Pin
srinivassam26-Jun-07 21:30
srinivassam26-Jun-07 21:30 

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.