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. Visual Basic
  4. Dumb question

Dumb question

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
9 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.
  • C Offline
    C Offline
    cstrader232
    wrote on last edited by
    #1

    Sorry, but here goes. I have some controls on my form that show in the properties dropdown. But I can't find out where they are on my forms, so I can't seem to select them. If I try to delete their code from the designer -- big problems. How can I figure out how to select those controls if I can't find them on the form? Thanks

    C 1 Reply Last reply
    0
    • C cstrader232

      Sorry, but here goes. I have some controls on my form that show in the properties dropdown. But I can't find out where they are on my forms, so I can't seem to select them. If I try to delete their code from the designer -- big problems. How can I figure out how to select those controls if I can't find them on the form? Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Select them from the dropdown, then look at the location property to see where it is on the form. Try right clicking on other controls in that same location and choose 'send to back' if you have a need to select the control on the form, it's probably off the form, or it's covered by somethign else.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      C 1 Reply Last reply
      0
      • C Christian Graus

        Select them from the dropdown, then look at the location property to see where it is on the form. Try right clicking on other controls in that same location and choose 'send to back' if you have a need to select the control on the form, it's probably off the form, or it's covered by somethign else.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        C Offline
        C Offline
        cstrader232
        wrote on last edited by
        #3

        Thanks. Yes, I did that already... the problem really is that I'm not even sure what form the lost control is on. Is it possible to retrieve that information from somewhere? I was looking for a controls.add line in the designer but didn't see it.

        C 1 Reply Last reply
        0
        • C cstrader232

          Thanks. Yes, I did that already... the problem really is that I'm not even sure what form the lost control is on. Is it possible to retrieve that information from somewhere? I was looking for a controls.add line in the designer but didn't see it.

          C Offline
          C Offline
          cstrader232
          wrote on last edited by
          #4

          Sorry, I don't mean that I can't find which form it's on, but rather where on the form it is (which tabpage, within which splitcontainer?) Thanks

          C 1 Reply Last reply
          0
          • C cstrader232

            Sorry, I don't mean that I can't find which form it's on, but rather where on the form it is (which tabpage, within which splitcontainer?) Thanks

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            OK, that I'm not sure of.

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            C 1 Reply Last reply
            0
            • C Christian Graus

              OK, that I'm not sure of.

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              C Offline
              C Offline
              cstrader232
              wrote on last edited by
              #6

              OK, thanks. I think I'll try to start deleting things until the lost controls disappear! Or if that doesn't work just rename them and keep them hanging around as ghosts. A strange situation that they can't be selected or deleted from the properties tab or somewhere.

              P L 2 Replies Last reply
              0
              • C cstrader232

                OK, thanks. I think I'll try to start deleting things until the lost controls disappear! Or if that doesn't work just rename them and keep them hanging around as ghosts. A strange situation that they can't be selected or deleted from the properties tab or somewhere.

                P Offline
                P Offline
                Prakash_Mishra
                wrote on last edited by
                #7

                hi As i understood u have certain controls on page that u r not visible or u r not able to find them or its hidden below some other control. In my opinion u can create a new form add the necessary controls on the new page and delete the old page. Regards

                Prakash Mishra(Banglore,India)

                1 Reply Last reply
                0
                • C cstrader232

                  OK, thanks. I think I'll try to start deleting things until the lost controls disappear! Or if that doesn't work just rename them and keep them hanging around as ghosts. A strange situation that they can't be selected or deleted from the properties tab or somewhere.

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

                  Hi, if you know the name of the Control you want to manipulate, you can: 1. use the combobox to get to its properties, then change its location (say to 50,50) to make sure where it will be inside its parent; unfortunately I don't see Parent as a property, hence: 2. read the designer-generated code add look for a XXX.Controls.Add(...ControlName) to find out that XXX is the parent. If you don't know the name and don't see it, you're out of luck. I then hope you will use better names next time. :)

                  Luc Pattyn [Forum Guidelines] [My Articles]


                  This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


                  C 1 Reply Last reply
                  0
                  • L Luc Pattyn

                    Hi, if you know the name of the Control you want to manipulate, you can: 1. use the combobox to get to its properties, then change its location (say to 50,50) to make sure where it will be inside its parent; unfortunately I don't see Parent as a property, hence: 2. read the designer-generated code add look for a XXX.Controls.Add(...ControlName) to find out that XXX is the parent. If you don't know the name and don't see it, you're out of luck. I then hope you will use better names next time. :)

                    Luc Pattyn [Forum Guidelines] [My Articles]


                    This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


                    C Offline
                    C Offline
                    cstrader232
                    wrote on last edited by
                    #9

                    Thanks to everyone for the excellent suggestions. They really helped me. I think that the code for the objects, which should have been deleted, still existed in the designer. However the controls were never being added to the form which is why I couldn't select them. I was able in the end to get rid of them by editing the designer. cs

                    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