Modify or set ArcGIS Pro statusbar text using c#

1143
4
03-28-2019 02:59 AM
DharmaRajan
Occasional Contributor

Hi All,

By using C#, I want to access the statusbar of MapWindow in ArcGIS Pro i.e. need to display the customized/user value(text) in the existing status bar. How to update the statusbar by using C#? Kindly suggest.

0 Kudos
4 Replies
MatthewDriscoll
MVP Alum
var progDlg = new ProgressDialog("YOUR MESSAGE HERE", "Cancel");
progDlg.Show();

var progSrc = new CancelableProgressorSource(progDlg);‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
0 Kudos
DharmaRajan
Occasional Contributor

Thanks Matthew for the  quick response.

I had tested the code and it is executing without errors. But I cann't able to find the output/result as ArcGIS-Pro environment is new for me(I mean where to find the progress dialog inside the ArcGIS-Pro window).

Could you please send me a simple screenshot which represents the output? 

0 Kudos
MatthewDriscoll
MVP Alum

It will show up in the middle of your screen.  Message boxes will not display if you started the application within Visual Studio.  Run the add-in directly from a native Pro startup.

DharmaRajan
Occasional Contributor

Yes. Now I can able to see the output(by executing the add-in directly). But I want the text to be displayed at the bottom of map window.Status text. Similar to the X,Y Co-Ordinates.

0 Kudos