winforms

C# WinForm Controls > Forms control to cycle through records?

Hey all. To be honest, I don't prefer MS Access as a relational database management system (RDBMS). Except, in the forms view part of Access, it had move-forward/jump-to-the-end and move-backward/jump-to-the-beginning buttons at the bottom right/left (respectively). I was hoping to mimic that functionality in C# with my XML Editing F...

SubSonic and app.config in Windows Form

As it should be the file app.config in an application Windows Form so that the given access classes her they generate automatically in the build? ...

Porting a Web Application to Desktop Application

I have a web app in production that is used for typical data entry,retrieval, and reporting type functions. For reasons of mobility(field access required) I have been tasked with porting that Web App to a Desktop App. The structure of the existing app, which I did not design or code, is thus: 3 Individual Projects each with there ow...

.NET tooltip control which can be shown anywhere on a screeen

Can someone recommend me a free .NET Windows Forms tooltip control which can be displayed anywhere on the screen (not tied to a particular control). Thank you. ...

WinForms deployment

Hi, Is it possible to install a windows application in the Network Service account ?? thanks John ...

Binded DataGridView problem

I have a binded DataGridView that allows adding new rows. The problem is that a new object is automatically inserted in the binding source when the CurrentRow is the last grid row. I want that a new object to be added to the binding source only when the user starts typing in one of the last row cells. ...

How to Display the same passed variables on the crystal report using C#

Hello good people. I'm really sure that the title of my question depicts what i mean.i guess that's why i can't find that much on google.I think it needs to be explained. Basically i've manage to pass programmatically discrete values to my report successfully. Now i wanted to make use of the A4 paper format to have 2 A3 format.that means...

Copying winforms between projects in Visual Studio

What is the best way to copy or cut/past a form from one Project to another Project within a Solution in Visual Studio? Whenever I try it, using the solution explorer (drag and drop or right clicking cut and past), it only copies the underlying C# code and not the necessary 'bits and pieces' that help you visualise the form via the form...

Interrupt an active screensaver programatically?

REASON: I'm working on an emergency alert application that needs to display information on a desktop. When the client receives an alert, it pops up a window. If a screensaver is active or the monitor is in standby the alert will not be visible. I'm wondering if it's possible to wake the computer up via some sort of programatic mouse m...

C#, Windows Forms, Best/min fit window to contents

I have a form with some controls. (Actually, this is a sort of ongoing problem.) Some of the forms I have had are resizable, some are not. Regardless, when the form is displayed, it would be nice to have it appear in the "minimum" size needed. Other Windowing toolkits, such as wxWidgets (wxWindow::GetMinSize) and Qt (QWidget::minimumSize...

Creating a virtual numpad: stop form from being activated/focused.

I want to create a virtual numpad, similar to the on-screen keyboard. How do I prevent the form from ever being activated/focused, so that when I push a button on it, the SendKeys.Send call goes to the right form? I'm certain I have to use an unmanaged API for this, but besides that I'm not even sure where to begin. Thanks for any hel...

Is there a nullable datepicker that I can bind to?

I am looking for a datepicker like what microsoft provides, but it doesn't support null values, and since this is tied to a nullable field on a database that isn't acceptable. I found this one, but according to the comments at the bottom of the page it has issues with binding to a database. I also have one in my project that I inherited...

How do I draw a custom DataGridViewCell

I'm trying to manually draw cells in a DataGridView. Specifically I'd like to draw a row of CheckBoxes. Normally you can add a DataGridViewCheckBoxColumn, but as far as I'm aware, there isn't a DataGridViewCheckBoxRow. (I can't just create lots of DGVCheckBoxColumns because I'd like different cell types in different rows). I've overr...

Winforms MVP Grid Events Problem

I am trying to implement the MVP pattern for WINFORMS. Its a simple for with a button and a Grid, on button click, the grid will load, and user can fill in values into the grid. For my button click event, I have something like this: _presenter.LoadGrid(); Which is simple and straightforward. My question is, in regards to grid... I am...

How can I read a stream from a web cam already in use by flash media live encoder?

I have been working on a proof of concept for a project (winforms) in which needs to encode the live feed of the webcam to FLV using Flash Media Live encoder. I am using the command line utility of FMLE to encode the live feed to flv files. The problem is that I need to have a mechanism which will also show me the feed while it is being ...

Getting the items of a ComboBox with its DataSource filled

Consider that there is a ComboBox which is populated through its DataSource property. Each item in the ComboBox is a custom object and the ComboBox is set with a DisplayMember and ValueMember. IList<CustomItem> aItems = new List<CustomItem>(); //CustomItem has Id and Value and is filled through its constructor aItems.Add(1, "foo"); aIt...

Make listbox items have a different value than item text

Hi, I know this is a bad question, but google has failed me. I want a listbox full of items. Although, each item should have a different value. So when the user selects an item and presses a button: a method will be called which will use the value the select item has. I can not/Do not want to reveal the values to the user (e.g "Item1 ...

Is there a wiring control like the Yahoo Pipes interface for WinForms?

My application's user interface needs to be built soon and the data being represented is chainable; most components have inputs and outputs and can be freely wired together as necessary. Yahoo Pipes is the style of interface I think I need but I'm having trouble finding something suitable for WinForms. TreeGX looks interesting but it on...

Corruption of user.config

Anyone knows the reason of "random" user.config corruption? I've a WinForms app affected by this problem at my client's production line. Found the same issue on the web and a workaround but I can't figure out because it happens. ...

How do you get the ESC key to close a dialog in Winforms?

Often when using software these days, the ESC key will close a dialog without persisting any changes I've made. I like that especially because even though the dialog may have a cancel button on it, I don't necessarily want to reach for the mouse or tab over to the cancel button. It's a nice clean way of saying "Oops, didn't meant to do t...