winforms

Winform DataGridView font size . .

How do i change font size on the datagridview? ...

How to eliminate flicker in Windows.Forms custom control when scrolling?

I want to create a custom control in C#. But every time I have to fully redraw my control, it flickers, even if I use double buffering (drawing to an Image first, and blitting that). How do I eliminate flicker when I have to fully redraw? ...

Krypton Controls anyone?

I found the ad on this site to Krypton controls (and here's another one! http://www.componentfactory.com) and was wondering if any of you using vs.net 05 or 08 are using them and how that's working out. If you're answering, please specify which parts you're using (free, ribbons, tabs) and which vs.net you're on, which language(s) you use...

Image Misalignment in Visual Studio application

I have a Visual Studio application with a splash screen image cut into "slices". The positions are specified in the Form Designer so they line up properly on the screen. However, the images are out of place when the application is run on the Chinese version of Windows XP. It looks as if the image slices were "exploded" apart. What's goi...

Unhandled Exception Logging for Winforms

Is there anything like elmah for Winforms? I'm looking for a standard way to process unhandled exceptions and grab a screenshot and other environment information before packaging that up for support. ...

Virtualizing treelistview?

Does anyone know of a good way to display hierarchical data with columns? It has to be virtualizing, as it must be able to handle several million records. It should also be multi-select, most treeview controls are not. Winforms preferred, but will ElementHost WPF if necessary. ...

Load a form without showing it

Short version: I want to trigger the Form_Load() event without making the form visible. This doesn't work because Show() ignores the current value of the Visible property: tasksForm.Visible = false; tasksForm.Show(); Long version: I have a WinForms application with two forms: main and tasks. The main form is always displayed. The user...

How might I display a web page in a window with a transparent background using C#?

How can I show a web page in a transparent window and have the white part of the web page also transparent. ...

How do I drag and drop files into a c# application?

I've seen this done in Borland's Turbo C++ environment, but I'm not sure how to go about it for a C# app I'm working on. Are there best practices or gotchas to look out for? ...

Is there a way to programmatically minimize a window in .NET

What I'm doing is I have a full-screen form, with no title bar, and consequently lacks the minimize/maximize/close buttons found in the upper-right hand corner. I'm wanting to replace that functionality with a keyboard short-cut and a context menu item, but I can't seem to find an event to trigger to minimize the form. ...

How to associate a file extension to the current executable in C#

I'd like to to associate a file extension to the current executable in C#. This way when the user clicks on the file afterwards in explorer, it'll run my executable with the given file as the first argument. Ideally it'd also set the icon for the given file extensions to the icon for my executable. Thanks all. ...

What is your favourite 3rd party WinForms.Net graphing tool, and why?

By graphing I mean bar charts, pie charts, line graphs, that sort of thing. I've used a couple over the years, but what is your favourite and why? One tool per answer please (to make the voting easier :o) ...

Single Form Hide on Startup

I have an application with one form in it, and on the Load mehtod i need to hide the form. The form will display itself when it has need to (think along the lines of a outlook 2003 style popup), but i cant for the life of me work out how to hide the form on load without something messy. Any suggestions? ...

Do you use the Inductive User Interface pattern in Windows Forms?

And if you do, can you give some background information on the implementation and the reasons for implementing this pattern? The pattern is described in more detail in these articles: Microsoft Inductive User Interface Guidelines IUIs and Web-Style Navigation in Windows Forms, Part 1 & Part 2 ...

Creating a custom menu in .NET WinForms

Using .NET 2.0 with WinForms, I'd like to create a custom, multi-columned menu (similiar to the word 2007 look&feel, but without the ribbon). My approach was creating a control, and using a left/right docked toolstrip, I have constructed a similar look&feel of a menu. However, there are a few shortcomings of this solution, such as the...

Disable selection of rows in a datagridview

I want to disable the selection of certain rows in a datagridview. It must be possible to remove the select property for one or more datagridview rows in a datagridview shown in a winform. The goal is that the user can't select certain rows. (depending on a condition) Thankx, ...

Integration testing with White

Has anyone got experience with the white framework? www.codeplex.com/white ? I'm thinking about using it for the next project for basic smoke tests of our windows client. I'd like some advice on articles or your own experiences. Thanks. ...

Windows Forms Test Automation

We are looking for a way to automate windows forms for acceptance testing. Our requirements are: Must be usable by non-developers (ie: people with no development environment installed) Must have a recorder Must support third-party controls Must have basic functionality (allow clicking on buttons, inputing text, validating results, accr...

How do I reference a local resource in generated HTML in WinForms WebBrowser control?

I'm using a winforms webbrowser control to display some content in a windows forms app. I'm using the DocumentText property to write the generated HTML. That part is working spectacularly. Now I want to use some images in the markup. (I also would prefer to use linked CSS and JavaScript, however, that can be worked around by just emb...

Is there an easy way to create two columns in a popup text window?

This seemed like an easy thing to do. I just wanted to pop up a text window and display two columns of data -- a description on the left side and a corresponding value displayed on the right side. I haven't worked with Forms much so I just grabbed the first control that seemed appropriate, a TextBox. I thought using tabs would be an easy...