Loading a form in ArcMap from a click of a button

2533
2
06-10-2016 03:57 PM
New Contributor II

I was given a form (GeoForm) in Visual Studio and I have just created a button (LoadGeo that I created in ArcMap.

I want the button to load this form in ArcMap using c# so I was wondering what do I type in between the brackets below to do this?

protected override void OnClick()

{

}

Reply
0 Kudos
2 Replies
Regular Contributor II

I am not sure I understand.

I think it should be:

MyForm f = new MyForm();

f.show();

Is this what you are looking for?

New Contributor II

yes that worked thanks Mody!

Reply
0 Kudos