Results 1 to 28 of 28

Thread: ProgressBar question

Threaded View

  1. #23
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: ProgressBar question

    This "If System.Windows.Forms.DialogResult.OK Then" tells me that you do not have Option Strict On, not to mention there is not a comparison. It will always evaluate to true, regardless of which button you click.

    It should look something like this:

    Code:
            Dim dRslt As DialogResult
            dRslt = MessageBox.Show("OK or Cancel", "Test", MessageBoxButtons.OKCancel)
            If dRslt = Windows.Forms.DialogResult.OK Then
                'ok
            Else
                'cancel
            End If
    Last edited by dbasnett; Dec 14th, 2009 at 05:39 PM.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

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