Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: Anyway to be notified of time changes Pin
monrobot1311-Sep-05 7:28
monrobot1311-Sep-05 7:28 
AnswerRe: Anyway to be notified of time changes Pin
Matt Gerrans10-Sep-05 20:03
Matt Gerrans10-Sep-05 20:03 
QuestionWhich treenode called the contextmenustrip? Pin
MrR_10-Sep-05 12:48
MrR_10-Sep-05 12:48 
Answer[Message Deleted] Pin
Mohamad Al Husseiny10-Sep-05 13:44
Mohamad Al Husseiny10-Sep-05 13:44 
AnswerRe: Which treenode called the contextmenustrip? Pin
Mohamad Al Husseiny10-Sep-05 13:57
Mohamad Al Husseiny10-Sep-05 13:57 
GeneralRe: Which treenode called the contextmenustrip? Pin
MrR_10-Sep-05 17:38
MrR_10-Sep-05 17:38 
AnswerRe: Which treenode called the contextmenustrip? Pin
Mohamad Al Husseiny11-Sep-05 7:35
Mohamad Al Husseiny11-Sep-05 7:35 
QuestionNeed to pass a Pen into Form_1Paint Pin
Anonymous10-Sep-05 8:02
Anonymous10-Sep-05 8:02 
Meny people have told me that ALL drawing should be done in the Paint handler.
I need to pass the Pen object from my function into the Paint handler but I
can't seem to figure out how to get it to accept the 2nd arg(cmplxPen).
Please advise -- thanks...

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(),this./*"WHAT GOES HERE?"*/, mValReal, mValComplex);
}


//
private void complexA_OK_Click(object sender, System.EventArgs e)
{
Graphics g = this.CreateGraphics();
Pen cmplxPen = new Pen(Color.Coral, 4);
//
try
{
bShowValue = true;
mValReal = Convert.ToDouble(this.textComplexAReal.Text);
mValComplex = Convert.ToDouble(this.textComplexAComplex.Text);
//DrawComplexNumber(g,cmplxPen, mValReal, mValComplex);
}
catch
{
MessageBox.Show("Invalid Complex A Number", "Error!");
}
}
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 
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 

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.