windows-forms-designer

textbox always putting cursor at beginning of text

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...

Which windows form control is best for presenting data in a tabular fashion?

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#. ...

Winforms: Why do events fire at design-time?

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 : ...

Weird Windows Designer Loading Exception

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...

Form designer breaks on generic abstract UserControl

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...

Determine if Form has focus in Visual Studio designer

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? ...

DVCS (or rather, any non-exclusive checkout VCS) and Windows Forms? Merge problems?

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...

custom controls with sub components ownership

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...

C# Regular Expression

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? ...

Possible to have a web style interface in a .net windows form app?

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...