Inheritence, disallow ShowDialog()
-
I am creating a simple form that requires additional information before being displayed. What I want to do: Override ShowDialog(owner) with ShowDialog(owner, string0, string1) As DialogResult That part is easy. What I want to do is prevent the use of ShowDialog() and ShowDialog(owner). Naturally, there are many ways to accomplish what I am trying to do, but I really want to know If I can do this. Is there a way to override these methods (or some other way) so that thay may not be called on my custom dialog? Thanks -mE
-
I am creating a simple form that requires additional information before being displayed. What I want to do: Override ShowDialog(owner) with ShowDialog(owner, string0, string1) As DialogResult That part is easy. What I want to do is prevent the use of ShowDialog() and ShowDialog(owner). Naturally, there are many ways to accomplish what I am trying to do, but I really want to know If I can do this. Is there a way to override these methods (or some other way) so that thay may not be called on my custom dialog? Thanks -mE