D
Dan M
Hi,
Upgraded a 1.0 project to 1.1. Had a form that I opened with ShowDialog.
ControlBox set to false at designtime and I set caption in the form load
(me.text="my title"). This worked fine in 1.0. However in 1.1 if I set the
me.text = "" (an empty string), the form would immediately close returning
a dialogresult = Cancel. It looks like you can't set the me.text
property at runtime to "" when you don't have a controlbox unless its in the
New sub for the form.
Not a big deal now that I have figured it out but hopefully someone might
read this and not pull their hair out for a couple hours over why their form
closes immediately.
Regards,
Dan
Upgraded a 1.0 project to 1.1. Had a form that I opened with ShowDialog.
ControlBox set to false at designtime and I set caption in the form load
(me.text="my title"). This worked fine in 1.0. However in 1.1 if I set the
me.text = "" (an empty string), the form would immediately close returning
a dialogresult = Cancel. It looks like you can't set the me.text
property at runtime to "" when you don't have a controlbox unless its in the
New sub for the form.
Not a big deal now that I have figured it out but hopefully someone might
read this and not pull their hair out for a couple hours over why their form
closes immediately.
Regards,
Dan