winforms

How to extract innermost table from html file with the help of the html agility pack ?

I am parsing the tabular information from the html file with the help of the html agility pack. Now I can do it and it works. But when the table what I want to extract is inner most. Or I don't know at which position it is in nested tables.And there can be any number of nested tables and from that I want to extract the information o...

Exporting gridview to excel with combo,checkbox type columns + winforms

Hi, I want to export grid view data to excel file in windows forms application. I tried one solution but it fails to export combo box type column to excel. Excel file should have combo box, check box columns. Thanks.. ...

display text of label for 10 seconds

im using windows form application..using c# . i have a label that displays some text when i click a buttom. now i want the label to display its text only for 10 seconds and later it should get disabled. ...

Visual C# | Capturing data from a window in a closed-source third-party Win32 application

I'm planning on creating a C# Windows Forms app as an extension for a third-party Win32 application but I'm stumped as to how to do this right now. The farthest I've gotten is knowing it involves Win32 Hooking and that there's this open source project called EasyHook that's supposed to allow me to do this. I'd like to know how I can ge...

Override default behavior of SPACE key in .net WinForms ListView

Hello, I'd like to implement some custom behavior of Space key in a ListView. Basically I'd like to toggle selected status of the item under cursor - that should be fairly simple this.FocusedItem.Selected = !this.FocusedItem.Selected; but alas, it also does the default action, which is to select the focused item. This way I am unable...

Image control with pan and zoom ability

I am looking for a free .net winforms control which is able to display images. PictureBox isn't a solution because you have to implement all pan&zoom events yourself. The control should be able to display images like 4000x5000 pixels, have zoom and pan buttons. ...

Access Error when running windows program

I have a windows form application that uses microsoft access for the database on the backend. When I run that application I get an error that says access is not installed on the computer. I thought that if I included the reference that it will be included with what I release so the user would not have to have access installed. How...

How to make a panel behave like a modal for the form

Hi All, I have a MDI child Form which displays items that are already in the database. I use a datagridview (PostedItemsDataGrid) to display the items... I also have a Button which enables user to edit the line selected in the datagridview. There are also other controls on the form other than the two controls specified. I use a panel...

Best Data Access Model for WinForms applications

Which data-access model has the best performance and speed for a C# Winforms application? Dataset? NHibernate? Entity Framework? Why would people say not to use Datasets ? ...

Quick question : how to set a text box for inputing password in winforms?

how to set a text box for inputing password in winforms? Also I want to show "Capslock is ON" popup if capslock is on. I want something like <input type="password" /> in HTML. ...

Cancelling ListBox SelectedIndexChange Event

Is it possible to cancel the SelectedIndexChange event for a listbox on a winforms application? This seems like such a logical thing to have that I must be overlooking some easy feature. Basically, I have been popping up a message box asking if the user really wants to move to another item, as this will change the UI and I don't want t...

Adding a custom installer window .msi .net wut

I don't know a great deal about the .msi thing with .NET but can I add a custom window to the process that saves the results of the WPF window or winform to the install folder as a .xml file etc.? ...

How do I capture a WinForm window to a bitmap without the caret

I've got window on a WinForm that I want to get the bitmap representation of. For this, I use the following code (where codeEditor is the control I want a bitmap representation of): public Bitmap GetBitmap( ) { IntPtr srcDC = NativeMethods.GetDC( codeEditor.Handle ) ; var bitmap = new Bitmap( codeEditor.Width, co...

Upload/download files securly, winforms c# and asp.net

From a winforms application, I need to upload & download files to an asp.net web server using http/https. only need to send/receive one file at a time cannot use ftp, must use http/https need progress bar upload & download must be username/password authenticated Is there an easy way to do this? ...

Programming tips for writing document editors?

I'm asking this because I'm in the process of writing two such editors for my Mega Man engine, one a tileset editor, and another a level editor. When I say document editor, I mean the superset application type for things like image editors and text editors. All of these share things like toolbars, menu options, and in the case of image ...

Sort a data grid based on a specified column.

Developed a winform project using VB 2008. I'm using a .xls sheet as source. My appln has 7 columns and unspecified rows. I want to sort all the columns based on a specified column and allot a serial number as per the sorted order. If two items in the specified column are same we should consider another column for the equal items and sor...

Winform custom control in WPF

Hi, I'm inserting a custom winform control in a WPF/ XAML window, however i'm realising that the sizing seems to be very different, what i designed in winform to be 730pixels wide for instance, when placed via a WindowsFormsHost, in a container 730pixels (or at least i think they're pixels..) wide, the control looks much larger and doesn...

Getting error while opening form in visual studio 2005

i am getting below excetion on opening a form on visual studio work bench Its not always but sometime it opens without any problem Does anyone has a solution for this? The path is not of a legal form. Hide at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.NormalizePath(String path, Boolean ful...

Winforms - what's a cool taskbar/system tray notifier approach?

Hi What's a cool taskbar/system tray notifier approach? To get that latest cool looking sliding windows type notifications can I stay WinForms, or do I need to go WFP? Which control/class/framework should I look at? Basically after a more fresher:modern looking UI than the old winforms popular bubbles etc ...

Shortcut keys for menu items (alt + letter). Is there any convention for namings ?

Is there any official/unofficial/informal convention for alt+key namings ? maybe, Microsoft have some internal document for that thing. Different menu levels and so on ... http://img256.imageshack.us/img256/2426/shortcutl.jpg ...