Questions tagged as 'winforms'

1
answer

How to make text from a cell take up two rows within the same cell in Crystal Reports with C # winForms?

I am creating a report with Crystal Reports. It is working, but it has the following problem: When the content of the cell is larger than its space, some of the content does not appear. How do I pass down the part that does not appear?     
asked by 16.12.2016 / 15:02
2
answers

Do not display null value (01/01/0001) of a Datetime in a DataGridView

My DataGridView has some fields DateTime with value null (01/01/0001). How do I not display these values, leaving the field blank? Currently: HowIwouldlikeyoutostay: I'm using WindowsForm , C # and .Net Fra...
asked by 29.10.2014 / 11:04
2
answers

Rodo in the browser my WebService and gives me a strange message

When giving a View In Browser in my WebService, brought me this message. It does not look like a message that the WebService is all ok. What message is this? Service This is a Windows© Communication Foundation service. Metadata publishing fo...
asked by 15.05.2014 / 14:34
2
answers

How to clean the combobox without losing the items?

How to clean the combobox without losing the items? I try to clean the combobox in C #, but either it deletes all the options or the selected one, how do I clean without losing the items?     
asked by 27.03.2014 / 20:40
2
answers

Remove objects from memory

I have DataGridView in my project and a timer refresh of 5 seconds. I realized that the system was overloading the memory, because every time I list the previous data, they remain in memory. This is the code I use to list: Using (DBE...
asked by 03.02.2015 / 12:19
2
answers

Limit the number of characters in a textbox

I am simulating an electronic urn in C #. To limit data entry, I decided to create a "keyboard" from 0 to 9, for the insertion of the votes. However, I'm having trouble limiting the amount of characters in the textbox, even setting the maximum s...
asked by 22.09.2018 / 04:12
1
answer

How to inhibit textbox but display ID data

I would like the TextBox ID to be inhibited (I do not want to be invisible) but to display ID data that is autoincrement in the database. I'm using Visual Studio 2015 Community. Example: I register a client without putting the ID, but when...
asked by 05.02.2018 / 18:10
2
answers

Mask CURRENCY {en-us} in GridView C #

My problem is: I want to include a mask with the Brazilian currency in a GridView column. I am using CultureInfo.CurrentCulture , but when I put it to run, in GridView only the first Row appears the mask and not the others...
asked by 14.06.2018 / 18:35
1
answer

Change text from another form does not work

Follow the code below: Form2: public void ChangeLabel(string s) { labelX1.Text = s; } And inside Form1: private void button_MostrarSegundaTela_Click(object sender, EventArgs e) { if (Screen.AllScreens.Length > 1) {...
asked by 20.10.2017 / 01:27
2
answers

How to simplify code using a loop?

How can I simplify the code below using a loop, I am in doubt because of the names of the labels that are sequential, as I put something variable in FieldName1, NomeCampo2 , ..., NomeCampoX . lblNomeCampo1.Text = dt.Rows[1][0].To...
asked by 30.10.2017 / 12:18