winforms

WinForms: Load localized help (chm) files

What is the best way to load a locale-specific (i.e. translated) compiled help file (.chm)? Our install will deploy them alongside the satellite assemblies containing resources. I'd like to re-use the same probing rules the .NET framework uses to load the satellite assemblies, and I'd definitely like to avoid writing my own searching alg...

visual c# form update results in flickering.

I have a .net app that I've written in c#. On some forms I frequent update the display fields. In some cases every field on the form (textboxes, labels, picturebox, etc) has its value changed. Plus the frequency of the changes could possibly be every second. However, currently there is a horrible flickering everytime the form is updated....

Good Examples of .NET Desktop Applications

I would like to evaluate .NET as a development platform for a desktop application. I am looking for good examples of .NET desktop applications used in the mainstream. The only ones I know of are: Visual Studio (The copy website form is one example.) Team Explorer UI Paint.NET Reflector Gnome Do (An app launcher for Gnome; runs on Mono)...

PowerShell: CLI or GUI - which do you need or prefer?

PowerShell v1.0 is obviously a console based administrative shell. It doesn't really require a GUI interface. If one is required, like the Exchange 2007 management GUI, it is built on top of PowerShell. You can create your own GUI using Windows Forms in a PowerShell script. My question is, "What sort of PowerShell scripts or management t...

Winforms toolbar of buttons wrapping . .

I am dynamically added a bunch of buttons to a toolbar. I want the ability to programatically make it wrap onto a second row if the number of buttons exceeds the horizontal space in the current form. I dont want users to have to click the dropdown button to view more buttons as i need to ensure that all buttons are viewable always. ar...

Windows Forms: Screen capture when running non-graphically (i.e. screensaver is active)

I've got an application that is very graphics intensive and built on DirectX and Windows Forms. It has an automation and replay framework around which is built an automated testing system. Unfortunately, when the tests run unattended during a nightly build, the display is inactive or tied up with the screensaver, and our IT security poli...

Best practice to pass information between windows.forms

What do you do to pass information between forms? Forward is straight forward (sorry) using Properties or maybe parameters in a New() or DoStuff() method, but what about sending something back when the user is done with the second form? (IE. ID of the item selected) We have used all these: Passed the calling form into the called form...

How to force C# .net app to run only one instance in Windows?

How to force C# .net app to run only one instance in Windows? ...

Vista Window Focus Problem

I have an application that manages patient demographic information. Along with this data a user can scan a picture of a patient and assign that picture to a patient. When the user clicks the scan button a separate application is opened as a dialog in order to scan the image. When running this on XP everything worked fine. The imaging app...

Devexpress Xtragrid

I want to place a combobox inside one column of a Xtragrid. I can bind the combobox to array but how do you bind the combox to the column? ...

Winform Caching

Hi, Is there a Winform caching library out there? I need to pass a few datasets aroung in a Winform Application, and probably persist to storage upon close. I've seen some samples around via Google, using System.Web. What's the recommendation and where can I get some details. I am using VS 2008 for 2.0. 3.0 Framework. Thanks ...

How to control the font DPI in .NET WinForms app

I created an app for a small business. Some of the employees in the office can not see the form correctly. The reason is they have their DPI setting set to above 96dpi. Does anybody know of a way to control this? For all of you who have experience with winforms apps, how do you control your form layout so that DPI does not affect the ...

Winforms - MVP examples

Does anyone have a good example code or test project for explaining someone MVP pattern. There are a lot of explanation links but i want to have some good example code to show others without reinventing the wheel. ...

Can a WinForms app be configured to run as "x86" without recompiling?

Can a WinForms app compiled for "Any CPU" be configured to run as "x86" on a 64-bit server without recompiling the app? Specifically, I'm looking for an app.config setting or Control Panel applet to accomplish this end. All the customer's clients are x86, but the server is x64, and we like to install the WinForms app on the server for ad...

Detecting a Process is already running in windows using C# .net

How do I detect if a process is already running under the Windows Task Manager? I'd like to get the memory and cpu usage as well. ...

Xtragrid repositorycombobox

My repositorycombobox is showing blank option on default. How do I make the option 1 of the combobox to be the default value. I want to make this repositorycombobox to act like dropdown with no edit function. But if I make it non editable the dropdown wont work. So how do I do it? ...

Simple animation using C#/Windows Forms

I need to knock out a quick animation in C#/Windows Forms for a Halloween display. Just some 2D shapes moving about on a solid background. Since this is just a quick one-off project I really don't want to install and learn an entire new set of tools for this. (DirectX dev kits, Silverlight, Flash, etc..) I also have to install this o...

DataGridView Mouse Selection

I am using a DataGridView control in a Windows Forms application. When a user holds down control to select multiple items, it works fine. Now when the user releases control and clicks (and holds down the left mouse button) to start a drag operation, the selection changes. How can I stop the selection from clearing when the user holds dow...

Phone Number Formatting, OnBlur

I have a .NET WinForms textbox for a phone number field. After allowing free-form text, I'd like to format the text as a "more readable" phone number after the user leaves the textbox. (Outlook has this feature for phone fields when you create/edit a contact) 1234567 becomes 123-4567 1234567890 becomes (123) 456-7890 (123)456.7890 bec...

Set same icon for all my Forms

Hi!, Is there any way to set the same icon to all my forms without having to change one by one? Something like when you setup GlobalAssemblyInfo for all your projects inside your solution. Thanks for your time. ...