I have a project developed in 2.0 Framework, can i use a Forum which is developed in 1.1 Framework.
Can you use source code from a .NET 1.1 project? Sure. Most of the .NET 2.0 BCL is backwards compatible, but there are breaking changes.
Can you use a .NET 1.1 compiled assembly in your .NET 2.0 project?? Most likely not, but only if the .NET 1.1 assembly MUST use the .NET 1.1 CLR. If this is the case, then no, you can't use the assembly because you cannot load two different versions of the .NET CLR into the same process.
If the .NET 1.1 assembly will work fine running under the .NET 2.0 CLR, then yes, you can use it.
But, like I said, there ARE breaking changes between .NET 1.1 and .NET 2.0 and above.
It's not in my articles, it's just a signature. Form class has a KeyDown event which receives KeyEventArgs type parameter. You can check its Control property to determine if CTRL is down or modifiers property and also examine the KeyData property.
Keydown is fired twice: once for control key and once for Enter so you can't test it in one piece of code. Instead use keydown and keyup events to toggle a boolean value which shows if CTRL key is down and for enter key and this value
I'm using System.Windows.Forms.MonthCalendar in my project. I allow the users to select multiple date (date range) in that calendar control.. One strange thing that I noticed is that there is one while line in the selection which looks really bad...
I would like to know how to remove this while line from selection...
Steps to reproduce this issue ~
1. Create one window application in VS 2005.
2. Place MonthCalender on the form
3. Run the application.
4. Press "Shift" key and click two dates (eg: 1st September, 2007 and 4th September, 2007)
Observe: There will be one white line within selection line...
I have tested this issue on Windows XP Professional.
I followed your steps and got the same result. Also using XP Pro. It does look really bad as you said. I wish I found how to get rid of it, but not yet.
I have inherited an application that needs to get start and stop dates from users also. What the original developers did was provide two calendars, one for start date the other for end date. Probably they did this because it's in VS 2003 and the old month calendar doesn't allow selecting multiple dates. That's one option, maybe not a good one, but an option.
Another option might be a control found here on Code Project written by Patrik Bohman. We use the VS 2003 version of it in that same application I referred to earlier. There is also a version for VS 2005. Here's a link.
Do you want to disable them only for your application or for whole system? If you want to do it for the whole system, then I guess you will need to install global mouse keyboard hook. There are several good articles on codeproject that describe how to do that.