Click here to Skip to main content
15,884,838 members
Home / Discussions / C#
   

C#

 
AnswerSorry, forgot to add the Function-> HERE Pin
...---...10-Sep-05 8:04
...---...10-Sep-05 8:04 
AnswerRe: Need to pass a Pen into Form_1Paint Pin
Mohamad Al Husseiny10-Sep-05 9:41
Mohamad Al Husseiny10-Sep-05 9:41 
GeneralRe: Need to pass a Pen into Form_1Paint Pin
Anonymous10-Sep-05 9:56
Anonymous10-Sep-05 9:56 
Generalslight corection Pin
...---...10-Sep-05 9:59
...---...10-Sep-05 9:59 
GeneralRe: Need to pass a Pen into Form_1Paint Pin
Mohamad Al Husseiny10-Sep-05 10:21
Mohamad Al Husseiny10-Sep-05 10:21 
GeneralThanks...method in button or paint? Pin
Anonymous10-Sep-05 11:15
Anonymous10-Sep-05 11:15 
GeneralRe: Thanks...method in button or paint? Pin
Mohamad Al Husseiny10-Sep-05 11:25
Mohamad Al Husseiny10-Sep-05 11:25 
GeneralRe: Thanks...method in button or paint? Pin
Mohamad Al Husseiny10-Sep-05 11:44
Mohamad Al Husseiny10-Sep-05 11:44 
Anonymous wrote:
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
DrawGraphRectF(e.Graphics);
DrawXYAxes(e.Graphics);
DrawGraphXandYTicks(e.Graphics);
if(bShowValue)
{
DrawComplexNumber(this.CreateGraphics(), activePen, re_, im_) ;
}
}

did you mean re_ and im_ you pass here of course it will not see them if you want variable to be visible in more function declare them at the higher level in your case declare them in form level or declare another two variable in paint event and set thier values and then pass them to function
in general do not declare variable in scope higher than its need
seconed thing give your variables more meaning names




MCAD

-- modified at 19:15 Saturday 10th September, 2005
QuestionCasting to a nullable type Pin
Alvaro Mendez10-Sep-05 8:01
Alvaro Mendez10-Sep-05 8:01 
AnswerRe: Casting to a nullable type Pin
Daniel Grunwald10-Sep-05 8:12
Daniel Grunwald10-Sep-05 8:12 
GeneralRe: Casting to a nullable type Pin
Alvaro Mendez10-Sep-05 10:02
Alvaro Mendez10-Sep-05 10:02 
GeneralRe: Casting to a nullable type Pin
Daniel Grunwald10-Sep-05 10:04
Daniel Grunwald10-Sep-05 10:04 
QuestionOCR with C#? Pin
Seraphin10-Sep-05 7:18
Seraphin10-Sep-05 7:18 
QuestionCreating a Folder Pin
Anonymous10-Sep-05 5:55
Anonymous10-Sep-05 5:55 
AnswerRe: Creating a Folder Pin
Andy Brummer10-Sep-05 6:21
sitebuilderAndy Brummer10-Sep-05 6:21 
QuestionHow to make connection from C# to MySql Pin
Ming Luo10-Sep-05 1:12
Ming Luo10-Sep-05 1:12 
AnswerRe: How to make connection from C# to MySql Pin
tekken2210-Sep-05 4:48
tekken2210-Sep-05 4:48 
GeneralRe: How to make connection from C# to MySql Pin
Ming Luo10-Sep-05 9:20
Ming Luo10-Sep-05 9:20 
GeneralRe: How to make connection from C# to MySql Pin
tekken2210-Sep-05 13:25
tekken2210-Sep-05 13:25 
QuestionVery URGUENT- Hi I want to "Put Proxy-Connection: Keep Alive" in the Header of HttpWebRequest Pin
Tariq Rahim10-Sep-05 0:15
Tariq Rahim10-Sep-05 0:15 
AnswerRe: Very URGUENT- Hi I want to "Put Proxy-Connection: Keep Alive" in the Header of HttpWebRequest Pin
Daniel Turini10-Sep-05 4:32
Daniel Turini10-Sep-05 4:32 
QuestionDynamic DataReaders Pin
Expert Coming9-Sep-05 20:22
Expert Coming9-Sep-05 20:22 
AnswerRe: Dynamic DataReaders Pin
Guffa9-Sep-05 21:36
Guffa9-Sep-05 21:36 
Questionhow to disable imagebutton in C# Pin
mohd rafi9-Sep-05 20:06
mohd rafi9-Sep-05 20:06 
AnswerRe: how to disable imagebutton in C# Pin
Guffa9-Sep-05 21:37
Guffa9-Sep-05 21:37 

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.