Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15589

Show form as Modal

$
0
0
Hello,

I have a basic question: What is the importance of OwnerForm on the Sub Show?

For Example:

Imagine that you want to call a certain function in a second form.

In Form 1

Private Sub Command1_Click()
Form2.LoadModal (Me)
End Sub

In Form 2

Public Sub LoadModal (xOwner as Form)
Me.Show vbModal, xOwner 'Exactly here I could use only Me.Show vbModal?
End Sub

Regards

Viewing all articles
Browse latest Browse all 15589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>