Questions tagged as 'winforms'

2
answers

Make a combobox assume C #

I have doubts about making combobox a value. I have two combobox with the 'low, medium and high' items and I want it if I select low on the combobox it assumes the value 0, if it means medium it assumes 0.5 and if it is selected high it assum...
asked by 19.02.2015 / 13:32
2
answers

Repeat for many lines

I'm having a problem with an application I'm developing where I have a database with approximately 20 million lines. The problem is that the user wants to see all 20 million rows in a single screen, even if the scroll bar is huge, this table w...
asked by 30.03.2015 / 20:07
1
answer

Limit the number of rows in a textbox

Is it possible to limit the amount of rows in a% multiline% by using C # .NET 3.5?     
asked by 07.02.2014 / 18:47
1
answer

How to instantiate an object of this class in C #

I'm reading Caelum's handout on C # and object orientation, and I put the following code in Conta.cs : namespace Banco { class Conta { public int numero; public string nome; public double saldo; public...
asked by 13.11.2014 / 15:48
1
answer

Move image inside a picturebox with the mouse without using the scrollbar

Kindly, does anyone know how I can move an image within a pictureBox without having to click the scrollbar ? What I want is to move the image, just clicking the mouse on it so I can drag it inside pictureBox . This is the Form:...
asked by 09.04.2014 / 00:52
1
answer

Doubt - Winforms about respect on second screen

Form1 created panel with black background and label with property: AutoSize = False Dock = Fill Font size (Size) = 20 E 2 buttons for forward or backward lettering Form2 only has black form and a label with property: AutoSize =...
asked by 09.11.2017 / 23:49
1
answer

How to start a textbox with value 0 (zero)? [closed]

I have a form created with Windows Forms, and in this form I have textbox that will receive numbers. How do I make this textbox , when initializing, already filled with value 0, that is when I open the form, textbox alread...
asked by 01.09.2017 / 14:47
2
answers

Method To Receive Generic Values

Greetings. I have a method that gets 3 paraments: collection, business, quantity Collection: is a collection class that inherits from another class, eg, man, woman, senior ... Business: is a class that contains the methods that han...
asked by 09.05.2018 / 22:01
1
answer

Monitor opening of Forms C #

I need to monitor the opening of Forms inside a C # application. For example, every time you open a Form within the application, the application must either execute a method or trigger an event with open form information. I researched and found...
asked by 16.01.2017 / 13:46
1
answer

How to show error message?

I am developing a C # registry in Visual Studio and have created a method to add a new registry to the database. The method is as follows: public static bool Inserir(Usuario pUsuario) { try {...
asked by 09.12.2016 / 16:56