Vanishing Controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

There is a repeating issue of controls vanishing from a form in the Dev
environment which is starting to get annoying.

What happens is that I will have a form open in the IDE. The form will have
a variety of buttons on it. The form will be saved, then compiled and run.
After it runs, one or more buttons have either vanished completely, or moved
to a position of 0,0.

If the control vanishes completely, it may still show up when running the
form, or sometimes it doesn't. It is not possible to select the button as it
is not visible, yet I can't create another one to replace it with the same
name as it's already there.

If anyone has a workaround or resolution for this, I would appreciate it.
These are controls with one level of inheritance.

Thanks,

Greg
 
Hi,

The only "workaround" (see below why I am putting the quotes around it) I
know is to:

a) Before opening any designer, always make sure your solution successfully
compiles.
b) Even if it compiles, make sure there are no missing references in any of
the projects.
c) Before compiling a solution, close all designer windows.
d) After opening a designer window, look immediately to the Tasks pane. If
you see any control-related errors there, remember or copy the messages,
close the designer immediately and undo checkout on the corresponding
file(s) if possible. DO NOT open the designer until you've resolved the
reported issues.

I know - this is annoying and this is a pain, but these are the only
measures I am aware of to prevent the vanishing of controls. If someone from
Microsoft pays attention to this message, can you please post whether a
hotfix is available to resolve this issue? I remember this problem has
existed since VS .NET 7.0 and it appears to me to be rather annoying as it
corrupts the developer's work and code.
 
Thanks, that seems to help out. It's the little things...

Greg

Dmytro Lapshyn said:
Hi,

The only "workaround" (see below why I am putting the quotes around it) I
know is to:

a) Before opening any designer, always make sure your solution successfully
compiles.
b) Even if it compiles, make sure there are no missing references in any of
the projects.
c) Before compiling a solution, close all designer windows.
d) After opening a designer window, look immediately to the Tasks pane. If
you see any control-related errors there, remember or copy the messages,
close the designer immediately and undo checkout on the corresponding
file(s) if possible. DO NOT open the designer until you've resolved the
reported issues.

I know - this is annoying and this is a pain, but these are the only
measures I am aware of to prevent the vanishing of controls. If someone from
Microsoft pays attention to this message, can you please post whether a
hotfix is available to resolve this issue? I remember this problem has
existed since VS .NET 7.0 and it appears to me to be rather annoying as it
corrupts the developer's work and code.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


Greg said:
There is a repeating issue of controls vanishing from a form in the Dev
environment which is starting to get annoying.

What happens is that I will have a form open in the IDE. The form will
have
a variety of buttons on it. The form will be saved, then compiled and
run.
After it runs, one or more buttons have either vanished completely, or
moved
to a position of 0,0.

If the control vanishes completely, it may still show up when running the
form, or sometimes it doesn't. It is not possible to select the button as
it
is not visible, yet I can't create another one to replace it with the same
name as it's already there.

If anyone has a workaround or resolution for this, I would appreciate it.
These are controls with one level of inheritance.

Thanks,

Greg
 
Back
Top