Click here to Skip to main content
15,889,315 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compiler Error CS0103 Help? Pin
Raymundo Valdez17-Apr-09 20:15
Raymundo Valdez17-Apr-09 20:15 
QuestionCrystal reports with C#, Displays a error message. Pin
Member 395385617-Apr-09 13:02
Member 395385617-Apr-09 13:02 
AnswerRe: Crystal reports with C#, Displays a error message. Pin
Member 395385618-Apr-09 10:10
Member 395385618-Apr-09 10:10 
QuestionHow to display relational data between more than two tables. Pin
hdv21217-Apr-09 12:27
hdv21217-Apr-09 12:27 
QuestionHow to convert PDF file to simple Text file ? Pin
Yanshof17-Apr-09 10:15
Yanshof17-Apr-09 10:15 
AnswerRe: How to convert PDF file to simple Text file ? Pin
Henry Minute17-Apr-09 22:00
Henry Minute17-Apr-09 22:00 
QuestionEvent and EventArg data propagation though nested UserControls Pin
hain17-Apr-09 10:07
hain17-Apr-09 10:07 
AnswerRe: Event and EventArg data propagation though nested UserControls Pin
Luc Pattyn17-Apr-09 10:19
sitebuilderLuc Pattyn17-Apr-09 10:19 
Hi,

if your YearCal holds say 12 MonthCals (lets hope it instantiates them by code, not by Visual Designer manipulations), then yes the proper way would be for it to subscribe to each MonthCal's Changed event and act upon it.

It seems like you are creating almost 400 controls to represent one year's worth of calendar.
That is a lot of stuff, and it is bound to paint rather slow, and react sluggish to all kinds of events (Form minimize/maximize/restore, repaints when uncovered, etc). I would recommend a more lightweight approach using maybe only one Control where you do all the painting explicitly, and the keyboard/mouse interaction by explicit code. It will probably result in less code (more hand-written code though) and far better performance.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


AnswerRe: Event and EventArg data propagation though nested UserControls Pin
DaveyM6917-Apr-09 11:56
professionalDaveyM6917-Apr-09 11:56 
QuestionDatabase in C# Pin
linto_1117-Apr-09 9:51
linto_1117-Apr-09 9:51 
AnswerRe: Database in C# Pin
Eddy Vluggen18-Apr-09 0:01
professionalEddy Vluggen18-Apr-09 0:01 
Questionbicturebox Pin
abu anas alazuneh17-Apr-09 9:40
abu anas alazuneh17-Apr-09 9:40 
AnswerRe: bicturebox Pin
Luc Pattyn17-Apr-09 9:43
sitebuilderLuc Pattyn17-Apr-09 9:43 
GeneralRe: bicturebox Pin
ammar_shaker17-Apr-09 23:00
ammar_shaker17-Apr-09 23:00 
GeneralRe: bicturebox Pin
Eddy Vluggen18-Apr-09 0:04
professionalEddy Vluggen18-Apr-09 0:04 
QuestionInsert into child table in nhibernate 2.1.0 Pin
highjo17-Apr-09 9:22
highjo17-Apr-09 9:22 
QuestionRegistry Entry made with advapi32.dll instead of .NET Pin
JimDel17-Apr-09 8:25
JimDel17-Apr-09 8:25 
AnswerRe: Registry Entry made with advapi32.dll instead of .NET Pin
Luc Pattyn17-Apr-09 9:13
sitebuilderLuc Pattyn17-Apr-09 9:13 
GeneralRe: Registry Entry made with advapi32.dll instead of .NET Pin
JimDel17-Apr-09 9:32
JimDel17-Apr-09 9:32 
GeneralRe: Registry Entry made with advapi32.dll instead of .NET Pin
Luc Pattyn17-Apr-09 9:41
sitebuilderLuc Pattyn17-Apr-09 9:41 
GeneralRe: Registry Entry made with advapi32.dll instead of .NET Pin
JimDel17-Apr-09 10:41
JimDel17-Apr-09 10:41 
GeneralRe: Registry Entry made with advapi32.dll instead of .NET Pin
Luc Pattyn17-Apr-09 10:48
sitebuilderLuc Pattyn17-Apr-09 10:48 
GeneralRe: Registry Entry made with advapi32.dll instead of .NET Pin
JimDel17-Apr-09 11:00
JimDel17-Apr-09 11:00 
GeneralRe: Registry Entry made with advapi32.dll instead of .NET Pin
Luc Pattyn17-Apr-09 11:02
sitebuilderLuc Pattyn17-Apr-09 11:02 
GeneralRe: Registry Entry made with advapi32.dll instead of .NET Pin
JimDel17-Apr-09 11:41
JimDel17-Apr-09 11:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.