Questions tagged as 'winforms'

1
answer

Calling a method

Hello, I'd like to do something extremely simple, but I'm having trouble applying. I made the following class: public class nome { string aluno = "Olá, eu sou um aluno"; string aluna = "Olá, eu sou um outro aluno"; }...
asked by 19.06.2018 / 03:11
1
answer

List items other than the database in the Combobox in C # winforms

I have a C # application that performs a search. For this is used a field called 'status' that nothing else a list in a combobox. I need it to appear in addition to the statuses that come from the bank, a status called 'ALL' that does not exist...
asked by 04.07.2018 / 03:36
1
answer

C # - High memory consumption when calling method

I'm working with a main Form and it has several Panels. In one of them, the "general panel" I use to call instances of new forms and show on it using the following code from the FormCall class: public void chamaFormulario(Form form) {...
asked by 28.05.2018 / 20:49
1
answer

Doubt about Messagebox

I have a question about our famous MessageBox.Show(); , this command is about an event, method what would it be? Another question is about instantiating object, in the example below we are getting our login form and creating a variable...
asked by 29.04.2018 / 05:04
1
answer

How to add elements in Queue continuously?

Below I have a code that it needs to do the following: Create a thread, then start it. When you start the thread, according to the time (random time) the program adds a value in the queue, after being added to the queue, it needs to show how man...
asked by 01.05.2018 / 02:13
1
answer

How to use regular expression without using the Regex class?

I need to validate the input of values and strings, however I have questions about how to use without using the Regex class, how can I get the solution? var CampoExpressao = new Regex(@"[0-9]"); Above is a regular expression example code....
asked by 04.05.2018 / 02:06
1
answer

Properties LinkLabel WindownsForms

Is it possible to use the LinkLabel property to open a type of Modal to display history of a certain item that is stored in a table? Example: AndinthisFormyouwouldbringthisinformationthatissuppliedfromthe% When you click on the...
asked by 03.01.2018 / 16:34
1
answer

How to capture a key pressed in C #

I have an application with digit buttons and I want to capture the keystrokes and execute the events of those buttons. I added an event of keypress in the window and tried to capture the key typed, but I could not. Code: private void...
asked by 01.03.2018 / 18:53
1
answer

When using Boleto.NET do I need to mount the consignment file manually?

In a financial system already built by another developer, the Boleto.NET library was used to generate Itaú tickets. I would need to add Santander's ticket generation support, but I can not figure out how to use the library at all. The code of...
asked by 18.11.2017 / 17:57
2
answers

How to associate items from a List of Strings to the code name of a label in C #?

My goal is to make a gallows game. Basically my problem is this: I have a word divided into substrings for each letter of the word, all stored in a vector. For example: string[] letras = new string[numletras]; for (int i = 0; i < numle...
asked by 16.01.2018 / 16:45