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. View Control (VS 2005 C#)

View Control (VS 2005 C#)

Scheduled Pinned Locked Moved C#
csharpvisual-studiodesigntutorial
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.
  • H Offline
    H Offline
    half life
    wrote on last edited by
    #1

    Hi, is there away to jump to the location of a control thru code for example : private System.Windows.Forms.Label label13; // in the designer click on the "label13" and see it in the {Design] thanks :) :)

    Have Fun Never forget it

    H P 2 Replies Last reply
    0
    • H half life

      Hi, is there away to jump to the location of a control thru code for example : private System.Windows.Forms.Label label13; // in the designer click on the "label13" and see it in the {Design] thanks :) :)

      Have Fun Never forget it

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Err..... Yes, possibly, maybe. It really depends on what you mean by 'jump to the location'. Do you mean make the mouse pointer move to that location? Or do you mean something else?

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      H 1 Reply Last reply
      0
      • H Henry Minute

        Err..... Yes, possibly, maybe. It really depends on what you mean by 'jump to the location'. Do you mean make the mouse pointer move to that location? Or do you mean something else?

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        H Offline
        H Offline
        half life
        wrote on last edited by
        #3

        i've inserted a new label now i've changed the text to a "" the silly thing that i've forgat where it is and the label is "invisable to me" in another env i'm working called CVI i can right click in code on the name of the control and click go to control, and the designer opens and shows me the control is there antihng similar in vs 2005 :) :)

        Have Fun Never forget it

        H 1 Reply Last reply
        0
        • H half life

          i've inserted a new label now i've changed the text to a "" the silly thing that i've forgat where it is and the label is "invisable to me" in another env i'm working called CVI i can right click in code on the name of the control and click go to control, and the designer opens and shows me the control is there antihng similar in vs 2005 :) :)

          Have Fun Never forget it

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          Oh yes!! 1) ensure the form with the control you want is selected in design view. 2) In the properties window (if you don't have it up use View | Properties Window menu) there is a combo box at the top, drop it down. 3) select required control from drop-down. 4) it will be selected in designer, and its properties are displayed.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          H 1 Reply Last reply
          0
          • H Henry Minute

            Oh yes!! 1) ensure the form with the control you want is selected in design view. 2) In the properties window (if you don't have it up use View | Properties Window menu) there is a combo box at the top, drop it down. 3) select required control from drop-down. 4) it will be selected in designer, and its properties are displayed.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            H Offline
            H Offline
            half life
            wrote on last edited by
            #5

            thanks alot idiot me, why did'nt i've thought about it ,arrrrrrrrr :) :) :) thanks and have a nice day

            Have Fun Never forget it

            1 Reply Last reply
            0
            • H half life

              Hi, is there away to jump to the location of a control thru code for example : private System.Windows.Forms.Label label13; // in the designer click on the "label13" and see it in the {Design] thanks :) :)

              Have Fun Never forget it

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

              Of course, a decent naming convention helps here as well. As your control is called label13, you have no idea what it is or what context it has, hence your difficulty in finding it. If your control was called something like labEmailAddress it is obvious what the label is for, and would be much easier to find later on.

              "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

              H 1 Reply Last reply
              0
              • P Pete OHanlon

                Of course, a decent naming convention helps here as well. As your control is called label13, you have no idea what it is or what context it has, hence your difficulty in finding it. If your control was called something like labEmailAddress it is obvious what the label is for, and would be much easier to find later on.

                "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

                H Offline
                H Offline
                half life
                wrote on last edited by
                #7

                :) :laugh: :laugh: :laugh: yep, but it was an example my naming is with a prefix like lbl - for labels txb - for TextBoses so the naming is lbl"ControlName" :) :)

                Have Fun Never forget it

                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