473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Showdialog from 1.0 to 1.1 framework - form.text = "" and controlbox = false

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
Nov 20 '05 #1
3 1600
* "Dan M" <no**********@sorrynospamwanted.com> scripsit:
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.


Does this even occur in a blank VS.NET 2003 project?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Dan

Do you mean a new project in 2003 rather than an upgraded one?

If you so then yes - did a majority of my debugging using a new project with
2 forms (a startup and the modal one).

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
* "Dan M" <no**********@sorrynospamwanted.com> scripsit:
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.


Does this even occur in a blank VS.NET 2003 project?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
* "Dan" <no**********@sorrynospamwanted.com> scripsit:
Do you mean a new project in 2003 rather than an upgraded one?
Yes.
If you so then yes - did a majority of my debugging using a new project with
2 forms (a startup and the modal one).


OK. Thank you for this information. Currently I don't have VS.NET 2003
here, so I cannot check it :-(.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mindful_Spirit | last post by:
I'm trying to set up a basic email feed back form like this, and was wondering about some basic configuration settings. I have used code from this website. I have it working just fine. I'm...
3
by: Pavils Jurjans | last post by:
Hello, I have bumped upon this problem: I do some client-side form processing with JavaScript, and for this I loop over all the forms in the document. In order to identify them, I read their...
0
by: Ron James | last post by:
I have a Dialog type form that starts a worker thread, allows the thread to update its progess and provides a Cancel button. Following advice from Chad Meyers in a recent posting, the worker...
2
by: gabon | last post by:
I'm creating a select entirely through JavaScript and very strangely IE doesn't show the text in the option elements. Here part of the code: this.form_country=document.createElement("select");...
7
by: Miro | last post by:
I can use the property of the Form to remove the "x" from the top of the form. Is there a way in VB to leave the X there but program something so you cannot close the form? Or like an ONCLOSE...
0
by: bolinc | last post by:
Can someone tell me why this isn't working? <Script language="JavaScript"><!--// var bJavaEnabled = Boolean(clientInformation.javaEnabled()); if (bJavaEnabled){ document.write('<form...
5
by: celoftis | last post by:
Using VS2005 ASP.NET 2.0, VB code behind: I have a windows forms based application that I need to port to the web. One of the major components of my windows forms based application is a TreeView...
5
by: Miro | last post by:
My form suddenly wouldnt compile. It had an error - main form must be specified. So i went to my Solution and went to properties. In the Application Tab I reset my opening form, but my "Enable...
2
by: semutmerah | last post by:
hi.. my english maybe wrong.. but hope somebody can understand me :) I did created 3 forms. "MainForm" , "CalForm" , "WaitForm". On "MainForm", I did put a command button called "Run". ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.