I have a problem with windows combobox when the style is dropdown.the combox contains two values - "hello" and "Hi". I want to show the default value for my windows combobox is "Hello" when the page gets loaded. Now when the style is DropDown it selects the whole text("hello"), which creates confusion betweem first and third control(as f...
When i add a listview to my form and in form load event i write below code , items added in the same row not in separated rows , how can i add them to separated rows
listView1.MultiSelect = true;
listView1.CheckBoxes = true;
listView1.Items.Add("Item 1");
listView1.Items.Add("Item 22");
...
I'm trying to implement some animation using winforms and gdi+, but I get a lot of tearing moving sprites inside a control.
Is there a way in managed .net to have the overriden Control.OnPaint method wait for the vertical retrace of the monitor?
...
Suppose you were writing a network-based WinForms application which is supposed to run in a "paranoid" environment due to restrictive company policies at the customer site. What kind of restrictions did such hostile environment have, and what did you do to design around them?
Some examples to begin with:
Problem: There is a very restr...
I am designing a WinForms CRUD "like" app for a large group of Nurses and Social Workers to interact with Client information.
There are many different forms(about 30ish) that they need to "possiblly" interact with for any given client and they "can be" required to jump from one to another for a specific person.
I am strugghling wit...
Hi,
Can anyone provide a Code Snippet, Tutorial link or information on how to create a report in Microsoft Report from a List of objects?
I have the following Dog class:
namespace MyNS
{
public class Dog
{
public int Legs { get; set; }
public string Name { get; set; }
public string Breed { get; set; }
}
}
...
I'm sure I have done this before in the past, but I've been in the docs for a bit, and can't seem to find it again. I need to be able to determine at run time in my business domain what context my application is running in. So that I may do some switching with config files, and use the proper method to determine if I am running in debu...
Okay I have a large CRUD app that uses tabs with Forms embedded in them like so -->
public static void ShowFormInContainerControl(Control ctl, Form frm)
{
frm.TopLevel = false;
frm.FormBorderStyle = FormBorderStyle.None;
frm.Dock = DockStyle.Fill;
frm.Visible = true;
ctl.Controls.Add(frm);
...
I have a Merge Replication setup between a central server and 200 clients. The vast majority of the clients do not need all 5000 client records. Only the 50 or so that are assigned to them. How would I go about applying a Filter based on who's logged in?
Should I create a NEW DB that maps user names to Client Records and go down that...
Is it possible to trigger a "fake" scroll progmatically in WinForms?
The scenario:
A form with various drawings on it done with System.Drawing (and no scrollbars).
What I would like:
Progmatically tell the Form the user has scrolled by 10 pixels to the left.
The Form moves the existing drawing 10 pixels to the left.
The Form generate...
I have a Winforms application and a combobox has it's datasource set to a DataTable when the form loads. The data displays fine in the combobox.
Then after a user clicks a button I want to create a new DataTable and assign that datatable as the datasource for the combobox.
The problem is that after setting the datasource to be the ne...
How can I customize the sorting of categories in a PropertyGrid?
If I set either of the following...
propertyGrid.PropertySort = PropertySort.Categorized;
propertyGrid.PropertySort = PropertySort.CategorizedAlphabetical;
... then the categories will be alphabetized. ("Alphabetical" would seem to apply to the properties within each ca...
Hi,
I have a web page which displays some report. When I click on the link for excel, it puts all the data that is displayed on the screen into a CSV file and opens a File Download window which lets me either Open, Save or Cancel.
I want to download this file to a specified location programatically without the user seeing the File Dow...
Hi,
I'm trying to create a fairly extensive UserControl incorporating square controls into the design, and allowing resizing.
Because the design calls for squares, I need all the columns in my TableLayoutPanels to be the same width, so that the contained, docked controls are also square.
Unfortunately, the behaviour of the TableLayoutPa...
Hi,
I have a dialog with loads of control in it. Each and evey control will be populated during the loading sequence and it might take a while for it to get completely filled. Mean while, I don't wanna allow the user to click on any of the controls. In other words, I wanna disable the control from receiving the events and I don't wanna...
C#: Is there a way to make the maximum value of a NumericUpDown control unlimited instead of having to specify a specific value its the Maximum property?
...
What's the best way to go about providing a simple search capability for "business objects" in a .NET WinForms application?
By "simple search" I mean something like Vista + Windows 7's "search box" that's in the upper-right-hand corner of almost every window, that searches the contents of that window (nothing fancy, probably no "advanc...
I'm currently writing myself a little C# back up program. I'm using a standard windows form for the interface, and am calling cmd.exe as a new process, and then using XCOPY from within this new process. Every thing's working great, except for this last feature I want to add in, which is the ability to break the operation.
From a nat...
How do I publish a C++/CLI Windows Forms project for ClickOnce deployment? The properties window for C++/CLI projects does not include a "Publish" tab (like in the C# projects).
...
How can one easily iterate through all nodes in a TreeView, examine their .Checked property and then delete all checked nodes?
It seems straightforward, but you aren't supposed to modify a collection through which you are iterating, eliminating the possibility of a "foreach" loop. (The .Nodes.Remove call is modifying the collection.) ...