Loading a form in ArcMap from a click of a button

2720
2
06-10-2016 03:57 PM
jameljoseph
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()

{

}

0 Kudos
2 Replies
ModyBuchbinder
Esri Regular Contributor

I am not sure I understand.

I think it should be:

MyForm f = new MyForm();

f.show();

Is this what you are looking for?

jameljoseph
New Contributor II

yes that worked thanks Mody!

0 Kudos