Usercontrol is always unsaved

  • Thread starter Thread starter bpsdgnews
  • Start date Start date
B

bpsdgnews

Hi,

I have created a usercontrol. Whenever I open this control in the
designer it will show up as unsaved.

I have also created other usercontrols that do not show this
behaviour.

What could be the reason?
 
Hi,

I have created a usercontrol. Whenever I open this control in the
designer it will show up as unsaved.

I have also created other usercontrols that do not show this
behaviour.

What could be the reason?

This is a chronic problem with the IDE. When you open the control in
the IDE, the IDE is making some change to some control within the
usercontrol, probably moving it slightly or changing its size
slightly.

I have never been able to determine what circumstances make the IDE
want to change things, and I don't know of any way to fix it.
 
Hi,

Keep the current file, accept the change and save the new file. Then with
the "fc" command line you should be able to find out what the IDE changed..
Not sure it will allow to solve the problem but at least you'll know what
the IDE want to change each time you open this file...

--
Patrice

"bpsdgnews" <[email protected]> a écrit dans le message de (e-mail address removed)...







- Tekst uit oorspronkelijk bericht weergeven -

Good suggestion. I found out that it was a change I made myself
manually in the designer file. Shouldn't do that, do I? The IDE
persistently undoes thta change.

So that gets me to why I actually did make that change. It has to do
with a property that will result in an error during design time, but
not during run-time. I guess I need a run-time only property, but I
haven't found out yet how to do that.

I'm just recently changing from VB6 to VB.net, that's why.
 
Good suggestion. I found out that it was a change I made myself
The designer file should never be changed (and chaning it should never be
needed)...

Not sure what you need. Depedning on what you need you should be able to not
generate a member and expose this yourself as a readonly property. You may
want to open another thread about this...
 
I run into this periodically with a class I have for a textbox in a
datagridview
I have to re-compile to get it back....otherwise it seems to loose / that it
is compiled and the window containing the datagridview does not display as
it does not have a valid reference to the "new textbox class".

Miro
 
Back
Top