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. Form display porblem

Form display porblem

Scheduled Pinned Locked Moved C#
helpquestion
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.
  • W Offline
    W Offline
    wk_vigorous
    wrote on last edited by
    #1

    Hi, guys, I have a form(window1) and I want click a button and then display another form(window2). If I use window2.ShowDialog(), window2 is displayed correctly. But I would like to use window2.Show(), the label control on the form can n't display correctly. Why/ Who can help me? Thank you very much. vigorous

    N 1 Reply Last reply
    0
    • W wk_vigorous

      Hi, guys, I have a form(window1) and I want click a button and then display another form(window2). If I use window2.ShowDialog(), window2 is displayed correctly. But I would like to use window2.Show(), the label control on the form can n't display correctly. Why/ Who can help me? Thank you very much. vigorous

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      If you include code, we can better help you. Does you you button handler look like this?

      private void button_Click(object sender, EventArgs e)
      {
      OtherWindow other = new OtherWindow();
      other.Show();
      }

      - Nick Parker
      My Blog | My Articles

      W 1 Reply Last reply
      0
      • N Nick Parker

        If you include code, we can better help you. Does you you button handler look like this?

        private void button_Click(object sender, EventArgs e)
        {
        OtherWindow other = new OtherWindow();
        other.Show();
        }

        - Nick Parker
        My Blog | My Articles

        W Offline
        W Offline
        wk_vigorous
        wrote on last edited by
        #3

        Yes ,you are right. The code is very similar. Do you know the reason of display incorrectly? Thank you vigorous

        H 1 Reply Last reply
        0
        • W wk_vigorous

          Yes ,you are right. The code is very similar. Do you know the reason of display incorrectly? Thank you vigorous

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          What exactly do you mean it "display[s] incorrectly?" Please be specific or we can't help you.

          Microsoft MVP, Visual C# My Articles

          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