473,395 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

MonthCalendar background painting

Hi everyone-

I've done a lot of searching around on the web and I'm sure the answer to
this question is no, but I'll ask anyway. Is it possible to create an
inherited MonthCalendar control and override the member that paints the
background? I've tried working with OnPaint, OnPaintBackground to no avail.
Perhaps someone has a similar calendar control implementation out there?

Thanks,
Robert
Nov 16 '05 #1
2 5089
You might be able to do it by creating a WndProc and doing your painting on
the WM_ERASEBACKGROUND message.

The problem is that the MonthCalendar control is based on a Windows Common
Control which is an ActiveX component, not a .NET component.

Syncfusion has a very powerful calendar control in their suite. It will let
you change the background painting and do a lot more. I'm sure there are
others out there as well.

Pete

"Robert Misiak" <ch***********@yahoo-cut.this.part.out-.com> wrote in
message news:j1*****************@newsread1.news.pas.earthl ink.net...
Hi everyone-

I've done a lot of searching around on the web and I'm sure the answer to
this question is no, but I'll ask anyway. Is it possible to create an
inherited MonthCalendar control and override the member that paints the
background? I've tried working with OnPaint, OnPaintBackground to no avail. Perhaps someone has a similar calendar control implementation out there?

Thanks,
Robert

Nov 16 '05 #2
You might be able to do it by creating a WndProc and doing your painting on
the WM_ERASEBACKGROUND message.

The problem is that the MonthCalendar control is based on a Windows Common
Control which is an ActiveX component, not a .NET component.

Syncfusion has a very powerful calendar control in their suite. It will let
you change the background painting and do a lot more. I'm sure there are
others out there as well.

Pete

"Robert Misiak" <ch***********@yahoo-cut.this.part.out-.com> wrote in
message news:j1*****************@newsread1.news.pas.earthl ink.net...
Hi everyone-

I've done a lot of searching around on the web and I'm sure the answer to
this question is no, but I'll ask anyway. Is it possible to create an
inherited MonthCalendar control and override the member that paints the
background? I've tried working with OnPaint, OnPaintBackground to no avail. Perhaps someone has a similar calendar control implementation out there?

Thanks,
Robert

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ron Holmes | last post by:
I want to place a background image on a windows form. Is there a way to prevent the image from Tiling without using an image box resized to the size of the form? I am using Visual Studio 2003...
3
by: michael_hk | last post by:
Hi, I am new to Windows Form programming and now have a simple Q about MonthCalendar. I want to hightlight some days in the calendar by changing the background color of these days. But I...
13
by: steven | last post by:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone knows how to disable this ? The problem is that, everytime a monthcalendar checks this, the form where the monhcalendar is...
0
by: steven | last post by:
Start a new project with 2 forms: one with a datagrid, a button and a monthcalendar, and another form without controls. Try this code in your form with the monthcalendar: Private Sub...
8
by: vbmark | last post by:
I want the MonthCalendar control to return the single day selected. I have MaxSelectionCount = 1. What I get back though is this: "SelectionRange: Start: 5/5/2005 12:00:00 AM, End: 5/5/2005...
2
by: meska | last post by:
Hi all, Scenario: I have a MonthCalendar control, and DataGridView. Depending on dates displayed in MonthCalendar I want to update information from database. The Possible Solution: So I...
0
by: ramesh.nrk | last post by:
Hi, In my windows application I need to display MonthCalendar control with some selected dates. I am using the property "Bolded Dates" to add selected/some dates. But those dates are displayed in...
11
by: Randy | last post by:
I have a MonthCalendar on one of my forms. I have disovered that the DateChanged event is triggered not only when the user clicks on a new date, but also if they click on the Previous or Next...
4
by: Marina Levit | last post by:
I am trying to do some processing on a background thread while keeping the UI painting. However, this is a generic server side call routine - and it needs to block until the server side call...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.