winforms

Deploying a form-less Windows Forms application as an exe-file

How can you deploy a Windows Forms application to a single .exe file so that your users won't have to install your application, but just run it? ...

Adding/Editing master-children entities in a single Windows forms

How would you go about designing a windows form that allows adding/editing a master entity along with it's child entities? For example When adding/editing an Order, Order-Items would also need to be added/edited on the same Windows form. ...

Need a scrollbar to a usercontrol in window form when the form is resized

I am using a UserControl say "SearchItem" in which I am having a textbox and a listbox and a button.On click of button the listbox is populated.The Usercontrol is kept in a panel.My Question is when I am minimizing the window the usercontrol is not getting set to the size like the other controls are getting the scrollbars.I need to set ...

Uploading multiple files with VB.Net

I need to upload multiple files in a winforms application. So far I've been using a webclient and while this is working fine I'm wondering if there is a better way for doing this. Does the webclient make a new connection for every request or does the connection persists between uploads? Dim Ftpclient As New System.Net.WebClient() Ftpcli...

How to find previous active control c#

i am developing keyboard control, very simple embedded on a form. using sendkey class to perform char entry. to make this functional is required to know previous selected control. ...

Free Winforms DataGrid or ListView with Grouping Capabilities

Does anybody know a free datagrid or listview control with grouping and master/detail capabilites? ...

How to check absolute control visibility and how to be notified for changes of absolute visibility

I have several controls inside my form and I perform several changes (Text, Font, BackColor etc.) on these controls. My changes are necessary only if the controls are visible. So, I want to stop performing my changes on controls that are not visible. I want to keep changing my controls when they become visible again. I can use Control.V...

Show nested value entity in textbox on databinding (c# - winforms)

Hello, I have an entity with others entities inside. Per example, Entity A has entities B and C. So, I want to show in a text box the value of A.B.SomeProperty when I set a datasource for bindindsource. Is it possible with a workaround? tks ...

How to make a control resizable by the user at runtime [.NET Winforms]?

It is in Winforms. I have a UserControl that is anchored TOP, BOTTOM and LEFT. I would like to allow the user to drag its right border somehow and resize it horizontally. The control is placed right into the form, no panel or groupbox to place a "Splitter". Any idea how to make a control resizable at runtime by the user? ...

Embed one silverlight application into a Windows Forms Application

The title says it all. Can sombody help me? ...

No DisplayMember in CheckedListBox in WinForms .Net 3.5

What should I use instead? I've tried DataBindings.Add , but my data were not loaded I have data structure with 3 properties: ID, Name and e.g. Description. I want to load the whole data to the list, but to show only Name property. Usually I use DisplayMember for this purpose, but I here I couldn't find it. ...

How to close a form and open a new form up?

Hi I am wondering how do I close a form after I open up a new form. For instance I have a login form and when they login I open a new form up but I want to close the login form down. So how would I do this? I am making these forms on windows mobile 6 compact edition. Not sure if it would be different then in windows forms. ...

Winform and Tab?

When setting up a Winform with textbox controls, and going to View Tab Order - how do you indicate when you are done setting tab order and want it to be saved? Is there any other way to set the Tab Order of the controls on the form? ...

Best Approach to Handle User Rights in Desktop Applications

Hi, I'm currently developping some desktop applications (WinForm) with a couple of screens, however i need to handle user rights. Desktop Application : Screen : Customers (GridView) (View/Edit/Create) Some users are allowed to View only Customers, but some other users are allowed to Edit/Create Customers. How can i implement...

C# Winforms DataGridView Time Column

How to show a Time-picker column in DataGridView? I don't need to pick Date. I only need time to be selected. ...

Radio menu check

Using Winform, is it possible to "radio check" a menu item? ...

how does one calculate the minimum _client_ size of a .net windows form?

Hi everyone I am trying to programmatically position certain controls within a form, based on the difference between the forms minimum size and its client size - this unfortunately produces different results depending on what theme the user has loaded (mostly the problem seems to be due to the fact that the title bar and form border hav...

How to make a form shrink to a smallest possible size?

How to make a form shrink to a smallest possible size Windows.Forms? There was a pack() method in Swing that woked well but if I make all the components and a form itself AutoSise = true I get a dot (one pixel dot) on the screen. ...

Why do buttons need to be pressed twice to work in this modal dialog?

I have this C# code: public partial class Continue : Form { public Continue(string colourName) { InitializeComponent(); lblMessage.Text = String.Format("Do you wish to change the colour to {0}", colourName); } private void btnConfirm_Click(object sender, EventArgs e) { btnConfirm.DialogResult...

Creating a Dynamic Linq filter over List<T>

Hi. Ok, I asked this question before, but deleted it as the way I went about describing my problem was wrong. Firstly, let me state that Im creating a .NET3.5 Winforms app using C# and Plinqo (Professional Linq to Objects) as my ORM. Here's my situation: I have a DataGridview that is populated from a SortableBindingList<T> - in my cas...