M
Matteo Cima
Hi,
this is a repost, my previous question was incomplete.
I have some forms that return values, showing a list and then returning a
string when the user confirms, and to be sure that the form doesn't remain
in memory, i use this code: (the form is closed when i return the value)
i declare a public method that returns a string
and i call it from the client form in this way :
//this is in clientform
string mReturnValue = "";
using(frmThatReturnsValue myForm = new frmThatReturnsValue())
{ mReturnValue =myForm .getValue();}
myTextBox.Text = mReturnValue;
and this is somewhat a clean way.
I am aware that this isn't "correct" compactframework programming because it
implies to load and then dispose the form, but i need this behaviour.
Anyway,
in CE.NET 4.1 this works just fine, the client form with myTextBox returns
on screen when the frmThatReturnsValue is closed.
while in PPC the windows gui gets the focus, and there's no way to return to
my app, (except clicking again on its icon)
Is that behavior by design?
Any help appreciated,
Matteo Cima.
this is a repost, my previous question was incomplete.
I have some forms that return values, showing a list and then returning a
string when the user confirms, and to be sure that the form doesn't remain
in memory, i use this code: (the form is closed when i return the value)
i declare a public method that returns a string
and i call it from the client form in this way :
//this is in clientform
string mReturnValue = "";
using(frmThatReturnsValue myForm = new frmThatReturnsValue())
{ mReturnValue =myForm .getValue();}
myTextBox.Text = mReturnValue;
and this is somewhat a clean way.
I am aware that this isn't "correct" compactframework programming because it
implies to load and then dispose the form, but i need this behaviour.
Anyway,
in CE.NET 4.1 this works just fine, the client form with myTextBox returns
on screen when the frmThatReturnsValue is closed.
while in PPC the windows gui gets the focus, and there's no way to return to
my app, (except clicking again on its icon)
Is that behavior by design?
Any help appreciated,
Matteo Cima.