What does SomeForm.ShowDialog(Me) do is Me is a UserControl

  • Thread starter Thread starter **Developer**
  • Start date Start date
D

**Developer**

What does SomeForm.ShowDialog(Me) do is Me is a UserControl.

The Help describes what happens if Me is a form but I wonder if "Window"
would be a more accurate term then "Form".

That is, will it force SomeForm to be on top of Me if Me is a control placed
on some form?

I experimented a little but didn't resolve the issue.



Thanks
 
Developer,

Me is the current class.

Because in VBNet a form as you use it instances itself in an inbuild sub
main, is your main form as well a me.

Normally it is something as this
\\\
Public Class whatever
private counter as string
Public sub New()
me.counter +=1
End sub
///

(The equivalent in C type languages is This).

I hope this helps,

Cor
 
Cor, thanks but I don't understand.
Do you mean when I do
whatever.ShowDialog
VB does what you show below?
What is the counter used for?

Thanks
 
**Developer** said:
Cor, thanks but I don't understand.
Do you mean when I do
whatever.ShowDialog
VB does what you show below?
What is the counter used for?
Just a sample class to show that it has nothing to do with a form.

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top