vb.net - WPF Dialog Result -


hello i'm getting strange error, if of me out? error : error 1 'ok' not member of 'boolean?'.

code:

  if getver > currentversion         getupd = msgbox(programname & " old version." & vbcrlf & "new update available" & _         vbcrlf & "current version: " & currentversion & vbcrlf & "version available: " & _         getver & vbcrlf & vbcrlf & "update now?", vbyesno, "update")          if getupd = vbyes             dim sfd new savefiledialog              sfd.filename = io.path.getfilename(getverlink)             if sfd.showdialog = dialogresult.ok                 my.computer.network.downloadfile(getverlink, sfd.filename)             end if         end if 

in wpf, showdialog returns nullable(of boolean), not enum. need check via:

if sfd.showdialog = true 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -