I have a label control that is bound to a object collection like
lblUser.DataBindings.Add(new Binding("Text", UserCollection, "UserName"));
This works fine and the Username on the label. But I need to display the Username as
User Name : UserName
How do I add the static "User Name :" part in front of the bound value on the label ?
...
Hi,
I have a user control with a WPF Data Grid. I used this user control in a Windows form using Element Host.
I can bind the data to the user control using ListCollectionView but when i make updates to the datagrid the changes are not reflected back.
I set the Mode = TwoWay but no use.
Any ideas ?
Here is a sample of my code:
User...
Hi, First of all, until now, all my programming education, has been targeted to console applications, just like everyone who starts learning C and C++. (the 2 languages i know)
Now, i want to jump to the nice graphical World.
So, I am exploring Windows Forms, i have already got many headaches trying to understand the language that it u...
Hi,
I have the following Code :
public GUIWevbDav()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
try
{
//My XML Loading and other Code Here
//Trying to add Buttons here
if (DisplayNameNodes.Count > 0)
{
for (int i = 0; i < DisplayNameNodes.Cou...
Hi Everyone,
I wanted to know what the different Usability tips/tricks and best practices followed
with WinForm based application ? or which are followed as a Standard.
Can be anything like font styles/sizes/color,number of controls on form,showing processing,
error checking ,themes,layout of controls etc etc.
Any resources/links ...
Programming in C#.NET 4.0 is my latest passion, and I would like to know how to add functionality to the standard Windows.Forms Exit button (the red X in the upper right corner of the form).
I have found a way to disable the button, but since I think it compromises the user experiance, I would like to hook up some functionalities instea...
HI,
Iam trying to get value's out of a datagridview.
this datagridview is on form one.
and where i want the value's is on form two;
but i dont want to do this :
[code]form1 frm = new from1();[/code]
because that form1 already exists so i dont want to create it again
can anytone plz help me get a solution for this
thank you very muc...
Is there a way to automate GUI testing of a Windows Forms application and a web application (HTML) using free tools?
For example, Ruby + Rspec + Watir work great for web UI testing.
IronRuby + Rspec can work for winforms apps.
Does anybody know a tool that can do both, WinForms and Web?
...
I have a code:
public class Layout : UserControl
{
protected void DisplayX_DisplayClicked(object sender, DisplayEventArgs e)
{
CurrentDisplay = (CameraPanel)sender;
}
}
'Layout' is a base class for my other layouts. For example, I have a 'Layout1' derived from base class 'Layout'. Layout1 has an element Display...
I need to create a plug-in (with GUI) for an application that loads them as activeX components (the joy of legacy systems). I've done some googling, but while I can find multiple examples of how to create an activeX component for a web page I can't find any examples for the desktop equivalent.
...
What is the mask for "percentage", in a WinForms application (VB.net)?
...
I have a C# WinForm application that has a few images on it.
I can specify the image location, but what I want is for the image to go with the file after it publishes. It still displays the one specified in the image location, so if a user doesn't have access to that location, he/she won't be able to see the image.
...
How do I increase the size of a checkbox in a .Net WinForm. I tried Height and Width but it does not increases the Box size.
...
I have treeview and a context menu that is shown for every node.
One node has the selection. I move now with the mouse to another node and open the context menu with a righ-mouse-click. Now there is the problem, that the selection is still on the old new node.
How can I prevent, that the menu pops up, if the user haven't selected the no...
I'm trying to get the LAT/LON position of the mouse in a Windows Forms app using the browsercontrol and IGEPlugin.
Anyone got a clue?
...
How does one change already appended or entered lines on the RichTextBox control?
I want to programmaticly insert a Timestamp in front of each line of input. TextBox1.Lines[] does not allow changes. I attempted to set my own array to Lines[] but didn't seems to work.
One thinks this is possible.
Thanks
DJK
...
I have drawn a rectangle. It is undreneath a horizontal scroll bar on screen. Now i want to zoom the rectangle. On zooming the height of rectangle increases, the location shifts up and horizontal scroll bar moves up. How to do this? I am writing this piece of code:
rect = new Rectangle(rect.Location.X, this.Height - rect.Height,rect.Wid...
Hi,I'm trying to make a user control similar to the Windows Vista/7 breadcrumb bar used in windows explorer.
However, when I show the drop down menu for a breadcrumb with many sub items, I get a very long list that sometimes exceeds the screen size.
In the Windows Vista/7 example however, there are a maximum of 18 items displayed at a t...
I am trying to implement row moving in a DataGridView. I want to be able to select multiple rows and click on any of the selected row's cells to begin the drag operation. The problem is that the rows become deselected when I hold the mouse down on a cell. How can I prevent this from happening?
...
I've been working for a while on my Windows Forms project using Visual Studio 2008, and I decided to experiment with keyboard shortcuts. After a bit of reading, I figured I had to just write an event handler and bind it to the form's KeyDown event:
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.Alt &&...