Hi,
I have a textbox, nothing surprising there. When the text is changed I call the change event and put everything in that text box to uppercase characters using .upper(). However, the textbox always puts the cursor to the beginning of the text box. So for example lets say you type in abc it will actually appear in the box as CBA as...
I need to present the output on the form in rows and columns. Is there a control to make that task easier? I am using visual studio 2010 and coding in C#.
...
Why are messages displayed at design-time?
My code is :
class Class1 : TextBox
{
public Class1()
{
this.Resize += new EventHandler(Class1_Resize);
}
void Class1_Resize(object sender, EventArgs e)
{
MessageBox.Show("Resize");
}
}
Pic :
...
My designer is failing to load my form because of some weird issue.
I have a BaseForm, from which all forms are inherited. This base form also implements an interface, ViewInterface (I am implementing MVP pattern).
Now if ChildForm inherits the BaseForm, the designer fails to load ChildForm. It gives the error 'failed to load type Nam...
I have a generic abstract UserControl class, SensorControl, which I want all my sensor control panels to inherit from.
The problem
When attempting to design the EthernetSensorControl (one of my inherited UserControl forms, from within Visual Studio, the following error is displayed in the form designer:
The designer could not be show...
I'm really not sure how to start on this one. I need to know if the form has focus, which I do using ContainsFocus in code. However, this does not seem to work in the designer. Any suggestion?
...
Does anyone have any experience with this?
For instance, consider Subversion, Git, or Mercurial, and a typical Windows Forms form.
Whenever someone edits the form, for instance repositions a panel to have a different parent, sometimes the form designer code generator rearranges more code than just that panel.
Does anyone have any expe...
I have a Visual Studio designer enabled control which uses a collection editor to allow the user to create and edit sub components.
For example, I have a control which offers a readonly "List" property containing a collection of bindings (themselves components with a name property and an event). The user can modify this list of binding...
I can't seem to get this to work.
I am looking for a regular expression that will validate a password. Allowable characters are a-zA-Z0-9, but the sequence must have at least 1 number and 1 capital letter.
Can this be done?
...
I'm about to develop a rich client desktop app. The last thing I want is the standard form controls, which are pretty boring, good for business apps, but boring for my target audience.
I'm proficient in web dev, so I was wondering if there was a way to use more web style custom controls in a .net app. I don't want to have to host a web...