Opening a popup window from an infopath form

D

dsen.25

Hi,

How can can i open a popup window when I click
a button from infopath form and also i have to pass a parameter to
that popup window.

I tried in follwoing way.but i dont know how to pass parameter.

MyForm form;


try {
form = new MyForm();
form.Show();

}


finally {
form.Hide();


}

Can any body help me.
Thanks.
 
W

wandasoozq

I have the same problem! I need to open a new form, passing a parameter
value to it. All of the documentation is unclear about how best to do this.
It seems like such a common thing, you would think it would be crystal-clear.

Thanks for asking this question!

wandasoozq
 
S

S.Y.M. Wong-A-Ton

If you created your own Form class, you can add a get/set property to it so
that you can set this property before opening the form, like in

form = new MyForm();
form.myProperty = Value;
form.Show();

If you want to do it quick and dirty, you can also use a public member
variable within your Form class.
 

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

Top