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. Show Window

Show Window

Scheduled Pinned Locked Moved C#
3 Posts 2 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.
  • J Offline
    J Offline
    jzb
    wrote on last edited by
    #1

    I want to show window that it's like open.showmodelessdialog in web application. The second window always on the first window. besides, the first window can be operateed. Modeless Dialog, not mdi.

    D J 2 Replies Last reply
    0
    • J jzb

      I want to show window that it's like open.showmodelessdialog in web application. The second window always on the first window. besides, the first window can be operateed. Modeless Dialog, not mdi.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You can't do it from ASP.NET. It's got to be done using client-side JavaScript. There's no such thing as a modal window in ASP.NET. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome -- modified at 11:27 Friday 27th January, 2006

      1 Reply Last reply
      0
      • J jzb

        I want to show window that it's like open.showmodelessdialog in web application. The second window always on the first window. besides, the first window can be operateed. Modeless Dialog, not mdi.

        J Offline
        J Offline
        jzb
        wrote on last edited by
        #3

        I found out the solution. private void button1_Click(object sender, System.EventArgs e) { SecondWindow frm = new SecondWindow(); frm.Owner = this;//'this' is the first window's handle. frm.Show(); }

        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