OwnedForm....help please!

  • Thread starter Thread starter tranky
  • Start date Start date
T

tranky

Hi....i need your help!
I'm a newbie to use ownedforms.
I create an ownedform using
Me.AddOwnedForm(newform)

newform.Show()

After that, my code go on and not stop.why? In other words, my newform is
showed correctly but i can't interact with it, because the code go on. Why?
Can you help me? But...after you help me, if i'll want interact with it what
i'll must do for handling the click on a OK button that is in the newform
form?? I'm Italian, and i don't speak english well. If you have problem to
understand me, please say me and i try to explain better that problem. thank
you.
 
Tranky,

You can use the showed form when you click on it,

However probably you want a form showed with showdialog
frm.showdialog

I hope this helps

Cor
 
yes! thank you....but second part of my thread? you can help me??
in how way i can interact with it?? if i click on OK button.....who handles
click?
 
Tranky,

do something as
dim frm as new MyDialogForm
if frm.showdialog = dialogresult.Ok then
'The Ok buton in mydialogform is clicked
End if

In the clickOKButton Event from mydialogform you set
dialogresult = dialogresult.OK
me.close

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