winforms

Is anyone using .NET WinForms Suite from PureComponents?

I am looking into the PureComponents .NET Suite for a WinForms project. The controls seem to offer a lot of nice function but we are concerned about their stability. Does anyone have experience with these controls? http://www.purecomponents.com ...

how to implement a step-by-step button in c#?

I implemented an algorithm in c# and I want to make a gui for it, in my gui i want to put a button that with any click the gui shows a step forward in algorithm, so i think i need to put something like pause? statements in my code that with any click it can resume. how should i do that? or is there any other suggestion for implementing t...

DataGridViewCombo not displaying

Ok, I'm sure I am missing something obvious here but I can't figure it out. I have a DataGridView which I am specifying the columns for in code, with all but 1 set to text box cells. The final column is set to a combobox cell which again is poplulated in code: DataGridViewComboBoxColumn TransferStatusColumn = new DataGridViewCombo...

WebBrowser control and pages with AJAX makes UI unresponsive

I've got a winforms application with several WebBrowser controls (the standard MS control using IE). What happens is that the UI gets unresponsive while the WebBrowser is waiting for AJAX-calls to complete. Is there a way around this? ...

TabControl blinks if image is background

I have noticed that if I have a TabControl in a Panel that has an Image Background, when the mouse hovers over a tab it blinks and redraws. Is there a workaround to prevent this from happening? ...

Winforms reflector app

Years ago I had seen a tool that when running would allow you to click on a running Winforms application and it would reflect on whatever portion you clicked on to display properties etc of the code. (It saved some time as you could find the exact form/panel/tab etc. that a control lived in) eg. I have a Winforms app with tabs, panels, ...

How to control MFC application from another program?

I have a binary application on windows (train timetable software) which contains a lot of interresting data which I need for my project (nothing illegal, just some weird optimization algorithm). But the application has no api and the data files have undocumented binary form. So my idea is to control the application from my own code. I w...

How to handle the TextChanged event only when the user stops typing?

I have a TextBox with a TextChanged event wired up. In the end it is making a query to a SQL database, so I want to limit the number of queries. I only want to make the query if the user hasn't pressed a key in say .. 300 milliseconds or so. If for some reason the previous query is still executing, I would need to cancel that, and then i...

Stress Testing Multi-User Application?

I have an application that I'm building that has had concurrency problems in the past. This was before implementing any LINQ error handling. Now, I have some LINQ error handling added to my code, and I was wondering if you could give me tips about how to stress test the hell out of my application. It is super important that everything w...

WinForms DataGridView re-painting problem

How can I stop a DataGridView from re-painting the whole grid when a new row is added? Can this be done? ...

Double Buffering when not drawing in OnPaint(): why doesn't it work?

I'm working on a simple vector drawing app in C#/.Net. The drawing is done in a panel, but I'm not using the OnPaint() event for all of it - in fact the OnPaint() even just calls another method which actually draws everything in the document. I tried to add double buffering, but when I set DoubleBuffered to true, the flicker issue is ev...

Datagridview checkbox column only allowing me to select one check box

Hi Ok, the first column in my datagridview is a checkbox. I have 'multiselect' set to true and that does indeed work. However, a user is only allowed to check one checkbox at a time, if they select another the original unchecks itself, how do I stop that? I need a user to be able to select, say 3 out of 5 rows using the checkbox so t...

Winforms .net Datepicker does not respect 24 hour format?

I have a timepicker (datetimepicker) formatted as HH:mm - 24 hour clock. It displays as 00 to 24 and 00 to 59 and will not allow invalid values to be entered. This is exactly what I want. However, it returns values as 12 hours with AM and PM indicators. This means that when the user enters "00" it is returned as "12", and "14" is retur...

Description of exe not showing up correctly for c# winforms app

I have a Winforms exe that I create with all of the default settings. My problem is I can't get the description to show up correctly in windows explorer. When I browse to my file in windows explorer and go to file properties, in the General tab it says: Description: Product But my assemblyInfo.cs file has the following: [assembly:...

TabControl.DrawItem not firing on user painted TabControl

Hey, I've been trying to paint my own TabControl to get rid of the 3D Shadow but I am not having much success. The DrawItem event isn't firing at the moment. Do I have to shoot it myself? How do I do that? Code: namespace NCPad { public partial class NCE_TabControl : TabControl { Rectangle TabBoundary; Rectangle...

How to create a direct call between 2 objects

Hello everyone, I use C# 2.0 & WinForm for my application. My form has 2 user controls with names: UserControl1 & UserControl2. UserControl1 has a event CriteriaChanged: public event CriteriaChangedHandler CriteriaChanged; public delegate void CriteriaChangedHandler(object sender, CriteriaChangedArg e); UserControl2 has a function: ...

Why does binding my radiobuttons to application settings change their behaviour when clicked?

Possible Duplicate: Using ApplicationSettings to store Checked property for WinForms RadioButtons I have three radiobuttons in a groupbox. When they are not bound to application settings, they behave normally. After binding each of their checked properties to application settings, the following happens: I have to click an unc...

Refactor that code ... Controls.Find method

OK, I have a code (see below): void M1() { for (int i = 1; i < 10; i++) { Control[] carr = this.Controls.Find("Number" + (i - 1).ToString() + "CheckBox", true); if ((carr != null) && (carr.Leng...

Windows apps Datagridview unbound checkbox shortcut key.

Hi folks, good day! I would like to ask some help from you guys regarding on Unbound DatagridView checkbox, I want to checked/unchecked the checkbox using keyboard/shortcut key only without using my mouse. Any help are much appriciated. Thank you so much! Regards, Kurt ...

.Net Winforms navigation issue

Hi, I am facing a problem with a Winforms app. If I scroll down and then minimize the app and then maximize it, navigation goes to the top of the page. I need to fix this so that people using this app dont have to find where they were before minimizing the app. Any help or thoughts would be great. ...