Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing objects in resource files Pin
Rendili14-Oct-05 7:47
Rendili14-Oct-05 7:47 
GeneralRe: Accessing objects in resource files Pin
turbochimp14-Oct-05 7:57
turbochimp14-Oct-05 7:57 
GeneralRe: Accessing objects in resource files Pin
Rendili14-Oct-05 8:17
Rendili14-Oct-05 8:17 
QuestionTextBox. How to Validate for Number?? Pin
...---...13-Oct-05 6:46
...---...13-Oct-05 6:46 
AnswerRe: TextBox. How to Validate for Number?? Pin
Dan Neely13-Oct-05 6:52
Dan Neely13-Oct-05 6:52 
GeneralRe: TextBox. How to Validate for Number?? Pin
...---...13-Oct-05 8:03
...---...13-Oct-05 8:03 
GeneralRe: TextBox. How to Validate for Number?? Pin
Dan Neely13-Oct-05 9:27
Dan Neely13-Oct-05 9:27 
GeneralRe: TextBox. How to Validate for Number?? Pin
Anonymous13-Oct-05 13:02
Anonymous13-Oct-05 13:02 
Ok Here's what I did...program crashes on invalid input and I get endless Message boxes that won't close on 'OK'. Thanks...
This is driving me nuts....Confused | :confused:
///////////////////////////////
void DrawComplexNumber1(Graphics g)
{
Pen p = c_xy.GetNextPen();
p.DashStyle = DashStyle.Dot;
c_xy.SetOrigin(xIndent + graphRect.Width/2, yIndent + graphRect.Y/2);
try
{
cmplxValue1.Real = Convert.ToDouble(textComplex_1Real.Text);
}
catch
{
MessageBox.Show("Error!");
}
try
{
cmplxValue1.Imaginary = Convert.ToDouble(textComplex_1Imaginary.Text);
}
catch
{
MessageBox.Show("Error!");
}
g.DrawLine(p, 250, 250, (float)(250 + (xIndent * cmplxValue1.Real)), (float)(250 - (yIndent * cmplxValue1.Imaginary)));
//////////////////////////////////////////////

private void complex_1OK_Click_1(object sender, System.EventArgs e)
{
drawLine1 = !drawLine1;
Invalidate();
}
/////////////////////////////////////////Paint Handler

....
if(drawLine1)
DrawComplexNumber1(e.Graphics);
}

AnswerRe: TextBox. How to Validate for Number?? Pin
Anonymous13-Oct-05 16:21
Anonymous13-Oct-05 16:21 
AnswerRe: TextBox. How to Validate for Number?? Pin
nps_ltv13-Oct-05 17:22
nps_ltv13-Oct-05 17:22 
AnswerRe: TextBox. How to Validate for Number?? Pin
Luis Alonso Ramos13-Oct-05 17:29
Luis Alonso Ramos13-Oct-05 17:29 
AnswerRe: TextBox. How to Validate for Number?? Pin
albCode13-Oct-05 20:56
albCode13-Oct-05 20:56 
QuestionComboBox - Set first display item in dropdown list Pin
--Ian13-Oct-05 5:51
--Ian13-Oct-05 5:51 
AnswerRe: ComboBox - Set first display item in dropdown list Pin
miah alom13-Oct-05 7:37
miah alom13-Oct-05 7:37 
GeneralRe: ComboBox - Set first display item in dropdown list Pin
--Ian13-Oct-05 8:49
--Ian13-Oct-05 8:49 
AnswerRe: ComboBox - Set first display item in dropdown list Pin
--Ian14-Oct-05 10:47
--Ian14-Oct-05 10:47 
Questionprocess security question Pin
devmaximus13-Oct-05 5:00
devmaximus13-Oct-05 5:00 
AnswerRe: process security question Pin
Dave Kreskowiak13-Oct-05 6:47
mveDave Kreskowiak13-Oct-05 6:47 
GeneralRe: process security question Pin
devmaximus13-Oct-05 11:02
devmaximus13-Oct-05 11:02 
QuestionA4 size Richtextbox Pin
AB777113-Oct-05 4:22
AB777113-Oct-05 4:22 
QuestionTerminate Application after a given time of inactivity? Pin
Gulfraz Khan13-Oct-05 4:14
Gulfraz Khan13-Oct-05 4:14 
AnswerRe: Terminate Application after a given time of inactivity? Pin
Luis Alonso Ramos13-Oct-05 17:32
Luis Alonso Ramos13-Oct-05 17:32 
GeneralRe: Terminate Application after a given time of inactivity? Pin
Gulfraz Khan14-Oct-05 0:55
Gulfraz Khan14-Oct-05 0:55 
QuestionCatching application start/close events Pin
Trickster-SWE13-Oct-05 2:58
Trickster-SWE13-Oct-05 2:58 
AnswerRe: Catching application start/close events Pin
XRaheemX13-Oct-05 3:50
XRaheemX13-Oct-05 3:50 

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.