Questions tagged as 'visual-studio'

2
answers

Asp.net C # identity 3 layers - session replacement in VS 2017

Query, formerly when I was programming in asp.net form, I did it with sessions, now that I am working with asp.net mvc 5 in n layers, how can I get, for example, the ID or Full Name of the user logged in from any part of the application?     
asked by 09.05.2018 / 07:24
1
answer

Return to previous form

Having a main form with a button with which I access the second form, how can I return to the main form by closing the second form with the x button? Form1: private void buttonEnterAdmin_Click(object sender, EventArgs e) { this.Hide();...
asked by 30.04.2018 / 22:21
1
answer

Avoid duplicate records in C # in modify

I have a function that does not allow me to enter the same data in the same row. at the time of entering a new product if it works I can not enter a product that is already in the database, the problem if I want to change and I only want to chan...
asked by 31.03.2018 / 02:08
1
answer

How to read the serial port (scales) from c # [closed]

I have a problem wanting to read a serial port from c # (Scale) the "DataReceivedHandler" method is never released private static SerialPort puertoSerial; public static void InitSerialInterface(string puerto, int baudios) {...
asked by 14.06.2018 / 19:36
1
answer

Filter in DataGridView c #

I have a DataGridView whose DataSource is a DataTable with an already defined schema, it has 6 columns, Id , Computer_name , Serial , ... What I want to do is filter this DataGridView and show me only the rows that meet my conditi...
asked by 16.11.2017 / 01:31
1
answer

Perform instruction in vb according to the weight that is contained in a folder

Dear good afternoon, I hope someone can help me, I have a form which shows images in a PictureBox control that are in a certain path of my pc, and they are changed every so often as a SlideShow .. what I want to do with this and I can not think...
asked by 30.08.2017 / 18:39
1
answer

How do I clean the cache of my project of visual studio 2010?

I have a problem and I really do not know what is due and I think it is due to the cache that can be filled in my project, but I do not know how to delete the cache of my project in .net. Since I am currently making very, very basic changes t...
asked by 13.04.2017 / 18:40
1
answer

Full control of the registry when creating / deleting / editing subkeys in Visual Basic.net

I am trying to make that by clicking on an object (called image) a value is added to the Windows registry, the point is that it does work, however, I need permission to add a subkey .. I explain: Imports Microsoft.Win32 Public Class Form1 Pri...
asked by 17.04.2017 / 09:40
1
answer

How to convert a MySQL query to JSON in C #

I would like to know how to convert the result of a MySQL query to JSON in C # I do not have much knowledge in the following, but I would like the result of the query to be saved in JSON. public class WebService1 : System.Web.Services.WebSe...
asked by 23.05.2017 / 01:09
1
answer

Because when I try to debug in visual studio 2010, does not the APP stop me? [closed]

Well always debuggeo I do it correctly and I wanted to see that it should not debugge my .net application, because currently what I'm trying to do is to know what value a variable carries and I execute it with a breakpoint in a part of my code b...
asked by 13.03.2017 / 18:01