winforms

What is the easiest way to make tooltips behave how I want

I don't like the default ToolTip behavior. First, I don't like that, after tooltip is shown for "AutoPopDelay" miliseconds, it disappears and don't appear anymore if you move the mouse over the control again. Second, I don't like that AutoPopDelay is limited to 5000 miliseconds. I found one way to make tooltip always reappear on mouse...

How do I set the a specific row or cell in a gridview (vb 2008)

I know this will be easy, but I can't seem to find it anywhere. How do you SET the current row in a gridview? I find tons of ways to get data from it, but I what to set a current row or cell programatically. I'm using VB 2008 express. I also find lots of promising properties like Selected... but these are all read only and i can't se...

Any great opensource GUI applications wrriten in C# with winform?

Which do you recommend? Reading source code from opensource applications really helps me improve my programming skills. I have read source code from Hudson and StructureMap, and they inspired me a lot. I can't wait to see some more from WinForm applications! ...

Does user need SQL 2008 Express Installed if I deploy app with .mdf file?

I'm making a Win app on the 3.5 framework. I'd like to include a database file with the app. This would a single-user db. I looked at the 2 different types of db files I can add, the sdf and mdf. Thw sdf (compact) db is missing some functionality I need, so I prefer the mdf. The description on the mdf file "Service oriented database f...

Where or how I see the various SystemColors in the different themes?

We're designing a winforms app, and in order to match its appearance to the system theme we're trying to restrict ourselves to the colours in the SystemColors class. However, it's sometimes hard to choose appropriate colours without knowing what colour they correspond to in the different themes. I can see the palette for the current th...

Gridview column sizing in edit mode

Hi, Is it possible to specify a size for the grid view cell when it is in edit mode. The size should be in terms of letters (like we have maximum size for a text box) and not in pixels. My requirement is that user should be able to input not more than 100 characters in the cell when he is editing it. I want to avoid validating after the...

C#: What is the best way to implement a 'filter' mechanism for ListView Items?

C#: What is the best way to implement a 'filter' mechanism for ListView Items? I want to filter out some listview items from view in 'details' mode where it contains rows and columns. What would be the best option to create such a mechanism where I could rapidly remove the items in question from view, leaving the others intact, and putt...

Looking for clean WinForms MVC tutorial for C#

How to create a rich user interface Windows application, example Photo Shop. I am looking for clean MVC tutorial for WinForms with C# somewhere. (Not ASP.NET MVC.) Being new on the Windows Platform; most MSDN and internet tutorials basically puts everything into the Form class. Further Default events are handled inside of the form, ins...

ALT+ENTER Keyboard Shortcut to open Properties

I am writing a winforms application and one of the functions is to open an item's properties. I'm not able to find out how to handle this. A menu item doesn't allow to define such a keyboard shortcut and implementing the handler manually with the keyup or keypress event handlers doesn't work either. Anyone out there who knows how to do t...

Handling events for an Inherited Form

I have a base Windows Form with a control. I have declared the control to be protected so his siblings will be able to handle properties, methods and events. This form is written in c#. One of my clients is using VB.NET, and they have created a new inherited form in their project. Everything works fine ... But, When they want to handle...

.NET Winform Keyboard control

Is there a winform keyboard control out there? I am looking for a control which I can drag and drop. This is for a warehouse application which have touchscreen capability, like the ones found in the resturant applications. ...

Winforms: How to speed up Invalidate()?

I'm developing a retained mode drawing application in GDI+. The application can draw simple shapes to a canvas and perform basic editing. The math that does this is optimized to the last byte and is not an issue. I'm drawing on a panel that is using the built-in Controlstyles.DoubleBuffer. Now, my problem arises if I run my app maximize...

Upgraded Infragistics and my application is not allowing Ultrawingrid to be editable anymore

I have an application that uses the Ultra Win Grid and has a column with a check box in it. It used to be that when I clicked on the check box it would allow you to edit it but now you can't. Already checked and I am setting CellClickAction to Edit and CellActivation to allow edit. I used to be using 6.3 and upgraded to 9.1. The prob...

Docking a form on a MDI

Hi there, I am trying to dock a form onto a MDI, but when I use the following code, it just flashes itself and the form disappeared. using (frmDock formDock = new frmDock()) { formDock.MdiParent = this; formDock.Dock = DockStyle.Left; formDock.Show(); } ...

How would you improve our Unhandled Exception Handler error message?

We are three internal developers with a user count of about twenty. We've implemented unhandled exception handling in our Winforms app. It generates a ticket with the stack trace in our FogBugz (renamed internally to DevTracker) bug tracking system. The goal is to encourage the user to enter an informative bug rather than simply movin...

should edit and create forms be the same one?

In many applications the "create new record" and "edit existing record" forms are very similar or even identical. Is it a good idea to use the same code unit for these two (same winform or html page or whatever) or would it cause trouble in the long run? ...

IPC windows service windows forms

I have an IPC problem. I have created into a windows service a NamedPipeServer: serverPipe = new NamedPipeServerStream(Constants.PIPE_NAME, PipeDirection.InOut, 1, PipeTransmissionMode.Message, PipeOptions.Asynchronous); Thread thread = new Thread(new ThreadStart(pipeWork)); thread.Start(); where pipeWork is private static void pipeW...

Advice on a DB that can be uploaded to a website by a smart client for collecting survey feedback

Hello, I'm hoping you can help. I'm looking for a zero config multi-user datbase that my winforms application can easily upload to a webserver folder (together with 1 or 2 classic asp pages) and am looking for some suggestions/recommendations. The idea is that the database will be used to collect feedback entered by people filling in ...

Paint.NET style ToolWindow

Can anyone tell me how to make Paint.NET style ToolWindow(s)? Sorry I don't know if there is some kind of terminology to describe this better. Currently my ToolWindows take focus whenever I click on a control inside of the ToolWindow or the ToolWindow itself. This means that if I click on the ToolBar or the MenuBar in the main form of m...

Fading out an image with transparency in WinForms UI (.NET3.5)

The application: I am writing a little game that would teach the user to read music notes. The game play is very simple. The app displayes a note and my little daughter (target user) should hit the emulated keyboard key on the WinForm GUI matching to the note. She has 1 minute to get as many good hits a she can. Successes and failures ar...