Questions tagged as 'winforms'

1
answer

Execute builder of an Attribute

How do I call the constructor of an attribute before the constructor of the decorated class? For example, I have my attribute: using System; namespace T.WinForm { public class TesteAttribute : Attribute { public TesteAtt...
asked by 11.05.2016 / 02:27
1
answer

Recover network-mapped disk drive volume name

I'm using DriveInfo.GetDrivers() to get the names of the disk drives present on the machine and list them in TreeView . I've made the code below that works, but the network disk names that my machine has access to do not appear,...
asked by 21.03.2016 / 17:50
1
answer

Create panel with center at user click point

I need to create a Panel in a Form Getting more or less like this: When you click the mouse on Form create Panel taking the location of the click and create the Panel centralized. I did so: Panel...
asked by 25.11.2015 / 18:13
2
answers

Pick values from a dynamic list

I have a list of type dynamic : private List<dynamic> listServicos = new List<dynamic>(); And it's being populated like this: listServicos.Add(new { Codigo = txtCodServico.Text, Servico = txtNomeServico.Text, Quantidade...
asked by 28.12.2015 / 16:37
3
answers

COMBOBOX dynamically in C # (SQL DB table data)

I need to load a combobox with data from a SQL table DEPARTMENT (with code and description / the description is displayed in the combobox but what is caught is the code) I used a dataSource (the one automatically configured by clicking on> on...
asked by 03.11.2014 / 14:50
2
answers

Sending information between PC (Windows Form, C #) and Android [closed]

I started to draw up a project schematic, and as an idea I had to have several Androids devices sending data to a computer (I plan to do it using Windows Form - C #, and maybe Xamarin for the Mobile part). I ended up wondering how best to sen...
asked by 02.01.2018 / 04:43
4
answers

When the textbox is null, the button will be off

When you type in textbox , the button will call, but when you do not have anything in textbox it will hang up. I was able to make the method of the button connect but I could not do the disconnect if the textbox is null pri...
asked by 30.09.2017 / 16:30
1
answer

How to create an ArrayList of arrays?

I'm having some problems creating a List of Arrays, I'm using Visual C #, .NET 3.5. Code: using Database; //... namespace Sample { public partial class Form1 : Form { //... private void Button1_Click(object sender, Event...
asked by 23.04.2014 / 03:19
2
answers

Compare the values of an entire column of the DataGridView with a variable

I would like to compare the value of a string variable with an entire column of the DataGridView. There is a code that looks at the whole column, more or less textbox.Text = datagridview.columns("nome_da_coluna").value Or do I have to...
asked by 02.02.2014 / 02:39
2
answers

Select in windows form c #

Imagining myself, I have 3 checkbox : 2.9.1 2.9.2 2.9.3 I wanted to, that I click on 2.9.3, and select me all that are behind. It's the sort of a select all , but just select me from a given number up that I choose. I'm doing t...
asked by 08.05.2017 / 18:17