Questions tagged as 'visual-studio'

1
answer

Is it possible to create a class from a routine to open forms? As?

I have several forms that I 'instantiate' by the click event in the toolstrip, however it seems that it is getting polluted since all codes do the same routine changing only the parameters. Event to open and check if the Registration - Clients...
asked by 26.09.2017 / 14:10
1
answer

Component Compound in C # does not show all attributes

I have a system in which I use a dataGridView to list the fields of a table with the property dataSource , and a textBox so that the written text serves as a filter (when I type something in textBox , use the text typed...
asked by 15.12.2016 / 20:04
2
answers

I can not get a variable from another namespace

One project is WebApplication and the other is a Console : "Test Project" SolutionName Structure below: Business (Folder) BusinessDAL (project) DLL.cs file Console (project) Business.cs // BusinessDAL Project...
asked by 04.08.2017 / 15:50
1
answer

How to hide app.config file password?

Whenever I'm going to create a new stringconnection, VisualStudio asks me if I want to leave the password visible in the app.config file I always answer yes, because I do not know how to enter it directly via code. How can I delete this pa...
asked by 09.04.2017 / 15:39
1
answer

How to concatenate data from a DataGridView and Save in a single field of the database

I want to concatenate and save the fields of a datagridview, however I do not know how to do this. What I Have: method: public void Gravar() { string strQuery; strQuery = "INSERT INTO Prato"; strQuery += (" VALUES("); str...
asked by 16.10.2016 / 05:53
1
answer

How to fill a ListBox using multi thread in VB .NET?

In a Windows Form Application I have a List Box that is populated from a list of IP's. It works like this: there is a text file ( config.eep ) that contains a series of IP's, at the press of a button to update the List Box, a loop is cal...
asked by 31.01.2014 / 19:42
1
answer

How to change the indentation in line by Vscode

I wonder if to use dot instead of line indent does it need some extension? In case I think it would be like seeing each space one point. Example:     
asked by 09.07.2018 / 02:03
1
answer

Problems with javascript in ASP.Net applications MVC - Minification failed

I just uploaded my system to the server, so I went to do the first tests and this is causing the following errors in my Javascript scripts /* Minification failed. Returning unminified contents. (1,1): run-time error CSS1019: Unexpected token,...
asked by 11.07.2018 / 22:22
1
answer

Remove form button and remove code [closed]

Good afternoon, how can I clean the code in the situation where, I put the buttons according to a certain use, then we resolve to take the buttons but the codes are there, (click events) How can I remove the button and remove events and referenc...
asked by 08.02.2018 / 17:58
1
answer

ConnectionString returning null

When trying to execute my project I got the error:    System.NullReferenceException: 'Object reference not set to   an instance of an object. ' I have a bank class with the constructor: public bd() { conexao = new SqlConnection(Confi...
asked by 23.01.2018 / 19:25