I am using the .NET Windows Forms Microsoft Chart Component.
My data objects would look like more evolved versions of the following class:
class DataObject {
public double ValueX {get;}
public double ValueY {get;}
public boolean IsRed {get;}
}
I have been able to bind my chart to my data by setting the Chart.dataSource p...
Is it possible to have a project containing both Winforms and WPF?
Say a WinForm project that is transformed step by step(form by form) in a WPF one, will be possible to have a Winform opening on a button, and a WPF one opening on a other button?
...
Is there is any need to pass existing (or developing) projects from WinForms to WPF?
or even Silverlight?
If the project is OK, worth it to be switched in WPF? Can Silverlight replace WPF in the future?
I am asking because there a rumors that Microsoft will abandon WinForm (maintenance and support) for WPF and Silverlight. I believe Wi...
I have a UserControl that contains other controls that I would like to be able to rearrange or resize at design time. So I have a custom designer for the UserControl that inherits from System.Windows.Forms.Design.ParentControlDesigner, and I call EnableDesignMode on the child controls from within the designer. That way, at design time,...
I have implemented drag and drop in my application, but am having some difficulty determining the type of the object being dragged. I have a base class Indicator and several classes derived from it. A dragged object could be of any of these types. The code snippet below seems inelegant and is prone to maintenance issues. Every time we ad...
Hi All
I am using ClickOnce for a C# Windows Forms application, and want to allow people to update the software by clicking an Update button, which will check the server online to see if there are any updates. I am using the following method (not exact, but same principle):
ApplicationDeployment ad = ApplicationDeployment.CurrentDeploy...
i am developing billing software using .net win application. so i need to bind combo box in grid column1, column2.
how can i do that?
...
Hi,
I have a form that I want to push behind all other windows when a certain operation runs.
Is this possible?
...
I have a program that can open multiple forms, and when there are a lot of them, they cascade when they are opened.
When a button is pressed, some code runs and the form closes
this.Visible = false;
Kill.Zombies();
this.Close();
My Kill.Zombies(); method takes a few seconds to run, so I make the form invisible before running it. The ...
I just had a conversation with my manager relating to checkin\out policies on a project I'm currently working on. Basically I tried to edit a file that was already checked out by another developer and I couldn't - I asked my manager why we couldn't edit the same class at the same time and he gave this reason for turning that functionali...
I am writing a C# WinForms application that consumes a web service using WCF. I would like to be able to display the XML request and response in the application in real-time as the calls are happening. Is this possible?
...
currently I am using a tool tip to display information when it hovers over a region on a winform. This works well and I don't have any complaints, but the boss want's to display more complex data, that would best be displayed in a grid rather than text.
Is there a way that perhaps I could embed a usercontrol or a datagridview in a tool...
All I am trying to do is to change the state of checkbox on form2, and keep the state after pression OK.
I have form1 which is my main form and it only has one Strip menu. The code for form1 is as follow:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System....
Hi,
I am trying to rotate a label through 90 degrees. At the moment I can take the text from the label and rotate that, but what I want to do is actually rotate a label of my choice, or if I were to be really flashy, lets say a button control. So using the code below, how can I modify it so that I can feed it a control and get it to r...
I am using a BindingSource in a WinForms project that edits a simple table on a SQL server. I want the "Save" icon to light up when the user tabs off a field if he has changed it. I have tried the HasChanges() method of the DataSet, but this returns false after I have made a change.
How do I tell if the user has changed something?
...
Hi all,
I'm unable to select controls in window form in VS 2008, whenever i try to select any control, the window will be selected instead. It's as though they're read-only.
Does anyone know how to solve the problem?
*I'm using DiveElement sanddock in the form, will it be the cause of the abnormality?
Thanks.
...
In a C# Windows application, I'm using a DataGridView to display all the data. I want to add a new row to the grid when the user clicks the Add New Row button. How can I accomplish this?
...
Hi,
I am new in this area. I am trying to create a news scroll bar which will scroll over a video using C# . Where will I find necessary helps, or is it even possible?
Please post your say . it's urgent...
Thanks
...
Take a look at the following. The question near the end of the code - in the "whoAmI" function...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MY_TEST_PROJECT
{
// a form class
pub...
how to set my datagridview row index value to my dataset row value?.Instead of auto generated index in .net wiforms.
Example: i am binding employee details in grid.if i select a row or a cell in the grid,It will display employee id in my text box.
so i need to set row index value as my employee id.
...