unholly_plugin
asked on
Multiselecting user controls
Hey,
Im working on a project which requires my application to have a calender to which i can load
the app's information.
Since its quite a customized calendar ive created 3 custom controls: the calendar which loads month controls which in turn load the day controls.
Obviously the day control is the most sophisticated one since the information is displayed on it.
This works great and also looks quite the way i wanted.
The only functionality missing is to be able to select more than one day control at a time with the mouse, kinda how you can select more than one day in the outlook calendar, just by clicking on one day and draggin the mouse to the last day needed.
Ive never done something like this with controls and i was wondering if its possible and how can i do it if it is?
Im working with VB.NET 2.0.
Thank you very much
Im working on a project which requires my application to have a calender to which i can load
the app's information.
Since its quite a customized calendar ive created 3 custom controls: the calendar which loads month controls which in turn load the day controls.
Obviously the day control is the most sophisticated one since the information is displayed on it.
This works great and also looks quite the way i wanted.
The only functionality missing is to be able to select more than one day control at a time with the mouse, kinda how you can select more than one day in the outlook calendar, just by clicking on one day and draggin the mouse to the last day needed.
Ive never done something like this with controls and i was wondering if its possible and how can i do it if it is?
Im working with VB.NET 2.0.
Thank you very much
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No problem.
Let me know if you need help applying the concept to your code.
This is a "grey area" of OOP...it's not obvious how to do this at first as the process is started at a "low level" in the DayControl but has to invovle a "higher control" to achieve the end result.
In my example, the "source" DayControl has no idea what other DayControls have been affected by it...
Let me know if you need help applying the concept to your code.
This is a "grey area" of OOP...it's not obvious how to do this at first as the process is started at a "low level" in the DayControl but has to invovle a "higher control" to achieve the end result.
In my example, the "source" DayControl has no idea what other DayControls have been affected by it...
ASKER
Of course,
I also believe that this is the way it should be done.
From the application point of view, the Calendar control is the entry point to all the functionality.
of course the day and month controls need to provide information and specific functionality of their
own but its the Calendar object that needs to tie it all together.
I also believe that this is the way it should be done.
From the application point of view, the Calendar control is the entry point to all the functionality.
of course the day and month controls need to provide information and specific functionality of their
own but its the Calendar object that needs to tie it all together.
ASKER
I havent had a chance yet to really dive into your example code
but loading it in a project it looked just like what i needed.
Of course ill need to make some changes to fit it into my code
but i think you really nailed it! :)
Thanks again.
Yoav.