winforms

Create a CD/DVD ISO Image in .NET Winform

Good Morning, I'm searching for a library (or codebase) which will allow the creation of an ISO image from a CD/DVD with the .NET platform. Does the .NET framework itself support the creation of ISO images? I appreciate any advice. ...

Disable default shortcuts on a TabControl

Ctrl + PageUp/PageDown and Ctrl + Tab are default shortcuts for the TabControl. They help in moving between adjacent tabs. I would like Ctrl + PageX behaviour to work only for the Outer Tabs (tab1, tab2) and Ctrl + Tab behaviour for the Inner Tabs (tab3, tab4) when my focus is in the control (textbox here). For this I need to disable t...

how to get the handle of listbox in vb.net 2005

Hi, How to get the handle of a ListBox control in VB.NET 2005? I am using Dim i_Handle As ListBox i_Handle = ListBox1.Handle But this is not working ...

Windows Forms Deployment

Hi, I'm writing a windows forms application to be sold to small to mid-size corporations and be used by users on a LAN. To make it easier for network administrators, I'm thinking of using .Net 3.5 SP1 and have the app running from a network share. This way, client installation is minimal (I know they must have .Net 3.5 SP1 installed). ...

Mono Winforms application in Linux: some text is not displayed

In general, I have been having difficulties porting my .NET Windows Forms applications created in Visual Studio 2008 to Mono/Linux. The problem is that sometimes, some types of text do not get displayed; where I expect to see text there is just emptiness or illegible marks. On one Ubuntu machine, all the text was displayed correctly ex...

Setting the correct codepage for a database read operation

How can I change the codepage I want to use on an operation such as the one below? string foo = (string)sqlCommand.ExecuteScalar(); As I understand I can wrap the method call inside a String.Format(IFormatProvider, String). That would be grand. But how do I construct a IFormatProvider with a specific codepage so I can correctly read ...

C# Error Report E-Mail - Web Service

Hey guys, I am trying to add the capability of my Windows Form application being able to send me an e-mail message when my application generates an error message. How do I setup a web service for my application? Any feedback would be greatly appreciated. ...

Suggestions for change tolerance

Background:I will be working on tools that will be dependent on a rapidly changing API and rapidly changing data model over which I will have zero control. Data model and API changes are common, the issue here is that my code must continue to work with current and all past versions (ie 100% backwords compatibility) because all will cont...

C# : Using an embedded font on a textbox

I'm embedding a font in my app as EmbeddedResource and want to use it in a textbox. AddMemoryFont help says I have to set compatible text rendering to true to use GDI+ so my font can be used, but somehow it just won't display the right font. in Program.cs I explicitly state : Application.SetCompatibleTextRenderingDefault(true); So why ...

Alternatives to SelectedIndexChanged that don't fire on form load?

I'm developing in VB.NET with Visual Studio 2005. I have a ComboBox (myCombo) on a form that gets populated within the Load method. I also have handled myCombo.SelectedIndexChanged to change a label on the form. Edit: The way I added the event handler was by double-clicking on the combo box on the designer. Skeleton code then came up...

Winform & user control - C#

I have a Form and a UserControl. The UserControl has a menu, and the form has a tabstrip (General, Food, Vitamins etc). In the UserControl, I have the following code: (Form name is frmForm, the tab names in the form are tabGeneral,tabFood, tabVitamins) frmForm fm=new frmForm(); fm.tabMain.Selected=tabVitamins; I call these line f...

GDI error using a GridViewImageColumn in a Telerik RadGridView with an animated gif

I have a Telerik.WinControls.UI.RadGridView that has a GridViewImageColumn. I use this column to load graphic data from SQL. When that graphic happens to be an animated gif, I get a GDI error, a giant red X on my grid and then it ultimately locks up and I have to close the app. Knowing very little about GDI, I'm unable to determine why ...

Opinion on UI of iPhone/iPod touch Theme builder

I am developing an iPhone/iPod touch theme builder on Windows/Mac/Linux. I am asking you, the people of StackOverflow, on how the UI should be designed. I was thinking a PictureBox on the left which pictures can be dragged into and resized automatically. Then on the top right, a TreeView with folders and files like: UISounds, UIImages, B...

'.ctor' is not a valid identifier

In visual studio 2008 when open the design for a VB.Net windows form, i am getting the error " '.ctor' is not a valid identifier". I can see the form designer if I press the "Ignore and Continue" link. All other forms are loading fine. The callstack with the error message: at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom....

Mantain a control position fixed when scrolling a panel

Hello. I have a label label1 in the middle left of a large custom panel panel2 that is scrolled in a parent panel panel1. I would keep the label1 always in the visible left middle of the panel2, even when scrolling. In the real example, my panel is a user control that generates the some labels in its left side. The panel scrolls, b...

IMessageFilter.PreFilterMessage doesn't trap Combobox Messages

I am trying to use the PreMessageFilter method to do some basic logging to try and track down a "non reproducable" error we are having in a piece of our software. I would like to be able to log when a user types text into a textbox, and when they change a selection in a combo box. I have managed to use the WM_KEYDOWN message to log whe...

Create a file extension for theme builder

I am making a theme builder for iPhone/iPod touch. Usually the folders are suffixed with .theme. For my application, could I possible make an file extension, .iTheme, and associate my application with the .iTheme extension? ...

Find a DataGridView cell

How do I find a cell with a specific content in a DataGridView? ...

Validating several textboxes on a C# windows form at the same time

Hi, I have a form with several textboxes and other controls. I'm using the errorprovider control and I wired the validating event on each textbox that I need to validate. The Validating event occurs when a control yields focus to another control. So the event occurs when you use the tab key to move away from the current control or when ...

Sharing Data Between User Controls

How do I share data between user-controls in .Net, using ADO.net datasets, without ditching the designer? A simple example: I have two separate user-controls; Control1, which contains a textbox, and Control2, which contains a label. Both the textbox and the label are bound (using the designer) to the same property in the same datase...