It will not convert the value in the text box. Error every time that it's
"not in the correct format." The value shown on the form, however, is
correct: 8.
There are similar problems: no bound control will allow me to address any
values eventhough they display properly on the form. It's as though when I
try to extract the value, there is none/null in the control. Maybe the
records are not being read yet, but they are present and at position 0.
I think I may need to recreate the form. Cleaning code from bad form
sometimes needs that, but I'd like to know why it's failing.
InitializeComponents() fires and so does my InitData() where I fill dataSets,
etc. That's all that's in the form's frmDisplay() method. It's all IDE
created, too. Never had so much trouble. Other forms in the program work
fine. I *must* be missing something obvous.
Thanks again for your reply,
E
James Curran said:
OK, Let's try something different.
Replace the line
this.memoEdit1.Location = new Point(x,500);
with
MessageBox.Show('['+textBox1.Text+']', txtX.ToString());
And tell us exactly what you in the body and in the caption of the
MessageBox
--
Truth,
James Curran
Home:
www.noveltheory.com Work:
www.njtheater.com
Blog:
www.honestillusion.com Day Job:
www.partsearch.com
(note new day job!)
Esteban404 said:
I see my communication problem. ;-) textBox1 is the text box (bound to the
datasource from SQL server), txtX is declared int for the purpose of this
test. In any case, converting the value from the bound textBox to int is not
accepted by the new Point() method. I can define a brand new variable, but it
hasn't mattered. I think it'll have to be a switch case process if I can't
get the bound data to work.
Thanks for the reply.
E.