Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Visual Studio only displaying HTML instead of Design View

Visual Studio only displaying HTML instead of Design View

Scheduled Pinned Locked Moved C#
csharpquestionhtmlvisual-studiowinforms
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    W4Rl0CK47
    wrote on last edited by
    #1

    Hi, I'm writing a Windows Forms application in C# and my design view is now only displaying HTML. Is this an alternative view for the form design and if so, how do I revert back? Have I managed to set some flag I shouldn't have? :doh: :)

    S L R 3 Replies Last reply
    0
    • W W4Rl0CK47

      Hi, I'm writing a Windows Forms application in C# and my design view is now only displaying HTML. Is this an alternative view for the form design and if so, how do I revert back? Have I managed to set some flag I shouldn't have? :doh: :)

      S Offline
      S Offline
      Sir Dot Net
      wrote on last edited by
      #2

      My guess is that you are seeing XAML and not HTML, which would indicate you are creating a WPF windows application perhaps? Try choosing a non-WPF windows forms project.

      1 Reply Last reply
      0
      • W W4Rl0CK47

        Hi, I'm writing a Windows Forms application in C# and my design view is now only displaying HTML. Is this an alternative view for the form design and if so, how do I revert back? Have I managed to set some flag I shouldn't have? :doh: :)

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        There's no HTML for Windows Forms application, the design view is constructed from the designer generated C# code in the .designer.cs file. Are you referring to WPF application ? If that is the case, you are seeing XAML and not HTML.

        1 Reply Last reply
        0
        • W W4Rl0CK47

          Hi, I'm writing a Windows Forms application in C# and my design view is now only displaying HTML. Is this an alternative view for the form design and if so, how do I revert back? Have I managed to set some flag I shouldn't have? :doh: :)

          R Offline
          R Offline
          Ronni Marker
          wrote on last edited by
          #4

          Yea i got that too once in a while - basically due to an error in the code. What you could do was to close the form, compile the application and the open the form again. That works for me.. sometimes. Other option is to go into the designer mode and find the reason to the error - most often for me is that there is a reference to an image that is removed and is still referenced in that specific form or like. /Ronni

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups