CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: MsgBox twice

  1. #1
    Join Date
    Sep 2001
    Location
    Italy
    Posts
    10

    MsgBox twice

    Hi!!!

    I have seen that with the VB .Net I call once a message box. Often, and I don't know why, .Net recall twice my msgbox.

    This is a bug of .Net, becaue I can't explain why. I've already installed the service pack 1 and 2.

    Do you know more about it?

    If you know something about it please tell me!!

    Thank you very much!!!

    Silvia

  2. #2
    Join Date
    Jan 2003
    Location
    Amsterdam, Netherlands
    Posts
    97
    I can't tell you if it's a bug or not, but I use messageboxes often and I don't have your problem.

    Only thing is that in VB.NET there are 2 kind of messageboxes.

    Microsoft.VisualBasic.MsgBox
    Which is the same as in VB6

    and
    System.Windows.Forms.MessageBox
    This one is based on a Windows.Form and has some more features.

    I don't which one you are using, but try using the MessageBox.Show()
    Maybe that helps you with your problem.

  3. #3
    Join Date
    Sep 2001
    Location
    Italy
    Posts
    10
    Thank you very much for your reply.

    I use the hold Microsoft.VisualBasic.MsgBox

    I try what happened if I use the System.Window.Forms.MessageBox and then I tell you...

    This is my first program in VB ( normally I program in VC++ ) and I don't know very well the environment. ....

    Once again I thank you for your help

    Have a nice day!!!

    Silvia

  4. #4
    Join Date
    Sep 2001
    Location
    Italy
    Posts
    10
    Hi!!!

    I have tried to substitute the MsgBox with the Window.Forms.MessageBox, but it doesn't work.

    The program recall certainly fuction twice and recall twice Message Box.. I don't understand...

    Maybe it's my computer... I really don't know

    Thank you very much

    Silvia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured