Quantcast
Channel: Windows Forms General forum
Browsing all 12583 articles
Browse latest View live

How to create a triangular shaped textbox in winforms ?

How to create a triangular shaped textbox in winforms ? i tried out using graphics path of drawing2D it doesnt had AddTriangle as a method in graphics path so how can i acheive this ?

View Article


A generic error occurred in GDI+

Hi, I got a program which saves some pictures to an Access database. The program works fine with one picture, but gives the above error when trying to load the second and subsequent pictures to the...

View Article


Reading an excel file and putting it in a dataGridView

Hey I have this piece of code:Hey I have this piece of code, I put the dataTable that is returned in a dataGrid, Everything works fine when my data starts on the first row of the excel sheet, but when...

View Article

Setting TopMost causes paged pool kernel memory leak

We have an application that is required to keep one window top-most, even if other apps try to be top-most too. The app is .net, and sets Form.TopMost 4 times per second. This causes a leak in the...

View Article

link label and pictures

hello i am trying to get a picture to display when the user clicks on a link label to use as a reference for what they need. don't know if its clear what i'm looking for but it would be saying "please...

View Article


ComboBox exception - Index 0 does not have a value

I  am getting an exception on this line of code       object current = comboBoxFunction.SelectedValue;The runtime exception is Index 0 does not have a value.   at...

View Article

Window Installer Quick launch, Desktop Shortcut, Start Menu shortcut

Hi, I need help on to create windows installer which will allow user to choose for shortcuts(Desktop,Quick launch), currently i am able to create shortcut for Desktop, cant for quick launch. And if i...

View Article

Problems with WinForm an screen resolution

Hello everyone.  I have a form that is 300 x 734 and docks on the right side of the screen.  It works fine on Windows XP, Vista, and 7.  I just upgraded to a Windows 8 machine with a higher screen...

View Article


Como hacer instalador de WindowsForm en Visual Studio con base de datos en MySQL

Hola amigos la verdad soy algo nuevo en esto y por primera vez quiero hacer un instalador de un programa que genere en Visual Studio 2010, mi problema no es hacer el instaldor, si no el problema es que...

View Article


Acessing a Listview Created in Runtime by a button also created in runtime?

Sorry, I am very very new to c#.  I've only been using it for 12 or so hours...Basically, I use a button to create a listview called shelf1...// Create an instance of the Shelf            ListView...

View Article

printPreview landscape mode

How can I set the print Preview and print code to landscape orientation ? this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0); this.printPreviewDialog1.AutoScrollMinSize = new...

View Article

windows 8 cmd.exe and notepad.exe random frozen.

in windows 8 when open cmd.exe or notepad.exe, and let the windows stay for a long time, the cmd.exe and notepad.exe window will be all frozen, and you cannot open a new cmd.exe or notepad, and even...

View Article

user inputs validations not functioning

Hello Guys!I am validating some textboxes but the validations are not working at all: See Below the code                                    //validating office Id control private void...

View Article


Detecting external process crash using c# windows form

Hi,I am trying to develop a win form which will detect external process crash which are running in a system. These processes are being run by the win form i am developing.For an example, i want to...

View Article

Image may be NSFW.
Clik here to view.

Dispose problem

I have one crazy problem and I can't find a problem,I make a one application, on my PC (where I have installed the VS 2012) everything work perferct, but when I copy application on another PC...

View Article


Detect when Parent becomes disabled

I have a C# control (a subclass of ComboBox, if it matters) that is normally in OwnerDraw mode, but switches to Normal DrawMode when disabled.  The problem is that this switch doesn't occur when its...

View Article

how to read from mapping drive

hii need to read txt file from my network.if i try to read like this: \\198.111.222.333\MyFolder\MyFile.txt     ->   works excellentbut i have mapping to this folder Z  and when i try this:...

View Article


Windows 8 often got stuck at the log in screen.

Hi every oneI recently bought hp envy dv6 laptop with windows 8. At start windows was fluent. Than few days back I am getting a problem. Whenever I turn on my laptop or restart it. It always got stuck...

View Article

Consumir servicio WCF desde UserControl - WINFORMS

Hola a todosMe encuentro desarrollando UserControls (Proyecto WindowsControlLibrary) en WINFORMS, pero necesito que estos consuman servicios de WCF. Por ejemplo: Tengo una caja de texto donde al...

View Article

How to convert C to C++

I've written a program in win32 console application C++, the language I used is C. Now i want to convert this console working program to windows form application, i guess at least it should be written...

View Article
Browsing all 12583 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>