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
  1. Home
  2. General Programming
  3. C#
  4. Flag/Keyword for VS to ignore a line of code?

Flag/Keyword for VS to ignore a line of code?

Scheduled Pinned Locked Moved C#
visual-studioquestion
7 Posts 3 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.
  • R Offline
    R Offline
    Richard Blythe
    wrote on last edited by
    #1

    I've written some code that the VS designer is griping about. Isn't there a flag that I can use to make the designer ignore it?

    The mind is like a parachute. It doesn’t work unless it’s open.

    L 1 Reply Last reply
    0
    • R Richard Blythe

      I've written some code that the VS designer is griping about. Isn't there a flag that I can use to make the designer ignore it?

      The mind is like a parachute. It doesn’t work unless it’s open.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi Richard, there is the Control.DesignMode property that could be useful. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      R 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi Richard, there is the Control.DesignMode property that could be useful. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        R Offline
        R Offline
        Richard Blythe
        wrote on last edited by
        #3

        :-O I hate easy answers! I've been digging around for a reserved word. (I feel like saying some "reserved" words)

        The mind is like a parachute. It doesn’t work unless it’s open.

        L 1 Reply Last reply
        0
        • R Richard Blythe

          :-O I hate easy answers! I've been digging around for a reserved word. (I feel like saying some "reserved" words)

          The mind is like a parachute. It doesn’t work unless it’s open.

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Yes, sometimes all you need to do is open your parachute aka MSDN... :laugh:

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

          R 1 Reply Last reply
          0
          • L Luc Pattyn

            Yes, sometimes all you need to do is open your parachute aka MSDN... :laugh:

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

            R Offline
            R Offline
            Richard Blythe
            wrote on last edited by
            #5

            :-D Sometimes I just hanging on by the emergency chute! (I hate MSDN by the way. I can find info much easier through google)

            The mind is like a parachute. It doesn’t work unless it’s open.

            L P 2 Replies Last reply
            0
            • R Richard Blythe

              :-D Sometimes I just hanging on by the emergency chute! (I hate MSDN by the way. I can find info much easier through google)

              The mind is like a parachute. It doesn’t work unless it’s open.

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              sure, I use Google to locate the right MSDN page, then read it. :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

              Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

              1 Reply Last reply
              0
              • R Richard Blythe

                :-D Sometimes I just hanging on by the emergency chute! (I hate MSDN by the way. I can find info much easier through google)

                The mind is like a parachute. It doesn’t work unless it’s open.

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                Richard Blythe wrote:

                I hate MSDN by the way. I can find info much easier through google

                And even easier in the CP forums.

                "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                My blog | My articles | MoXAML PowerToys | Onyx

                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