Results 1 to 6 of 6

Thread: Can't delete controls.

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Washington State
    Posts
    12

    Can't delete controls.

    I have created my first .net project and have added a bunch of controls to the form just to check out how they work. Now I am trying to delete them and I am finding the delete option (along with all other options except View Code) is disabled and the delete button does not do anything either. I added another form and was able to add and delete from that form fine. I figure I must have inadvertently set a property or something which is blocking me from deletions. I checked the locked property on the form and it is set to false. The lock controls menu option is totally disabled. What is up with this??

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Odd. Can you upload that project here?

    Also, try deleting the code generated for it in the .VB class.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Washington State
    Posts
    12

    Now it works

    Wierd. I closed the project. Opened it back up again and it works fine now. I should have tried that sooner. Sorry to have bugged you. I thought I had run across some new feature in .Net which I needed to understand!

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    That's OK. I had stopped all my work, causing my company thousands of dollars in losses. But it's alright. We'll recover.

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Originally posted by mendhak
    That's OK. I had stopped all my work, causing my company thousands of dollars in losses. But it's alright. We'll recover.
    Why not? Your boss said you've done it many times before
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    I've noticed the same problem with the copy/cut/paste functions ... it usualy happens right after I've selected a bunch of controls and copy them and then paste them. I've chalked it up as a quirk.

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width