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. How to know current environment is under the design environment or running environment?

How to know current environment is under the design environment or running environment?

Scheduled Pinned Locked Moved C#
designtutorialquestionworkspace
4 Posts 2 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.
  • M Offline
    M Offline
    mctramp168
    wrote on last edited by
    #1

    I want to override the panel,under the design environment draw some piecec of lines on the panel, but under the running environment the no need to draw the lines or no need to display the lines, how to do it ? Thank in advence!

    L 1 Reply Last reply
    0
    • M mctramp168

      I want to override the panel,under the design environment draw some piecec of lines on the panel, but under the running environment the no need to draw the lines or no need to display the lines, how to do it ? Thank in advence!

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

      Maybe Control.DesignMode is what you want. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


      M 1 Reply Last reply
      0
      • L Luc Pattyn

        Maybe Control.DesignMode is what you want. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


        M Offline
        M Offline
        mctramp168
        wrote on last edited by
        #3

        Luc Pattyn, Thank for your help. And could you help me below issue because I'm a beginner of C#? I want to override the panel,under the design environment draw some piecec of lines on the panel, but under the running environment the no need to draw the lines or no need to display the lines, how to do it ?

        L 1 Reply Last reply
        0
        • M mctramp168

          Luc Pattyn, Thank for your help. And could you help me below issue because I'm a beginner of C#? I want to override the panel,under the design environment draw some piecec of lines on the panel, but under the running environment the no need to draw the lines or no need to display the lines, how to do it ?

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

          Maybe Control.DesignMode is what you want. Read up on it. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


          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