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

Gradient in visual studio 2008 winforms

How can I make the background color of a control to be a gradient not a single fill color?Debra has a question

View Article


Struggles with using AxHost to programmatically add an ActiveX control to a...

Hello.  I'm struggling programmatically adding an ActiveX control to a form using AxHost.  One of my registered, functional ActiveX controls is throwing an InvalidOperationException in my form's...

View Article


how do I programmatically exceute a javascript or lcick a button in .net 3.5...

how do I programatically click the button described below in a webpage on .net 3.5...

View Article

Setting Network Adapter Link Speed via Script/Command

Hi Team,Is there any way to change the network adapter speed via a command line\Powershell in windows 2008 R2?Thanks,AmolRegards, Amol

View Article

inherited form problem with access to ancestor object

I have a form A:Formbform A has a custom control myUC which has internal properties and members Ican access from form A public virtual void setDisplay(){ } internal Dictionary<string,int>...

View Article


Set PrinterSettings.DefaultPageSettings.PaperSource does not seem to work...

Hi all, (thanks for any help in advance)I'm having no luck setting the paper source when sending a page to a printer in a windows form application in Visual Studio Prof. 2012 using VB.net. Here is the...

View Article

Cannot set column 'MiscText', The value violates the MaxLength limit of this...

I keep getting this error when I do an Insert (New Record) or Update via a Stored Procedure in SQL.  The datatype in SQL is VARCHAR (MAX).  I have checked the settings in the DataAdapter, and in the...

View Article

Form FormClosing event not firing if a designer created timer has been...

If I try to right-click close the minimised form application or using task manager applications tab to end the process the FormClosing event does not trigger while a timer is defined and is...

View Article


Image may be NSFW.
Clik here to view.

Control array in a TableLayoutPanel has non-intuitive indexing

When you add controls to a TableLayoutPanel they appear starting at the top left and progressing to the right then the same for the row below the top and so on. So, why is the controls array indexed in...

View Article


Generate a 'False" value in SQL for bound control that is not checked

Hello,I have a project with Data Bound Checkboxes and Radio Buttons.  They are bound to 'bit' columns in SQL.Everything has been working well except I am finding that when the checkboxes/radio buttons...

View Article

Radio Buttons in Group Boxes Getting Focus ("TabStop = false" Not Working)

In a WinForm the currently checked radio button in each group box gets focused when pressing TAB key, setting TabStop to 'false' makes no difference.[EDIT]Solution:Use the "Enter" event of the radio...

View Article

Thread error when closing a form

HiI created a program to begin working on Excel automation.The program opens a form that has two buttons:button1 opens an excel sheet and shows it.button2 just quits excel and closes the form, though...

View Article

in ms office its opening but nothung is getting se

nothing is getting selected

View Article


How to create a custom TextBox type control that can be masked and has a...

In my Winforms application, I need a custom textbox like control that can be masked and has a multi-line property.  How could I create one?Rob E.

View Article

Winform/.net caching?

Hi there,I have an application that on run builds lots of Pictureboxes which it sets an image for. This is always slow on the first run on a freshly booted machine, but subsequent runs are lightning...

View Article


Image may be NSFW.
Clik here to view.

C# checkedlist box items removal when a button is clicked

Hi,The below is a snap from c# windows form application.when i click add, it is genrated in listbox1, checkedlistbox1, checkedlistbox2.  I now select 3 item from listbox1 (which is having 10) and click...

View Article

Hey Read i need help

Hey Guys im JordoModz i create mods and stuff but im having a problem making a ico file in c# i only started using c# week ago and already made 3 tools :)so basically does anyone know how to make a ico...

View Article


Window application in usb

hii want to use my window application directly run through usb no need to insatll on client side.is it possible?yes thn how?no thn why?

View Article

Is it possible to get a AppDomain from process?

Hi,Is it possible to get a AppDomain from process.Regards, Lingaraj S.

View Article

TableLayoutPanel with Labels in all of the cells

I have a TableLayoutPanel with 3x3 cells. Each cell has a label in it. I have a click handler common to them all so I delare:Label clickLabel = sender as Label;In the properties window of the designer...

View Article
Browsing all 12583 articles
Browse latest View live


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