asimov500
Programmer
- Mar 14, 2008
- 21
Hi there,
I am programming Visual C++/cli 2008.
I can make functions with no problem and I can call them from Form1.h without a problem.
The problem comes when I want to change a textBox or Label control from a function.
I realise it won't work because the textBox is out of scope.
How do I change a textBox from within a function. eg how do I make it in scope. Can I call some kind of pointer from within the function? Or is there an easier way?
I use the Form Designer to make the textBox's and it puts them in Form1.h.
Asimov
I am programming Visual C++/cli 2008.
I can make functions with no problem and I can call them from Form1.h without a problem.
The problem comes when I want to change a textBox or Label control from a function.
I realise it won't work because the textBox is out of scope.
How do I change a textBox from within a function. eg how do I make it in scope. Can I call some kind of pointer from within the function? Or is there an easier way?
I use the Form Designer to make the textBox's and it puts them in Form1.h.
Asimov