I have been trying to find out how to bind data to a
System.Windows.Forms.DomainUpDown() control.
Currently I have only come up with:
private void Init()
{
List<string> list = new List<string>();
list = get4000Strings(); //4000 items
foreach (string item in list)
{
...
MVVM is most commonly used with WPF because it is perfectly suited for it. But what about Windows Forms? Is there an established and commonly used approach / design pattern like this for Windows Forms too? One that works explicitly well with Windows Forms? Is there a book or an article that describes this well? Maybe MVP or MVC based?
...
I have a datagridview that is linked to a three columns in the database, and it's only displaying them (no editing). When I run the program in debug, and exit, when I return to the form in Visual Studio, it has my three columns, plus all the columns in the table it's linked to. If I don't remove these, the next time I run the program, th...
I've created a custom control (a class that inherits from Control). When I put it on a Form I can work with it on Visual Studio IDE. It shows me an error and I don't see the form.
The error message is this: La variable 'ctrlImagen' no está declarada o no se asignó nunca.
It's a winform for a Compact Framework app.
How can I solve this...
Just a year or two ago I thought that learning WPF is the best use of my free time. Now though, I'm not so sure: seems like the number of ASP.NET jobs vs. WinForms/WPF is something like 10:1. Am I the only one noticing this, or is this really an overall trend? And should all thick-client developers drop everything and begin learning ASP....
Howdy,
I am designing a program that dynamically creates its own GUI at run time.
I am looking for a firebug like utility that allows me to move my mouse around the form to see different controls highlighted and see what their size, padding, margins, etc are set to.
Thank you,
Keith
...
I'm using Visual C# 2008 Express. I'd like to use the same icon for the application (ie, the icon shown for the .exe), and for the main form. Unfortunately, VC# doesn't seem to be very smart about this, and insists on duplicating the icon data.
There doesn't seem to be a way of selecting an "already embedded" icon for use in the form or...
I'm working on porting a large vb6 application to .NET. The current app is a desktop app that communicates with a set of local access databases. There are about 200 forms in the application and about 100 tables. The screens are mostly complex. Most show master-detail relationships, lots of rows in embedded spreadsheet and dynamically gen...
I'm working on a winforms jukebox in C#. I'd like to have a vertical progressbar for the volume control. Does anyone know how to do that?
...
listbox1.items[0].tostring();
its the command for getting the text value of item at 0th index but i have some list boxes in my form which are data bound to a sql database table.When ever i use this command it gives me (System.Data.DataRowView) as a string as output regardless of the actual text value of the listbox item at 0th index.Plz...
I have some elements in a ComboBox (WinForms with C#). I want their content to be static so that a user cannot change the values inside when the application is ran. I also do not want the user adding new values to the ComboBox
...
i Have some images in resources folder in my project but i want to change the picture box from these resource files of the project
...
I want to cache a DataGridView row between 'refreshes' i.e. between a Rows.Clear() and a Columns.Clear(). However it seems that calling the Clear() methods does not unbind the data from the DataGridView instance, An example,
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
...
The line that appears when we set the mask of a masked text box in winforms for c# does not seem attractive at all to me .I want to know if there is any way i can set the mask of
the masked text box and that line is not shown???
...
I wonder if there is already a build procedure in C# for making a combobox or list box that has names of all countries and when a country is selected another combobox is filled with the cities of that country??
Or someone can suggest me what to do!!
...
Hi,
I need a open-source/free C# tool or library that can do financial charting for a student project. It needs to be able to do a open-high-low-close chart, and be able to graph various technical indicators that I calculate, all from within a Windows form.
Any recommendations?
...
I want to have a Folder browser in my application, but I don't want to use the FolderBrowserDialog. (For several reasons, such as it's painful to use)
I want to use the standard OpenFileDialog, but modified for the directories.
As an example, µTorrent has a nice implementation of it (Preferences/Directories/Put new downloads in:). ...
I think the title covers it all. I use the control to display some basic HTML with some markups and there are maybe also links in there. What I want to do, is to force clicking on any link to get this link opened in a new IE window instead of navigating to that page in the control itself.
Any idea?
...
For a WinForms control, I'd like to move certain settings into a sub object. One of them is a custom class containing all UI Strings, the other a OpenFileDialog:
class MyControl: Control
{
// ...
private OpenFileDialog m_dlgOpen = new OpenFileDialog();
public OpenFileDialog DialogOpen
{
get { return m_dlgOpen; }
}
}
Thi...
I want to connect a binding source to a list of class objects and then objects value to a combo box can anyone suggest how to do it
public class Country
{
public string Name { get; set; }
public IList<City> Cities { get; set; }
public Country()
{
Cities = new List<City>();
}
...