03-13-2022 01:00 PM
This KB
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000004AQ2SAM&l=en-US
shows how to create a UI using the .NET MonthCalendar control.
Is there a way to determine when the control is showing months
instead of dates?
03-13-2022 05:13 PM
Here is the documentation for this class. https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.monthcalendar?view=windowsdesktop-6...
03-14-2022 08:17 AM
Wow! Why "didn't" I think about Google...
Seriously, I can't find a property/method/event that answers my question. Maybe you can Google again?
03-14-2022 08:52 AM
@MGiacomet wrote:
Wow! Why "didn't" I think about Google...
Seriously, I can't find a property/method/event that answers my question. Maybe you can Google again?
This person went out their way to insulate you from doing the Googling yourself. Be more respectful in your replies, or Google may be the only help you get.
03-14-2022 08:58 AM
@MGiacomet wrote:
Seriously, I can't find a property/method/event that answers my question. Maybe you can Google again?
That's because there is none! Maybe you can "guestimate" if it is in one mode or the other from reading a combination of properties and doing some smart interpolation between them, but the documentation on MSDN is the canonical documentation and if it isn't documented in there, it almost certainly is not present (or hidden by Microsoft for some good reason).
In any case, it is not a LabVIEW problem but a Microsoft problem that you have to take up with them if you hope for a different answer.
03-14-2022 09:14 AM
The .NET is a wrap around Win32 API.
There is a link on that page, "For more information on month calendar controls, see Month Calendar Control Reference."
You can solve the problem by sending a message (MCM_GETCURRENTVIEW) to the window.
03-15-2022 07:50 AM
Thank you very much, Zou!
03-15-2022 08:47 AM
@zou wrote:
The .NET is a wrap around Win32 API.
There is a link on that page, "For more information on month calendar controls, see Month Calendar Control Reference."
You can solve the problem by sending a message (MCM_GETCURRENTVIEW) to the window.
It seems that the .Net wrapper is pretty old. It doesn't support this and many other messages and all of them are declared to be added in Windows VISTA or newer. So the .Net wrapper seems not to have been updated since Windows XP.