Thanks, JurkMonkey. I got it to work. As you said, the Value_Changed event must have become unlinked, somehow.
Followup question: Is there a way to change the height of a textbox control / datetimepicker control? If I try to change the property setting to say 25, it defaults back to 20...
I created a composite control - called DateBox - that inherits from UserControl. It combines a DateTimePicker control (dateTimePicker1) together with a TextBox control (textBox1). In the designer, the textbox control is overlaid on the datetimepicker control so that you see the textBox and...
I figured it out. I was trying to build a numeric text box control with the code below. After I deleted it, it worked fine!
public override bool PreProcessMessage(ref Message msg)
{
Keys thisKey = (Keys)msg.WParam.ToInt32();
bool isNumber = ((thisKey >= Keys.D0 && thisKey <= Keys.D9)...
I created a custom control that inherits from textbox in a separate project (class library) in my solution. The custom control appears in the toolbox. I added a reference in my main project to the class library project. I can drag it to a form OK, but if I click away from it to another control...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.