Thanks Kulrom,
But now, how do I get it to distinguish between text and double. It needs to change the forecolor to red if text is entered, and change forecolor to black if the input is correct (double number).
How do I create this for my input text boxes? Selecting the Class Name and Method Name is as far as I got.
If the input is not valid, I must set the foreground color of the text box to red. Otherwise, I have to set the foreground color to black.
Thanks,
Message Box - RESOLVED
dHow do I add an exclamation point and "ok", to my message box through this code:
MessageBox.Show("Invalid Input", ControlChars.NewLine. & ex.Message)
Thanks,
Is this where the problem is?:
pdblVolumeTotal = Volume(txtLength.Text, txtWidth.Text, txtHeight.Text)
lblVolume.Text = System.Convert.ToString (pdblVolumeTotal)
JB, Badger,
The code works, but now when I hit the 'Calculate' button, the result goes into the 'Volume' label box, instead of the 'lblVolumeTotal' box, where it should go...
btnCalculate Code. HELP!!!!!!!!!!!!!!!!!!!!!!!!!RESOLVED
I'm working on a project in class. I've done most everything else, but now i'm stuck on coding the btnCalculate_Click. I've got to now:
a) Convert (Length) field value from text to double (numeric)
b) Call a function I created named...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.