Does anyone know of a good WYSIWYG editor for Windows forms. If I use a rich textbox, I need to handle pasting events, bold buttons, fonts etc, which is a nightmare.
I’m currently using the HTML control, suggested by many sites, but I have a large form, with many tabs. Since I have to load up to 8 HTML controls, loading the form takes t...
Is it possible to implement different layouting modes for a windows form without having to manual compute the alignment locations?
For example: I have a Form which should be able to displayed in two modes normal & touchscreen. Touch screen mode being the same form with larger buttons, larger fonts and should not have alignment issues.
...
I have a project where i click on an xmlnode in the treeview and its attributes get displayed in the listbox. Now my backend contains the logic to store the attributes(name and value) of that clicked xml node in an array and return it as a string to my front end class in the treev_AfterSelect. How can i do it?
...
I have a page where I have to modify variables which are strings with pairs of values and labels. I was using a datagrid object but its not sufficient for whats required ( or eventually will not anyway ).
So I have a form which is a text label and textbox, and a flowpanel, and I'm trying to programmatically add instances of this form fo...
I have an array of objects containing pairs of string labels and values, how would I put them all in a single property grid?
public class stringVariable {
public String name;
public String defaultValue;
public String value;
};
public List<stringVariable> variables = new List<stringVariable>();
...
What is people's experience in using bought-in components for ribbon-based user interfaces in DotNet (specifically c#, though I imagine the components should be language agnostic like any other DotNet beastie). We're using VS 2008.
I've looked at other similar questions on Stack Overflow, like this one, but I'm more interested in feedba...
Duplicate of how can i store the attributes of an xml node in an array of strings, you should edit the original question.
I am a newbie so I am reframing earlier asked question. I have a project where my xmldoc is created with help of XmlDocument class and then loaded with the help of xmldoc.Load() method.With the help of addnodes() met...
I have gotten a bit lazy(it's sometimes good) and started updating WinForms UI by invoking a callback without checking InvokeRequired first.
Are there a performance issues or considerations that I should be aware of?
private delegate void SetStatusEventHandler(string statusMessage);
private void SetStatus(string statusMessage)
...
Hi,
I have a listbox which is databound to a collection of objects.
I want to modify the way the items are displayed to show the user which one of these objects is the START object in my program.
I tried to do this the following way, but the listbox does not automatically update.
Invalidating the control also didn't work.
The only wa...
I have put an UltraGrid on a WinForms user control. I have tweaked some settings so I can use the grid as a read-only multi-row select table. But there's one problem: by default the first row appears to be selected.
But the Selected.Rows property is empty, and also the ActiveRow property is null.
So the row appears to be selected, but ...
How can I bind the count of a list to a label. The following code does't get updated with the list is changed:
private IList<string> list = new List<string>();
//...
label1.DataBindings.Add("Text", list.Count, "");
...
Using VS2005 and C#.
Having a button in a form and an image from a resource, the image does not have transparency.
How can I have transparency when assigning the image from the IDE ?
Thank you.
...
I have a treeView displayed on a winform.Now when i click on an xmlnode in the treeview its attributes get displayed in the listbox.Now i have divided the whole logic in UI and back end part. Now what i want that my back end class contains the method to display atrributes(name and value) of the xml node clicked and these are stored in an...
When I paste a picturebox that was copied, I get Parameter is not Valid.
The Picturebox that was copied has a valid image which displays just fine. The exception is coming from the undo engine of the surface designer.
Anyone have any idea whats going on?
...
For a brand new application, is it better to use WPF over WinForms? I used WinForms before but not much WPF. AFAIK WPF is the successor to WinForms, right?
The application is gonna host DirectX windows (not WPF 3d, but managed dx / slimdx) with lots of custom controls.
EDIT: The application is a 3d related application, editor, such as ...
I am looking for a control (or suggestions on building my own) for a .NET 2.0 (windows) app that works like the address box in the Outlook mail window (bee below)
The control basically works where each e-mail address is like an item in the text area. I don't care so much about letting the user also type into this area like you can in ...
I'm trying to stack a few lists on top of each other. But the label.size.height appears to be bigger then the label itself.
When i set the borderstyle to fixedsingle, i see the border around the text. But the height is bigger, so there comes a space between one label and the next.
I have tried to set margin and padding to 0 without res...
I have a Windows form user control that is made COM visible. Now I want to embed that control into an ATL dialog GUI.
The ATL project (unmanaged C++) shall only get the progID of the winform and dynamically create and embed it at runtime.
Is this possible and if so, how do I do it?
...
I have a simple Form such as the following:
using System;
using System.Drawing;
using System.Windows.Forms;
namespace PaintTest
{
class PaintTest : Form
{
int _counter = 0;
[STAThread]
static void Main()
{
Application.Run(new PaintTest());
}
protected override void OnPaint(PaintEvent...
I need to validate characters entered by the user in a MaskedTextBox. Which characters are valid depends on those already entered. I've tried using IsInputChar and OnKeyPress, but whether I return false in IsInputChar or set e.Handled to true in OnKeyPress, the box's text is still set to the invalid value.
How do I prevent a keypress ...