Пофиксил изменение размеров DatePicker

This commit is contained in:
Никита Потапов 2024-11-27 20:27:55 +04:00
parent ab42ded0da
commit f08da93bb8

View File

@ -35,20 +35,22 @@
//
dateTimePicker.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
dateTimePicker.Format = DateTimePickerFormat.Short;
dateTimePicker.Location = new Point(15, 12);
dateTimePicker.Location = new Point(3, 4);
dateTimePicker.Margin = new Padding(3, 4, 3, 4);
dateTimePicker.Name = "dateTimePicker";
dateTimePicker.Size = new Size(92, 23);
dateTimePicker.Size = new Size(120, 27);
dateTimePicker.TabIndex = 0;
dateTimePicker.ValueChanged += dateTimePicker_ValueChanged;
//
// UserControlDatePicker
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
BackColor = Color.Orange;
Controls.Add(dateTimePicker);
Margin = new Padding(3, 4, 3, 4);
Name = "UserControlDatePicker";
Size = new Size(121, 50);
Size = new Size(126, 36);
ResumeLayout(false);
}