Z
Zanna
Hi all!
I've a little problem that I cannot resolve.
I'v a MyForm that inherits from S.W.F.Form, with MinimizeButton = False
(so I have the (Ok) button on the top-right corner).
in this form I have
Public Shadows Function ShowDialog() As DialogResult
Return MyBase.ShowDialog
End Function
So, when the (ok) is pressed I expect to have the Cancel as result.
In another place I do:
Dim f As New MyForm
MessageBox.Show(f.ShowDialog.ToString)
But this returns always "Ok".
Why?
I need to have the correct result!
Bye
I've a little problem that I cannot resolve.
I'v a MyForm that inherits from S.W.F.Form, with MinimizeButton = False
(so I have the (Ok) button on the top-right corner).
in this form I have
Public Shadows Function ShowDialog() As DialogResult
Return MyBase.ShowDialog
End Function
So, when the (ok) is pressed I expect to have the Cancel as result.
In another place I do:
Dim f As New MyForm
MessageBox.Show(f.ShowDialog.ToString)
But this returns always "Ok".
Why?
I need to have the correct result!
Bye