Skip to main content

All Questions

Tagged with
-1 votes
1 answer
49 views

add items in listview control from another class [duplicate]

I'm trying to add items in my listview control calling from another class. I have a form with a listview control and some buttons. When I click on one of the buttons, a usercontrol appears with ...
jan leung's user avatar
0 votes
0 answers
45 views

Why is this Windows Forms Button getting small when I run the app?

I was doing a small app to show a buddy how to do a basic UI with some buttons and stuff. Thing is, everything was going fine... until it was not. Literally. I added a new button the same way I added ...
Jay's user avatar
  • 1
0 votes
0 answers
32 views

In Winforms, Clicking Disable button, after enable event triggers

I have 2 buttons. Search and clear. Search takes some time, So cursor set as waiting cursor. While search loading time. I Disable Clear button. But i clicked disabled clear button. After search ...
Selva Kumar's user avatar
0 votes
1 answer
58 views

saving functions for a dynamically created button

I want to save the text and the individual button function created by the user during the execution of the program. To do this, I use Properties.Settings.Default and my created ButtonStringCollection ...
mifus arakiev's user avatar
0 votes
1 answer
34 views

change button color on button click in main form and remains that button color even on form that inherited main form

I have two forms. One is Main form and another one is form2 that inherited main form. I change button color on button click event on main form and want that color changed button on form2. The problem ...
Wonder Kyle's user avatar
0 votes
1 answer
54 views

How to make it fully visible of text in Winforms in Visual Studio

Issue to Fix this Words are not fully visible in the button text. How to make it fully visible to and clear to all? Words are split vertically where the background color of button which is consumed ...
LOVE TO WATCH's user avatar
0 votes
0 answers
42 views

Multiple action when click on Disabled Button [C#] [duplicate]

Let's assume I have a program that when I click a button, it performs a very important action that lasts 3 minutes. The action is to be performed only once even though the button was accidentally ...
th3r4t3l's user avatar
0 votes
0 answers
64 views

Why is my Windows Forms App freezing when a button is pressed to bring up a new form?

When a button (Make A Booking) is pressed to display the next window (MakeBooking) the application freezes and has to be manually stopped. Below is two code snippets for my first and second (to be ...
lxsus's user avatar
  • 11
0 votes
0 answers
56 views

Save Button in Button to XML

I have winforms application. There is "programmatically" done button and is Added to Controls of winform, in this button is "programmatically" done next button, and this button is ...
Jirka Kaja's user avatar
0 votes
0 answers
32 views

How to prevent a button with transparent background colour to get the background colour of the form that instantiates it

I have a button with transparent background colour. The problem is that it gets the background colour of the form that instantiates it. using System; using System.Collections.Generic; using System....
user2102327's user avatar
0 votes
1 answer
33 views

Replace MousePosition cords on dynamically created button to list Forms

Im creating a program in Win Forms c# that you can dynamically add buttons which store MousePosition.X and .Y when you release mouse Button 1. The problem is that when I have more than 1 button ...
Yordan Voyvode's user avatar
-2 votes
1 answer
35 views

button situation when switching between user controls at C#

in my program, I have 2 buttons(Start & Stop) in one of my user controls. what I want is that when Start Button is clicked Stop Button should be enabled and the Start button should be disabled. ...
shayan ghezelbash's user avatar
-1 votes
1 answer
161 views

Button with rounded corners

Is it possible to program a rectangular button with rounded corners in C# version 7.3? I tried this: public class RoundCorneredButton : Button { protected override void OnPaint(PaintEventArgs e) ...
user2102327's user avatar
0 votes
0 answers
41 views

Highlight a button in Windows Forms

When i press a button, i start the code with Form disabling and end it with Form enabling. Meanwhile the pressed button appears highligthed. That button executes in sequence the functions of the ...
António Pragana's user avatar
1 vote
2 answers
186 views

Loading multiple Groupboxes in the form using the button_click event

I wish to load multiple groupboxes in the windows form application using a button_click event. A groupbox should appear in the form each time the button is clicked. Expected output. I am having ...
Paras's user avatar
  • 15

15 30 50 per page
1
2 3 4 5
54