Need to know the control and its method

Discuss and ask questions about CAD .NET library.

Moderators: support, SDS, admin

Post Reply
shivajitheboss
Posts: 32
Joined: 20 Jun 2019, 16:40

Need to know the control and its method

Post by shivajitheboss » 17 Jul 2019, 12:02

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

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Need to know the control and its method

Post by support » 17 Jul 2019, 18:45

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

shivajitheboss
Posts: 32
Joined: 20 Jun 2019, 16:40

Re: Need to know the control and its method

Post by shivajitheboss » 17 Jul 2019, 19:44

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

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Need to know the control and its method

Post by support » 17 Jul 2019, 20:10

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

shivajitheboss
Posts: 32
Joined: 20 Jun 2019, 16:40

Re: Need to know the control and its method

Post by shivajitheboss » 17 Jul 2019, 20:29

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

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Need to know the control and its method

Post by support » 17 Jul 2019, 23:25

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

shivajitheboss
Posts: 32
Joined: 20 Jun 2019, 16:40

Re: Need to know the control and its method

Post by shivajitheboss » 18 Jul 2019, 19:14

Thank you for your help, Mikhail. I am so sorry I was referring the wrong project.

Regards,
Shiv

Post Reply