Questions tagged as 'windows-forms'

2
answers

Where should I validate the data entered by a user when I work in 3 layers?

Cordial greeting. I am working in a program with the 3 layers model (Vista, model and Controller) but I have doubts about which layer I should validate the information entered by a user with this I mean verify that a field is not empty, that it...
asked by 31.03.2018 / 03:23
1
answer

error with the datetimepicker when moving to another [closed] PC

When I move to another computer my datetimepicker program in a short date format comes out as '20 / 09/2017 'but on my computer it goes out as '20 / 09/17' and the programming is in this format so when I put to look for or make a query does not...
asked by 20.09.2017 / 12:23
1
answer

How to display the ports of my pc in a combobox c # windows form?

The truth is that I do not know how to start. when we right click and go to Device Manager shows us in the ports a list of connected devices, now I want to know how I can bring that same list to my combobox, work in windowsForm c #:     
asked by 16.10.2017 / 22:18
1
answer

Mark all the checkboxes of the child nodes of a node in a TreeView

In a form I have a treeview (tvArbol). The same, complete it with all the directories and files of Windows. To do this, every time I expand a node, I obtain and complete the treeview with the nodes "children" of the expanded node. All nodes h...
asked by 03.07.2017 / 21:14
2
answers

How to empty label when selecting a different value in combobox?

I have a form with a combobox made up of Locations, 2 buttons (Show and Exit) and a label that shows the location in the combo and name of the corresponding locality: What I need is, if there is a location selected as the example...
asked by 24.05.2017 / 02:20
1
answer

Can I make a reference to a dll (framework 4) from my project vs 2005 (framework 2)?

A query, I am working on a project in vs 2005 (framework 2), and created a Class Library in vs 2013 (framework 4), and this generates a dll. Can my project vb 2005 refer to that dll? I would appreciate your answers.     
asked by 22.11.2016 / 15:42
2
answers

Winforms C # connection with remote SQL Server

I am developing an application with winforms which I need to connect to a remote server to share the data in an intranet to different machines. The point is that I only want to install the SQL Server on the server and that the other PCs conne...
asked by 22.11.2016 / 14:58
1
answer

Send data Drag and Drop from one Grid to another

In my project I had the following question: I have 2 dataGridView , where dataGridView1 would be a list of products (one query SQL of products). I would like to know if I can drag this dataGridView1 and drop the...
asked by 11.10.2016 / 05:57
2
answers

Erroneous Coding in TextBox

A curious topic with a TextBox in Windows Forms is happening to me. I use a windows form for encrypting and decrypting strings, the case is that I have seen that if in the TextBox I write a character "\" internally saved two! For example if I en...
asked by 10.08.2017 / 10:11
2
answers

Error inserting background image in a form of windows form

I wanted to know why I get this error when trying to put a background image in a form of windows form. I have seen like 3 tutorials where they put the same code and it does not give them error, I would really appreciate if someone could help me....
asked by 07.11.2018 / 16:29