Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why do my graphics still flicker? Pin
Roman Rodov30-Mar-04 14:37
Roman Rodov30-Mar-04 14:37 
GeneralRe: Why do my graphics still flicker? Pin
adonisv30-Mar-04 14:40
adonisv30-Mar-04 14:40 
GeneralRe: Why do my graphics still flicker? Pin
Heath Stewart30-Mar-04 16:44
protectorHeath Stewart30-Mar-04 16:44 
GeneralRe: Why do my graphics still flicker? Pin
adonisv31-Mar-04 16:36
adonisv31-Mar-04 16:36 
AnswerRe: Why do my graphics still flicker? Pin
blackthunder00130-Mar-04 14:41
blackthunder00130-Mar-04 14:41 
GeneralRe: Why do my graphics still flicker? Pin
adonisv30-Mar-04 14:59
adonisv30-Mar-04 14:59 
AnswerRe: Why do my graphics still flicker? Pin
Anonymous30-Mar-04 20:11
Anonymous30-Mar-04 20:11 
GeneralI call Invalidate() Pin
adonisv31-Mar-04 16:43
adonisv31-Mar-04 16:43 
The DrawGraph() function is called from OnPaint()

Invalidate is called every time the draw graph button is clicked or a track bar is moved changing one of the values in the graph.

protected override void OnPaint(PaintEventArgs e)
{
if(this.m_bmImageOffScreen==null)
this.m_bmImageOffScreen=new Bitmap(this.ClientSize.Width,this.ClientSize.Height);

this.m_gOffScreen =Graphics.FromImage(this.m_bmImageOffScreen);
//this.m_gBuffer.Clear(this.BackColor);

if(this.m_bgraphDrawn)
this.DrawGraph();
else
{
this.textBox1.Text = "0";
this.textBox2.Text = "0";
this.textBox3.Text = "0";
this.textBox4.Text = "0";
this.textBox5.Text = "0";

this.m_bgraphDrawn = true;
this.DrawGraph();
}
this.m_gOffScreen.Dispose();
e.Graphics.DrawImageUnscaled(this.m_bmImageOffScreen,30,50);
}

private void trackBar5_Scroll(object sender, System.EventArgs e)
{
// Display the trackbar value in the text box.
textBox5.Text = "" + trackBar5.Value;
value5 += trackBar1.Value;
//this.redrawChart();
//this.DrawGraph();
Invalidate();
}
Questionhandling multiple connections? Pin
Anonymous30-Mar-04 12:21
Anonymous30-Mar-04 12:21 
AnswerRe: handling multiple connections? Pin
Heath Stewart30-Mar-04 12:54
protectorHeath Stewart30-Mar-04 12:54 
GeneralIDisposable Pin
blackthunder00130-Mar-04 10:01
blackthunder00130-Mar-04 10:01 
GeneralRe: IDisposable Pin
Heath Stewart30-Mar-04 10:17
protectorHeath Stewart30-Mar-04 10:17 
GeneralRe: IDisposable Pin
blackthunder00130-Mar-04 14:32
blackthunder00130-Mar-04 14:32 
GeneralRe: IDisposable Pin
Heath Stewart30-Mar-04 16:24
protectorHeath Stewart30-Mar-04 16:24 
QuestionHow do i import/use these dll's ? Pin
mihaimarinescu30-Mar-04 8:53
mihaimarinescu30-Mar-04 8:53 
AnswerRe: How do i import/use these dll's ? Pin
Heath Stewart30-Mar-04 9:38
protectorHeath Stewart30-Mar-04 9:38 
AnswerRe: How do i import/use these dll's ? Pin
Dave Kreskowiak30-Mar-04 9:39
mveDave Kreskowiak30-Mar-04 9:39 
GeneralCasting again - from parent to child Pin
Grep30-Mar-04 8:31
Grep30-Mar-04 8:31 
GeneralRe: Casting again - from parent to child Pin
Heath Stewart30-Mar-04 9:43
protectorHeath Stewart30-Mar-04 9:43 
GeneralRe: Casting again - from parent to child Pin
Grep30-Mar-04 9:59
Grep30-Mar-04 9:59 
GeneralRe: Casting again - from parent to child Pin
Heath Stewart30-Mar-04 10:08
protectorHeath Stewart30-Mar-04 10:08 
QuestionIs this a pointer operation ? Pin
Andres Coder30-Mar-04 8:28
Andres Coder30-Mar-04 8:28 
AnswerRe: Is this a pointer operation ? Pin
leppie30-Mar-04 8:50
leppie30-Mar-04 8:50 
AnswerRe: Is this a pointer operation ? Pin
Andy Wieberneit30-Mar-04 11:09
Andy Wieberneit30-Mar-04 11:09 
AnswerRe: Is this a pointer operation ? Pin
Bryan White31-Mar-04 9:01
Bryan White31-Mar-04 9:01 

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.