Results 1 to 2 of 2

Thread: Closing Dialog Screen

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Scotland
    Posts
    184

    Question Closing Dialog Screen

    I have created my own MsgBox Class but when I close it and capture the return value the application seems to flash..... anyone know why?

    I call it like this:

    Code:
    Public Function Message(Optional ByVal strMess As String = "", _
                                Optional ByVal MessType As MsgBoxStyle = MsgBoxStyle.OKOnly, _
                                Optional ByVal strHeading As String = "") _
                                        As DialogResult
    
            Dim MyBossMessage As New BOSSmessage(strMess, MessType, strHeading)
            Dim iReturn As DialogResult
            MyBossMessage.ShowDialog()
    
            ' Will wait here now until this Modal Dialog Box closes.
            iReturn = MyBossMessage.DialogResult
    
            MyBossMessage = Nothing
    
            Return iReturn
    
        End Function
    
    
    Its a TopMost FixedDialog form Class.

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Closing Dialog Screen

    have you tried...

    Code:
    Public Function Message(Optional ByVal strMess As String = "", _
                                Optional ByVal MessType As MsgBoxStyle = MsgBoxStyle.OKOnly, _
                                Optional ByVal strHeading As String = "") _
                                        As DialogResult
    
    return (New BOSSmessage(strMess, MessType, strHeading)).ShowDialog()
    
    End Function
    I don't live here any more.

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