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. Buttons don't show in program [modified]

Buttons don't show in program [modified]

Scheduled Pinned Locked Moved C#
helpvisual-studiodesign
4 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.
  • E Offline
    E Offline
    electriac
    wrote on last edited by
    #1

    I have something really strange happening that I want to run by you folks. Frequently when I add a new button to Form1.cs[Design] the button appears in the IDE, the button is listed in the Form1.Designer.cs, The button is not hidden or behind another form, but the button does not show in the compiled program. This happens when compiling under Vis 2005. I had thought that maybe there was a defect in my compiler so I reinstalled Vis 2005 and I get the same results. Whats really strange is when I take the same code and recompile under Vis 2008 the button appears in the compiled program and works as it should. I have now discovered that after compiling the code with Vis 2008 I can go back to Vis 2005 and recompile the code that didn't compile properly and it will compile. Vis 2005 will run properly for a while until it repeats the problem above which I find I can fix each time by running Vis 2008.

    modified on Sunday, February 17, 2008 10:30 AM

    L D 2 Replies Last reply
    0
    • E electriac

      I have something really strange happening that I want to run by you folks. Frequently when I add a new button to Form1.cs[Design] the button appears in the IDE, the button is listed in the Form1.Designer.cs, The button is not hidden or behind another form, but the button does not show in the compiled program. This happens when compiling under Vis 2005. I had thought that maybe there was a defect in my compiler so I reinstalled Vis 2005 and I get the same results. Whats really strange is when I take the same code and recompile under Vis 2008 the button appears in the compiled program and works as it should. I have now discovered that after compiling the code with Vis 2008 I can go back to Vis 2005 and recompile the code that didn't compile properly and it will compile. Vis 2005 will run properly for a while until it repeats the problem above which I find I can fix each time by running Vis 2008.

      modified on Sunday, February 17, 2008 10:30 AM

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

      Hi George, very strange indeed. I've never seen that with my Visual 2005. There are some bugs in VS2005 C# Express Edition, where Visual gets confused and I have to delete the bin and obj directories, then rebuild. You could try that. If it does not help, I Can't help you unless you send the entire project I'm afraid, so I could have a look. No guarantees though. :)

      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.


      E 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi George, very strange indeed. I've never seen that with my Visual 2005. There are some bugs in VS2005 C# Express Edition, where Visual gets confused and I have to delete the bin and obj directories, then rebuild. You could try that. If it does not help, I Can't help you unless you send the entire project I'm afraid, so I could have a look. No guarantees though. :)

        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.


        E Offline
        E Offline
        electriac
        wrote on last edited by
        #3

        I ran Vis 2008 and now all is well. I don't know when the problem will occur again but when it does I will try your suggestion. TNX.

        1 Reply Last reply
        0
        • E electriac

          I have something really strange happening that I want to run by you folks. Frequently when I add a new button to Form1.cs[Design] the button appears in the IDE, the button is listed in the Form1.Designer.cs, The button is not hidden or behind another form, but the button does not show in the compiled program. This happens when compiling under Vis 2005. I had thought that maybe there was a defect in my compiler so I reinstalled Vis 2005 and I get the same results. Whats really strange is when I take the same code and recompile under Vis 2008 the button appears in the compiled program and works as it should. I have now discovered that after compiling the code with Vis 2008 I can go back to Vis 2005 and recompile the code that didn't compile properly and it will compile. Vis 2005 will run properly for a while until it repeats the problem above which I find I can fix each time by running Vis 2008.

          modified on Sunday, February 17, 2008 10:30 AM

          D Offline
          D Offline
          darkelv
          wrote on last edited by
          #4

          Is that an inherited button? Did you check what's the different between VS2005 and VS2008 for the portion related to the button in the InitilizeComponent()?

          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