Click here to Skip to main content
15,926,062 members
Home / Discussions / C#
   

C#

 
Questionconstructor fires when?? Pin
Brendan Vogt31-Jan-07 6:03
Brendan Vogt31-Jan-07 6:03 
AnswerRe: constructor fires when?? Pin
Wizard_0131-Jan-07 6:08
Wizard_0131-Jan-07 6:08 
AnswerRe: constructor fires when?? Pin
Colin Angus Mackay31-Jan-07 6:41
Colin Angus Mackay31-Jan-07 6:41 
QuestionDateTimeMonthPicker Pin
Pratik Vasant Shah31-Jan-07 5:44
Pratik Vasant Shah31-Jan-07 5:44 
AnswerRe: DateTimeMonthPicker Pin
Luc Pattyn31-Jan-07 8:11
sitebuilderLuc Pattyn31-Jan-07 8:11 
QuestionRe: DateTimeMonthPicker Pin
Pratik Vasant Shah31-Jan-07 19:27
Pratik Vasant Shah31-Jan-07 19:27 
AnswerRe: DateTimeMonthPicker Pin
Luc Pattyn1-Feb-07 1:12
sitebuilderLuc Pattyn1-Feb-07 1:12 
QuestionRe: DateTimeMonthPicker Pin
Pratik Vasant Shah1-Feb-07 2:03
Pratik Vasant Shah1-Feb-07 2:03 
Hi,

Further to your reply, please find a sample project attached
However, to bring to your notice, I dont have .Net 1.1 with SP1, In fact I have .Net 2.0.

Also, this error is reproduced only if your PC(System) Date is 31st January 2007.

Apart from that, there is a property called "CustomFormat" of datetimePicker Control which has to set to "MMMM yyy"

Since CodeProject does not have any attachment faciliy, and neither I have your email address, I am attaching the code of the ".Designer.cs" in this reply itself. Just create a new project and paste this below code in the
newly created Form of the project


Regards

Pratik Shah

Code
Code in DateTimePicker.Designer.cs
namespace DateTimePicker
{
partial class DateTimePicker
{
///
/// Required designer variable.
///

private System.ComponentModel.IContainer components = null;

///
/// Clean up any resources being used.
///

/// <param name="disposing" />true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Windows Form Designer generated code

///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.SuspendLayout();
//
// dateTimePicker1
//
this.dateTimePicker1.CustomFormat = "MMMM yyy";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(34, 12);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.ShowUpDown = true;
this.dateTimePicker1.Size = new System.Drawing.Size(105, 20);
this.dateTimePicker1.TabIndex = 0;
//
// DateTimePicker
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(176, 87);
this.Controls.Add(this.dateTimePicker1);
this.Name = "DateTimePicker";
this.Text = "Form1";
this.ResumeLayout(false);

}

#endregion

private System.Windows.Forms.DateTimePicker dateTimePicker1;
}
}
AnswerRe: DateTimeMonthPicker Pin
Luc Pattyn1-Feb-07 2:16
sitebuilderLuc Pattyn1-Feb-07 2:16 
AnswerRe: DateTimeMonthPicker Pin
Luc Pattyn1-Feb-07 5:13
sitebuilderLuc Pattyn1-Feb-07 5:13 
QuestionDrawing on a form Pin
Da_Bigg_Z31-Jan-07 5:35
Da_Bigg_Z31-Jan-07 5:35 
AnswerRe: Drawing on a form Pin
Colin Angus Mackay31-Jan-07 5:51
Colin Angus Mackay31-Jan-07 5:51 
GeneralRe: Drawing on a form Pin
Da_Bigg_Z31-Jan-07 6:01
Da_Bigg_Z31-Jan-07 6:01 
GeneralRe: Drawing on a form Pin
RugbyLeague31-Jan-07 6:14
RugbyLeague31-Jan-07 6:14 
GeneralRe: Drawing on a form Pin
Luc Pattyn31-Jan-07 8:21
sitebuilderLuc Pattyn31-Jan-07 8:21 
AnswerRe: Drawing on a form Pin
Ennis Ray Lynch, Jr.31-Jan-07 9:59
Ennis Ray Lynch, Jr.31-Jan-07 9:59 
QuestionWhich user has the file open? Pin
RugbyLeague31-Jan-07 5:01
RugbyLeague31-Jan-07 5:01 
AnswerRe: Which user has the file open? Pin
ednrgc31-Jan-07 6:49
ednrgc31-Jan-07 6:49 
GeneralRe: Which user has the file open? Pin
RugbyLeague1-Feb-07 23:47
RugbyLeague1-Feb-07 23:47 
GeneralRe: Which user has the file open? Pin
ednrgc2-Feb-07 2:29
ednrgc2-Feb-07 2:29 
QuestionSystem call in .NET Pin
BehemotCat31-Jan-07 5:00
BehemotCat31-Jan-07 5:00 
AnswerRe: System call in .NET Pin
Wizard_0131-Jan-07 6:10
Wizard_0131-Jan-07 6:10 
GeneralRe: System call in .NET Pin
BehemotCat31-Jan-07 7:36
BehemotCat31-Jan-07 7:36 
GeneralRe: System call in .NET Pin
Dan Neely31-Jan-07 8:23
Dan Neely31-Jan-07 8:23 
GeneralRe: System call in .NET Pin
Luc Pattyn31-Jan-07 8:23
sitebuilderLuc Pattyn31-Jan-07 8:23 

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.