Controls disappearing, but can't replace

Posted on 2004-11-03
Last Modified: 2010-04-23

     I have weird things happening on my webform.  I was in design mode, turned to listen to an office conversation, and when I turned around, a textbox and a combo box were gone.  One of them became a little grey button that said something about couldn't form control or something.  But I deleted it.  Then I tried to replace them.  If I click in the dropdown at the top of the properties box, there is no control listed with the names of the two that are gone.  But if I make a new textbox or combo and try to name them what the old ones were called, it tells me invalid property, a control already exists with that name.  In the HTML code I can't find an instance of those names either.  What happened to me?

Question by:gleznov
    LVL 5

    Accepted Solution

    This happens to me sometimes. Try to look at the Visual Studio automatic generated code and delete any ocurrence of the name of the variables. Then you can add them again. When this happens the best thing it to close the visual studio without saving and restart the vs again. You won't have the GUI corruption.


    Author Comment

    Somehow it saved itself.  How do I see the auto-generated code?  Or is that the stuff in the + part at the front of the code?  I'll look there...


    Author Comment

    That was it.  Thanks so much!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now