Re: Every once in a while a usercontrol will disappear from the form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: jjardine (jjardine_at_bellsouth.net)
Date: 02/27/05


Date: Sat, 26 Feb 2005 21:20:25 -0500


" Just Me" <groups@a-znet.com> wrote in message
news:O8e4JjBHFHA.3060@TK2MSFTNGP10.phx.gbl...
>I have a usercontrol I created on a form.
>
> Every once in a while it will disappear from the form but the statement
> Friend WithEvents ControlText1...
> is still there but the rest of the windows created statements relating to
> it have disappeared!
>
> Real pain as I then have to replace the control on the form and reset the
> properties.
>
> Is there any help for this?
>

I have had this same thing happen to me as well. I noticed that in one
instance it is happening because I was trying to set some data in
Control_Load that in design mode didn't exist. This caused the above
result. If I checked if I was in design mode or not I was able to stop this
behavior.



Relevant Pages

  • Every once in a while a usercontrol will disappear from the form
    ... I have a usercontrol I created on a form. ... Every once in a while it will disappear from the form but the statement ... Friend WithEvents ControlText1... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: custom listview control
    ... that wouldn't make it disappear when I compile or run it. ... I can see the items in design mode before I build it--no matter what mode. ... Todd ...
    (microsoft.public.dotnet.languages.vb)
  • prevent saving when just closing
    ... I made the winodws close button disappear, but you still can close using the right mouse click. ... going to design mode saves the record. ... but not in the OnClose event. ...
    (comp.databases.ms-access)
  • Disappearing Wordart
    ... With FP2003, Wordart and Autoshapes only appear in the design mode, but when ... switching to the preview mode, they disappear. ... I have checked the VML box ...
    (microsoft.public.frontpage)