Board index » Visual Studio » OwnedForm....help please!

OwnedForm....help please!

Visual Studio278
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.


-
 

Re:OwnedForm....help please!

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





-

Re:OwnedForm....help please!

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?





-

Re:OwnedForm....help please!

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





-