473,563 Members | 2,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bug ? Files are automatically marked as modified in the IDE with some Windows Forms

Using : VS 2005, .NET 2.0, Windows Form, Win 2k

I have a strange problem in VS : When I open some forms all the files
(resx and cs) of this form are immediately marked as modified (an *
following the file name in the tab of the IDE). So if I open one these form
and immediately close it, VS ask me if I want to save the changes.and that's
quite annoying because in some case I'm not sure if I modified the file or
if it's VS that did it.

After a few research : it happens only with some forms (always the same
forms) - it happens only when the form designer is opened (not when opening
a code file) and in the first second of opening - the Form.Designer.c s files
show that ALL the content of the InitializeCompo nent() method is rewritten
(a yellow line in the left margin show that).

Does anybody know a solution to that problem, what happens ? Is this a
known bug ?

Thanks !

Steph.
May 16 '06 #1
3 1352
TheSteph wrote:
Using : VS 2005, .NET 2.0, Windows Form, Win 2k

I have a strange problem in VS : When I open some forms all the
files (resx and cs) of this form are immediately marked as modified
(an * following the file name in the tab of the IDE). So if I open
one these form and immediately close it, VS ask me if I want to save
the changes.and that's quite annoying because in some case I'm not
sure if I modified the file or if it's VS that did it.

After a few research : it happens only with some forms (always the
same forms) - it happens only when the form designer is opened (not
when opening a code file) and in the first second of opening - the
Form.Designer.c s files show that ALL the content of the
InitializeCompo nent() method is rewritten (a yellow line in the left
margin show that).

Does anybody know a solution to that problem, what happens ? Is
this a known bug ?


I've seen this too. It happens due to the fact that the form
re-generates the InitializeCompo nent method again. If you this: copy
the .cs file, then open the form in the designer, then do a diff, using
your favorite diff tool, between the copy and the live file you'll see
there are changes in the initializecompo nent method which are very
tiny, e.g.: some lines are swapped, or a space is introduced here and
there. It only happens with some controls not with all of them. (Tab
control comes to mind)

It's still annoying though. It's also the reason why some usercontrols
dissapear when you build a form. For this a hotfix is made, however
that's not publically available (because, why would we want a fix for a
very annoying problem, eh? )

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
May 17 '06 #2
Thanks for your reply. now I know that's not me !

I also tried to find some differences is the cs files with a file comparing
tool, but I find nothing different.. So I'll wait (and wait and wait.) for
the SP1.

Sometime I've also some forms that opens totally empty in VS.. no more
controls in it and it have it's default size like a new form (but everything
in the cs files is still there.). so once again. I'll wait the SP1.

Steph.
"Frans Bouma [C# MVP]" <pe************ ******@xs4all.n l> wrote in message
news:xn******** *******@news.mi crosoft.com...
TheSteph wrote:
Using : VS 2005, .NET 2.0, Windows Form, Win 2k

I have a strange problem in VS : When I open some forms all the
files (resx and cs) of this form are immediately marked as modified
(an * following the file name in the tab of the IDE). So if I open
one these form and immediately close it, VS ask me if I want to save
the changes.and that's quite annoying because in some case I'm not
sure if I modified the file or if it's VS that did it.

After a few research : it happens only with some forms (always the
same forms) - it happens only when the form designer is opened (not
when opening a code file) and in the first second of opening - the
Form.Designer.c s files show that ALL the content of the
InitializeCompo nent() method is rewritten (a yellow line in the left
margin show that).

Does anybody know a solution to that problem, what happens ? Is
this a known bug ?


I've seen this too. It happens due to the fact that the form
re-generates the InitializeCompo nent method again. If you this: copy
the .cs file, then open the form in the designer, then do a diff, using
your favorite diff tool, between the copy and the live file you'll see
there are changes in the initializecompo nent method which are very
tiny, e.g.: some lines are swapped, or a space is introduced here and
there. It only happens with some controls not with all of them. (Tab
control comes to mind)

It's still annoying though. It's also the reason why some usercontrols
dissapear when you build a form. For this a hotfix is made, however
that's not publically available (because, why would we want a fix for a
very annoying problem, eh? )

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------

May 17 '06 #3
Thanks for your reply. now I know that's not me !

I also tried to find some differences is the cs files with a file comparing
tool, but I find nothing different.. So I'll wait (and wait and wait.) for
the SP1.

Sometime I've also some forms that opens totally empty in VS.. no more
controls in it and it have it's default size like a new form (but everything
in the cs files is still there.). so once again. I'll wait the SP1.

Steph.
"Frans Bouma [C# MVP]" <pe************ ******@xs4all.n l> wrote in message
news:xn******** *******@news.mi crosoft.com...
TheSteph wrote:
Using : VS 2005, .NET 2.0, Windows Form, Win 2k

I have a strange problem in VS : When I open some forms all the
files (resx and cs) of this form are immediately marked as modified
(an * following the file name in the tab of the IDE). So if I open
one these form and immediately close it, VS ask me if I want to save
the changes.and that's quite annoying because in some case I'm not
sure if I modified the file or if it's VS that did it.

After a few research : it happens only with some forms (always the
same forms) - it happens only when the form designer is opened (not
when opening a code file) and in the first second of opening - the
Form.Designer.c s files show that ALL the content of the
InitializeCompo nent() method is rewritten (a yellow line in the left
margin show that).

Does anybody know a solution to that problem, what happens ? Is
this a known bug ?


I've seen this too. It happens due to the fact that the form
re-generates the InitializeCompo nent method again. If you this: copy
the .cs file, then open the form in the designer, then do a diff, using
your favorite diff tool, between the copy and the live file you'll see
there are changes in the initializecompo nent method which are very
tiny, e.g.: some lines are swapped, or a space is introduced here and
there. It only happens with some controls not with all of them. (Tab
control comes to mind)

It's still annoying though. It's also the reason why some usercontrols
dissapear when you build a form. For this a hotfix is made, however
that's not publically available (because, why would we want a fix for a
very annoying problem, eh? )

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------

May 17 '06 #4

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

Similar topics

8
3743
by: Ron Holmes | last post by:
I want to place a background image on a windows form. Is there a way to prevent the image from Tiling without using an image box resized to the size of the form? I am using Visual Studio 2003 .NET. This is an easy thing to do in VB6.
0
2302
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the example source code can be downloaded here: http://www.blogitek.com/timhaughton/archives/files/User%20Interrogator%20And%20TDD.zip The article...
1
1027
by: Bhargavan | last post by:
Hi, I am trying to open some windows forms ( created in VS2003) using visual studio 2005 (beta 2.0), but visual studio just crashes without giving any useful error messages. Any ideas if I have to do some error fixes to make it work? Bhargavan M.
3
2700
by: Gustavo L. Fabro | last post by:
Greetings! I'm a newbie in Visual C++ .NET (have programmed in Borland C++ and Builder for long) and I am trying to do a very simple thing, but I'm stuck. I created an (unmanaged) DLL project with a sample function, and tried to call it from a ".NET Forms" project. All I get are "Unresolved External" errors from the Linker!
6
1399
by: Laser Lu | last post by:
Thanks for looking at this post:) Does anyone knows how to make the asp.net process runs in the UserInteractive mode? I just want to show some Windows Forms in my asp.net application on the server side to capture and display application monitoring messages, as Windows Forms will display realtime messages much more easily than Web Pages. ...
22
6240
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one client (MS Access vs ..NET Windows Forms) would be preferred over the other. While I have some good arguments on both sides, I would appreciate your...
1
6282
by: Eggy | last post by:
Hi. I have an application that should download files from internet. The problem is the protocol is HTTPS. So I have a System.Windows.Forms.WebBrowser which allows the user to log in to the HTTPS webpage with username and password. The login is working since I can look at the files (XML-files) by navigating to them(see the XML in them), which...
4
4656
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients and a desktop shortcut to the exe out on the network)... but is it really a good idea? What are some arguments for and against running a .NET...
3
2321
by: JezB | last post by:
I kind of understand the ASP.NET architecture in terms of building web pages with embedded server controls, where the .aspx is run on the client and the ..aspx.cs runs on the server. But what if I want to build an ASP.NET based application that is to be run entirely on a client (all files hosted on the client and run on the same client)?...
0
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.