I've got a PropertyGrid that reflects properties of my class.
I am watching the PropertyValueChanged event and notice that PropertyValueChangedEventArgs provides the GridItem that was changed.
That GridItem has a Tag property that I can get. I don't see how to set the Tag property of a GridItem to a value.
How can I set the Tag proper...
Duplicate:
WPF vs WinForms or Rich UI vs Stable Applications? What do you think about the future of the Windows Forms platform?
When is Winforms the correct choice vs. WPF?
WPF versus Winforms
Advantage of WPF app vs Winform for business apps?
WPF, Winforms, or something else?
What are the pros and cons of WPF compa...
I am trying to do some custom drawing in the row headers in a PivotGridControl in version 9.1. In version 8.2 I could use CreateDrillDownDataSource on the FieldCellViewInfo property on the event for the custom draw. In 9.1 this method does not exist.
The code I was using in 8.2 looks like this. Called from the CustomDrawFieldValue e...
Edit
Based on suggestions below to send the logic code GUI delegates, I came up with code like this:
Action ClearFunction = new Action(()=>Invoke(new Action(delegate() { ResultsBox.Clear(); } ) ));
Is it possible to shorten this?
Here is part of my C# windows forms program.
When I started converting the code to use another thread...
I have windows forms (.net 2.0) control that contains a splicontainer inside.
Splitcontainer, as usually, contains 2 panels (standard thing). The Autoscroll is set to true.
I've been struggling for quite a time to achieve something like synchronizing those two panels, so scrolling one of these will scroll the second one also. I achieved...
Here is the major jist of what i want this to do.
I have created two button in my Form Initializer As shown Below
public Form1()
{
InitializeComponent();
Button b1 = new Button();
b1.Parent = this;
b1.Name = "btnA";
b1.Text = "Button A";
b1.Click += new EventHandler(button_Click)...
I'm trying to make a button which displays an image and is active only where that image is at least partially opaque. How do I take the Image and get a Region that I can set on the button?
...
We're experiencing several cases where on loading up a project that was otherwise OK, gives an error in the Winforms designer along the lines of:
Could not load file or assembly 'MyLibrary, Version=1.4.3419.14461, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
And Visual Stu...
I am implementing a Fuzzy Date control in C# for a winforms application. The Fuzzy Date should be able to take fuzzy values like
Last June
2 Hours ago
2 Months ago
Last week
Yesterday
Last year
and the like
Are there any sample implementations of "Fuzzy" Date Time Pickers?
Any ideas to implement such a control would be appreciat...
Hi,
I would like log user actions in winforms applications. The "user actions" mean "click to menu item/button", "move/maximize/minimize/close form", "keydown/up", etc...
The log should contains time, action type (click/keydown/etc...), target (name/text of control).
I have access to source code of target application, but I would like...
Hi
I have a combobox that is bound to a datasource. I want to dynamically add items to the combo box based on certain conditions. So, what I've done is add the options to a new list, and then change the datasource of the combobox like so:
cbo.DataSource = null;
cbo.DataSource = cbos;
cbo.DisplayMember = "Title";
cbo.ValueMember = "Valu...
Is there a control to enter the time (i.e. 9:00am) in .NET?
...
I have a form:
public partial class mdiAuthenticationForm : Form
{
public Services.Authentication.IAuthentication Authenticator { get; set;
public Services.Authentication.IAuthorization Authorizor { get; set; }
and I want to inject concrete classes for the two attributes above.
I have a type for each of them, and...
My DataGridView is being 'helpful' by automatically updating the underlying object in the data source when a cell is edited. I want to prevent this and do the updating myself (so that I can perform the update in such a way that it's registered with our custom undo manager).
I assumed that the way to do this was to handle the CellValueCh...
I am writing an application where I have a form with a panel. I have noticed that when I add another form to the panel, that the added form's keyboard shortcuts stop working.
I am using the following code :
MainMenu m = new MainMenu();
m.TopLevel = false;
m.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
m.Dock = System.Wi...
I've got a report form designer written long ago for a database project. It used a lot of winapi magic hence i was forced to rewrite some parts 'in proper way'.
Thanks to some articles from MSDN magazine (here and here) and CodeProject i was able to implement designer surface, toolbox and undo/redo engine.
Every resource i discovered ...
I have a .NET 3.5 MDI WinForms application.
I set a a child form's Icon property, and the icon shows up correctly in the top left corner of the form. I then maximize the child form and the icon is still OK.
With the child form still maximized, I open another child window, which automatically comes up maximized. This form's icon is not ...
I have a basic .net 3.5 cf application with 4+ forms. I am using a window handler class that I created to make sure that certain forms only have one instance open at a time where as other (Product Details for example) can be opened as many times as the user wants. My problem lies in the fact that when the user closes all the forms (By ...
I have a user control that has a few public properties, one is an object where I set [Browseable(false)]. When I add this control in Visual Studio's designer the generated code sets this object to null.
public class Foo : System.Windows.Forms.UserControl
{
[Browsable(false)]
public object Bar { get; set; }
[Browsable(true)]...
I have a dataset with multiple tables. One table in particular has one record in it. I am adding another record to this datatable and am using the Dataset.Copy() method to copy the entire dataset object to another instance.
Dataset2 = DirectCast(Dataset1.Copy(), dsApplication)
However, the new copy of the dataset returned from th...