Results 1 to 4 of 4

Thread: Code Window coming up blank

  1. #1
    Monarch1st is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Mar 2017
    Posts
    4
    Rep Power
    0

    Code Window coming up blank

    Hi all. Newb here so this is probably a simple fix. Hopefully.

    I've started a new windows form project. I put some stuff on the form, and an 'exit' button.
    I double-click on the 'exit' button, and nothing comes up. The form1.cs tab is completely blank. Dark blue in fact.
    It compiles fine and the form comes up, so there's got to be something there.
    In the solution explorer I double-click the main():void, and still nothing appears.

    What's going on, why doesn't it let me enter code?

  2. #2
    jmcilhinney is online now C# Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2011
    Posts
    1,468
    Rep Power
    118
    I can't think of any reason that that should be happening on purpose. Does the same thing happen with other projects and other forms in that project? If not then I'd say that something is corrupt in that form or that project. If it does happen elsewhere then VS might be corrupt and you might need to do a repair.

  3. #3
    Monarch1st is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Mar 2017
    Posts
    4
    Rep Power
    0
    There's no other form yet. I restarted this project, deleting the old, and version 1 of it worked fine (as far as it had gotten) a few days ago. But it did the same thing today, the code wouldn't come up.
    So you think vs needs to be repaired? How do you do that? (it's vs community 2015 if that matters, installed only a couple months ago or so.)

  4. #4
    jmcilhinney is online now C# Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2011
    Posts
    1,468
    Rep Power
    118
    Quote Originally Posted by Monarch1st View Post
    So you think vs needs to be repaired? How do you do that?
    Run the installer again and one of the options should be to repair. I'm not sure whether it will keep your options in place or not, so you should go through the Options dialogue again afterwards.

Bookmarks

Posting Permissions

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