winforms

Detecting when a row has changed in a dataset/datatable

I'm trying to add some extra logging to my C# winforms application. I have a few data bound forms that all the database stuff is managed by a binding source and some typed datasets/adapters. With this setup, it's kind of difficult to tell when something is changed, I'd have to manage each field and keep it's previous value. Is there a w...

Free Windows Forms Components Similar to jQuery UI Draggables

EDIT: So, I ended up making my own basic solution to this problem, and it can be found in my own answer to the question below. Or, here's a link. Original Post I'm doing some UI programming for a small .NET application. The application has some collections of items that need to be displayed in a grid sort of format (X columns by Y row...

Invoke after async call changes two controls

I cannot find the solution for this problem, here is the simplified example: On a windows form I have 2 text boxes (invokeText1, invokeText2) and two buttons (invokeButton1, invokeButton2). There are both button clicks: private void invokeButton1_Click(object sender, EventArgs e) { Form1.GetVersionCompleted += (object sender...

How to implement a Properties window style control/system in Windows Forms?

So what I am trying to do is to have a set UI with certain controls, and I want to have some class instance to fill in the values. For instance: Classes that can populate the UI: Sharpen, Blur, Smear, ... : FilterBase So whenever the user creates an instances of the above classes, I want to automatically fetch the values based on th...

Unable to detect right mouseclick in ComboBox

I have a ComboBox that is a simple drop down style. I wanted to open a new window when the user right clicks on an item in the list, but am having trouble getting it to detect a right click has occurred. My code: private void cmbCardList_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right && cmbCardList...

Recommendations for a WinForm interactive chart control

Hi, I'm looking for a WinForm.Net chart control that has more feature on user interactivity. A few specific thing that I have in mind: Multiple selection of the bars/bubble Drag-drop support of the bars/bubble out of the chart control Auto highlight on mouse-hover Any suggestion. Thanks ~ Eric ...

Silent failures in C#, seemingly unhandled exceptions that does not crash the program

hi, have no idea what didn't you understand here: http://stackoverflow.com/questions/1583124/what-is-the-origin-or-the-reason-or-silent-failures-closed but i'm sorry anyway. i'll try to explain it again. in a winforms app, in a form's Load event, add the following line: throw new Exception(); and run the application. it ran witho...

Non-standard UI in C#

Hey, I'm still learning C#, and I know don't know about WinForms yet but I will very soon. However I want to know how I would create an application which shows a customized notifier, like Growl on a Mac. Here's a mock up: Could anyone point me in the right direction? And I know I should learn more about C# before trying this, but I'v...

Can I use a .net control parent class to enable/disable it?

I need to write a delegate for a multi-threaded program that will enable/disable a variety of controls. It seems logical that using one handler for all controls would be the best choice, but I'm not even sure this is possible in .net and if so how to implement. ...

adding an image to the header of a .net datagridview

I just need a way to insert an image into the header of a vb.net data grid view. Is there any way to do this? ...

Trouble with WebClient.DownloadDataAsync(). Not downloading the data?

Hello, here's my code: public string[] SearchForMovie(string SearchParameter) { WebClientX.DownloadDataCompleted += new DownloadDataCompletedEventHandler(WebClientX_DownloadDataCompleted); WebClientX.DownloadDataAsync(new Uri( "http://www.imdb.com/find?s=all&q=ironman+&x=0&y=0")); stri...

Design Windows Forms

Hi all, can someone plz help where i can get start of learning windows form designing? what i mean by designing it's replace the Forms, Buttons, Etc...Like the Zune Player as example.. i'm developing using C#...Thanks you all, Amit. ...

Viewbox alternative using Winforms

Hello, I'm getting used to WPF and it's sometimes very painful to come back to Winforms development. I'm looking for some kind of alternative to the WPF Viewbox for Winforms. Do you have any idea? My major issue is that I need to update dynamically the size of the Font used in a Label control and/or a Picture control. ...

How to track "freezing" app, finding its source?

Hi, I have a server with 3 threads and a threadpool for recieved data processing. The only locks (reader and writer) Im using are for client connection lists. Sometimes the main form freezes for a second and I cannot find the problem. The form doesnt do any hard work, thats for different threads. I wanted to ask whather there is not any ...

how to make fat line evry 2 rows in DataGridView ?

hi how to make fat line evry 2 rows in DataGridView ? (evry 2 rows i want that the grid will have fat line) thank's in advance ...

Visual Studio 2008, WinForms designer type conversion

Hi Got a problem thats driving me a bit nuts here. I have a winforms project containing usercontrols, that use types from another project which is reference by add project. I have checked the references, and they are all fine, there is only one reference from the UI project to the services, and that is by adding a project reference. I c...

MaximizeBox set to false not working

Hi, I'm working with windows forms with c#. I've set a property maximizebox = false to my form. But when i click on form it is getting maximized. How can i prevent it? Note: If i set my form border style is none it is not working. In the other cases it is working fine Thanks in advance nagu ...

binding multiple tables on one form in c#.NET

please this is kind of a beginners question. I have multiple tables like 5 tables related to each other in the database. I would like to create controls on a form in c# that will bind to different tables though related and they will scroll together when I move to the next item. I am kind of confused on how to go about it. I watched this...

How to get ListViewItem under MouseCursor while dragging sth. over it

Hi SO-followers, I'm implementing drag & drop on a ListView. I already managed to get the ListViewItem under the cursor when dropping on it but I would like to get the ListViewItem under the mouse cursor while I'm dragging sth. over the ListView-Control. I would like to select the ListViewItem (selected=true) like in Windows Explorer w...

ShowDialog issue on Close

Hi, I am sometimes seeing an issue with Window.ShowDialog() where the window physically closes but does not return to the ShowDialog point in the code from where it was shown. I have the following: try { log.Debug("Showing new dialog window."); result = dialogWindow.ShowDialog(); log.Debug("Closing new dialog window."); }...