Page 1 of 1
Need to know the control and its method
Posted: 17 Jul 2019, 12:02
by shivajitheboss
Hi Mikhil,
I just need to know the control and its methods which are used for showing the status in file ViewerControlMainForm.cs file (viewer control demo).
Thanks,
Shiv
Re: Need to know the control and its method
Posted: 17 Jul 2019, 18:45
by support
Hello Shiv,
CADViewerControl uses the .NET
StatusBar control to display a status of the drawing (the file name, current zoom value, CAD coordinates of the point which is under a mouse cursor). The status bar control can be accessed through a
CADViewerControl.StatusBarPanel property.
Mikhail
Re: Need to know the control and its method
Posted: 17 Jul 2019, 19:44
by shivajitheboss
Thank you for your reply, Mikhail. If possible for you Could you please share the code for the same I want to implement the same thing in my code as well.
Regards,
Shiv
Re: Need to know the control and its method
Posted: 17 Jul 2019, 20:10
by support
Hello Shiv,
Please take a look at the ViewerDemo project, it uses a separate StatusBar control for displaying the status. Just open the C# code file ViewerMainForm.cs in Visual Studio and search for "stBar" using Quick Find option.
Mikhail
Re: Need to know the control and its method
Posted: 17 Jul 2019, 20:29
by shivajitheboss
Thank you for quick reply Mikhail,
I could not find anything with text "stBar" in the Viewercontrolmainform.cs file. However, I have found the control with the name "StatusBarPanelVisible", is this the correct control you were telling me about?
Regards,
Shiv
Re: Need to know the control and its method
Posted: 17 Jul 2019, 23:25
by support
shivajitheboss wrote: ↑17 Jul 2019, 20:29
I could not find anything with text "stBar" in the Viewercontrolmainform.cs file.

Please note that I talked about
ViewerMainForm.cs of
ViewerDemo project. It is another demo project which comes with CAD .NET.
shivajitheboss wrote: ↑17 Jul 2019, 20:29
However, I have found the control with the name "StatusBarPanelVisible", is this the correct control you were telling me about?
If you mean the property
public bool StatusBarPanelVisible, it determines whether the status bar panel is visible. I talked about the .NET StatusBar control.
Mikhail
Re: Need to know the control and its method
Posted: 18 Jul 2019, 19:14
by shivajitheboss
Thank you for your help, Mikhail. I am so sorry I was referring the wrong project.
Regards,
Shiv