Message box gets minimised on taskbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hiranmaie
    New Member
    • Feb 2009
    • 18

    Message box gets minimised on taskbar

    Hi,

    I am using the messagebox code as System.Windows. Forms.MessageBo x.Show("WELCOME "); , in my application to get a message box. I get as a minimised window of the messagebox on the taskbar. I want to avoid this minimising of the messagebox and it should come in the application as any other normal messageboxes. Can anybody tell me what am I supposed to do to remove this minimising of the messagebox window on the taskbar and instead to get it in the center of the page at runtime.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    What other code do you run after the
    Code:
    System.Windows.Forms.MessageBox.Show("WELCOME");
    line?

    Comment

    • kunal pawar
      Contributor
      • Oct 2007
      • 297

      #3
      Can you submit code from your are calling MessageBox.show (...); This will help us to know your problem.

      Comment

      • hiranmaie
        New Member
        • Feb 2009
        • 18

        #4
        for some pages like loginpage, I will write responce.redire ct("Home.aspx") ;
        after System.Windows. Forms.MessageBo x.Show("WELCOME ");

        In some pages i have written System.Windows. Forms.MessageBo x.Show("WELCOME "); after saving the values into the database in try block, after try block i write the catch block and close the save function.

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          If you open another page after showing the pop up then the pop up may be minimized. Better show the pop up from that Home.aspx page.

          Comment

          • hiranmaie
            New Member
            • Feb 2009
            • 18

            #6
            I am getting the same result irrespective of where ever I use the message box. I am getting the minimised message box. I am using the message box in web based project and its not a console application.

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              You should not be using System.Windows. Forms.MessageBo x.Show in a webapplication.
              You should be using javascript's Alert()

              Comment

              • hiranmaie
                New Member
                • Feb 2009
                • 18

                #8
                I tried using alert messages, it shows the heading of the messagebox window as Internet Explorer and an icon of warning message come in the message box which I dont need. How to remove the icon and customise the heading of the message box window. If I can get any example code for this type of message box it would be helpful. Please help.

                Comment

                • Plater
                  Recognized Expert Expert
                  • Apr 2007
                  • 7872

                  #9
                  I'm not sure you can, I don't see why it matters but thats up to you.

                  Using windows.forms will only work in IE though.

                  Comment

                  Working...