Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
AnswerRe: datagrid search Pin
| Muhammad Waqas Butt |8-Sep-05 3:47
professional| Muhammad Waqas Butt |8-Sep-05 3:47 
QuestionErase Line Drawn?? I give up... Pin
Anonymous7-Sep-05 16:14
Anonymous7-Sep-05 16:14 
AnswerRe: Erase Line Drawn?? I give up... Pin
Christian Graus7-Sep-05 16:26
protectorChristian Graus7-Sep-05 16:26 
GeneralRe: Erase Line Drawn?? I give up... Pin
Anonymous7-Sep-05 17:01
Anonymous7-Sep-05 17:01 
GeneralRe: Erase Line Drawn?? I give up... Pin
Christian Graus7-Sep-05 17:13
protectorChristian Graus7-Sep-05 17:13 
QuestionStuck Trying to erase lines drawn... Pin
Anonymous7-Sep-05 14:48
Anonymous7-Sep-05 14:48 
AnswerRe: Stuck Trying to erase lines drawn... Pin
Andy Brummer7-Sep-05 15:20
sitebuilderAndy Brummer7-Sep-05 15:20 
GeneralRe: Stuck Trying to erase lines drawn... Pin
Anonymous7-Sep-05 15:50
Anonymous7-Sep-05 15:50 
Here's the code.....thanks...
///////////////////////
private void complexA_OK_Click(object sender, System.EventArgs e)
{
Graphics g = this.CreateGraphics();
Pen cmplxAPen = new Pen(Color.Crimson);
//
try
{
Invalidate();
double valAReal;
double valAComplex;
valAReal = Convert.ToDouble(this.textComplexAReal.Text);
valAComplex = Convert.ToDouble(this.textComplexAComplex.Text);
DrawComplexNumber(g, valAReal, valAComplex);
}
catch
{
MessageBox.Show("Invalid Complex A Number", "Error!");
}
}

///////////////////////////////////////////////

private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{

DrawGraphRectF(e.Graphics);
DrawXYAxes(e.Graphics);
DrawGraphXandYTicks(e.Graphics);
}
////////////////////////////////////////////////
void DrawComplexNumber(Graphics g, double re_, double im_)
{
Pen cmplxPen = new Pen(Color.DarkGray, 4);
g.DrawLine(cmplxPen, (xIndent + graphRect.Width/2), (yIndent + graphRect.Height/2), (xIndent + graphRect.Width/2) + (float)(re_ * xIndent), (yIndent + graphRect.Height/2) - (float)(im_ * yIndent));
//Pen cmplxEraseLinePen = new Pen(Color.Snow, 4);
//g.DrawLine(cmplxEraseLinePen, (xIndent + graphRect.Width/2), (yIndent + graphRect.Height/2), (xIndent + graphRect.Width/2) + (float)(re_ * xIndent), (yIndent + graphRect.Height/2) - (float)(im_ * yIndent));

}
GeneralRe: Stuck Trying to erase lines drawn... Pin
Andy Brummer7-Sep-05 16:58
sitebuilderAndy Brummer7-Sep-05 16:58 
QuestionProblem with Database Pin
Expert Coming7-Sep-05 13:40
Expert Coming7-Sep-05 13:40 
AnswerRe: Problem with Database Pin
philip_cole7-Sep-05 13:53
philip_cole7-Sep-05 13:53 
GeneralRe: Problem with Database Pin
Expert Coming7-Sep-05 13:56
Expert Coming7-Sep-05 13:56 
QuestionGetting Time Changes Pin
monrobot137-Sep-05 12:15
monrobot137-Sep-05 12:15 
QuestionStrong name key file questions Pin
machocr7-Sep-05 11:34
machocr7-Sep-05 11:34 
AnswerRe: Strong name key file questions Pin
machocr7-Sep-05 12:29
machocr7-Sep-05 12:29 
QuestionCom+ Work as Web services Pin
webhay7-Sep-05 10:42
webhay7-Sep-05 10:42 
QuestionDrag & Drop to Windows Explorer Shell Pin
Judah Gabriel Himango7-Sep-05 9:49
sponsorJudah Gabriel Himango7-Sep-05 9:49 
AnswerRe: Drag & Drop to Windows Explorer Shell Pin
Judah Gabriel Himango7-Sep-05 11:35
sponsorJudah Gabriel Himango7-Sep-05 11:35 
QuestionInternal TCP traffic Pin
BeginnerC#7-Sep-05 9:37
BeginnerC#7-Sep-05 9:37 
AnswerRe: Internal TCP traffic Pin
Dario Solera7-Sep-05 22:08
Dario Solera7-Sep-05 22:08 
AnswerRe: Internal TCP traffic Pin
Dario Solera7-Sep-05 22:08
Dario Solera7-Sep-05 22:08 
GeneralRe: Internal TCP traffic Pin
BeginnerC#9-Sep-05 3:32
BeginnerC#9-Sep-05 3:32 
GeneralRe: Internal TCP traffic Pin
Dario Solera9-Sep-05 7:45
Dario Solera9-Sep-05 7:45 
QuestionAny One Using Verifinger SDK 4.2 for Thumb Project! Pin
majidbhutta7-Sep-05 8:10
majidbhutta7-Sep-05 8:10 
Questiondouble division Pin
Sasuko7-Sep-05 7:47
Sasuko7-Sep-05 7:47 

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.