Command button not show up on a form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QmVu?=

    Command button not show up on a form

    Hi all,

    My environment is VS2008,C#. I am experimenting with C#.
    I have a form with a few controls on it. Two of them are buttons but for
    some reason, they do not show up at all during run time. I check their
    visible property and they are set to true. I am no sure why they are not
    showing up. Any ideas? Thanks, for sharing your thought.

    Ben



    --

  • Lee

    #2
    Re: Command button not show up on a form

    Ben,

    How did you add the buttons? Can you post come code for us to see?

    L. Lee Saunders
    Playing with old ideas/concepts using the newest tools!


    Comment

    • rajesh

      #3
      Re: Command button not show up on a form

      1. Check the Location property of the button control-- if still unable
      to locate try setting the location of the button by giving single
      digit values.
      2. Make sure the button is added to Forms controls collection (ie.
      check for "this.Controls. Add" in InitializeCompo nent)
      -Rajesh Gupta

      Comment

      • =?Utf-8?B?QmVu?=

        #4
        Re: Command button not show up on a form

        Lee,

        I just drag the buttons from the toolbox and drop them on the form. I
        deleted them and re-created thembut still the same.

        I moved the buttons around a few times and I did a few built, it finally
        came out.

        Thank you for your help.

        Ben


        --



        "Lee" wrote:
        Ben,
        >
        How did you add the buttons? Can you post come code for us to see?
        >
        L. Lee Saunders
        Playing with old ideas/concepts using the newest tools!

        >
        >

        Comment

        • =?Utf-8?B?QmVu?=

          #5
          Re: Command button not show up on a form

          Rajesh,

          Thanks for suggesting the pointers. I still don't know what happened(I am
          just starting to experiment with C# with vs2008) but it finally worked after
          I deleted and moved around and re-build a few times

          Thanks again for sharing your ideas, I will keep them in mind.

          Ben

          --



          "rajesh" wrote:
          1. Check the Location property of the button control-- if still unable
          to locate try setting the location of the button by giving single
          digit values.
          2. Make sure the button is added to Forms controls collection (ie.
          check for "this.Controls. Add" in InitializeCompo nent)
          -Rajesh Gupta
          >

          Comment

          Working...