Results 1 to 3 of 3

Thread: [RESOLVED] C# Project Goes South When I Remove label1_Click code

  1. #1

    Thread Starter
    Hyperactive Member Vladamir's Avatar
    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    486

    Resolved [RESOLVED] C# Project Goes South When I Remove label1_Click code

    I am building a C# Windows Form app project in Visual Studio 2013 Express. I have some labels and one or two of them I accidentally double clicked on. Thus is stuck some code for it in the Program.cs file. I deleted these and poof, I lost my form. I did a Ctrl+Z and got it back. But I really don't need these extraneous code in the file. Is there a way to get rid of these without hosing up the form. BTW, this doesn't happen with Visual Basic editor.

  2. #2

    Thread Starter
    Hyperactive Member Vladamir's Avatar
    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    486

    Re: C# Project Goes South When I Remove label1_Click code

    Okay, I found it. I was deleting the only method that was located in the Form1.cs class file. DOH! Shame on me.

  3. #3
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: C# Project Goes South When I Remove label1_Click code

    Don't forget to mark the thread "Resolved"!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

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