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

Autoscroll for usercontrol

Hello everyone,I am designing an application where I want to use a user control which should be scrollable. After several hours of internet searching and trying out different settings I consider myself...

View Article


How to Call Button1_Click(object sender, EventArgs e) from other method?

How to Call Button1_Click(object sender, EventArgs e) from other method?And can we pass values to  Button1_Click(object sender, EventArgs e) from other method.? Syed Yunus

View Article


Combo box Add items

HI Team,I am created a windows form in visual studio 2010, i have place 78 combo boxes in my form.i need add "Yes" and "NO"  to all combo boxes.can we use for loop or any other waythanks in...

View Article

Set DataGridView Column Header Allignment In Code

Hello AgainI'm trying to set the Column Header text alignment for two specific columns, using this code: dgvBooks.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter...

View Article

TextBox additional property

I have a textbox control with an additional property, I also use a base form, in the processleave I set the background color to the default which works fine, I want to format the field as well - but I...

View Article


Data between multiple forms in Visual Studio 10 and C#

I have been working on a problem related to entering data on extra forms and placing the data on the primary form. I have a program that has a primary form.  I use context menus to select a new form to...

View Article

Image may be NSFW.
Clik here to view.

AutoComplete ComboBox Selection Problem

Hi all, i m facing a problem with autocomplete combobox. When user type in the combo following error occurs, u can see in the pic When user type in the combo double list is dropped down and user cant...

View Article

What does this mean?...

E_fail :getCore()->SetFullscreenState(TRUE,NULL0)

View Article


Image may be NSFW.
Clik here to view.

A problem about create a keyword highlighted linkedlabel.

Hello!I have a bug when paint string in a winforms custom control, and I cannot fix it.the control is a custom linklabel control and highlight the keyword with a different color.there are 3 add...

View Article


Changing picture through combo box - crashing

So here is my dilema... Form1 user sorts through textboxes and combos ending up selecting a car of choice,,,,car of choice is then display in a Form2 with info and a picture in the picture box. User...

View Article

How to save the changes just before user close the form

I have a Win-form where I have a image that can be moved by the user. I want when the user done with positioning and hit the save the position of the control is saved and now whenever the again open...

View Article

What is the correct way to draw Graphics from another control into a...

I'm drawing graphics on a picturebox by passing the Graphics parameter to the method in a custom control.Basically, I draw a line on my picturebox. Then I pass the Graphics reference to the method of a...

View Article

First time rdlc is not showing data

hi,I am using rdlc report in c# windows forms i have successfully passed the parameters and filtered data on rdlc report but the problem is first time when i run the report it only shows table header...

View Article


System Tray icon does not disappear

 I have a C# application and placed its icon in the system tray. I've noticed that whenever the application crashes, the icon stays in the system tray. When I move my mouse over the system tray,...

View Article

How to create new form withing application

I want to develop a windows application within that I want to create a new form and save thatIn which I have a form and when I run that then and then at run time I want to create a new form and that...

View Article


Distane between a curve and a point

I'm making a Graph drawing tool in C#/Windows Forms, and to better distinguish parallel edges, I drew curves and circles. I saw, that GraphicsPath have a property for get “all” the points of that...

View Article

how to auto sort button in c# form

hi!how to i can auto sort button in the form?my button in form:4 rows in 4 coloumns################now app user change visible buttons:######_####_#_##(underline is=>  button.visible=false)if i want...

View Article


Spreading Controls On Custom Task Pane

I have a CTP with controls spread over the same. However, want an instructions' label control to always appear at the bottom even when the CTP spreads/contracts upon hiding/showing the ribbon. Any idea...

View Article

"if" conditional statement . How can i use "and "

if (textBox1->Text=="")and(textBox13->Text=="") { textBox2->Text="--"; textBox3->Text="--"; } How can i use and ?

View Article

WinForm Application Login Process

Hi guysI am looking to build a login process for my winform application.The process should:1. Handle user name and password based on AD user name and password2. Handle form authorization/ security...

View Article
Browsing all 12583 articles
Browse latest View live


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