Questions tagged as 'visual-studio'

2
answers

How can I use the value of a variable with LINQ?

I'm trying to assign a variable to a select using LINQ. My function which makes it evaluate a data set to get the SourceID according to the caption that has been passed into the select. What I try to do is from an application in Windows Fo...
asked by 08.04.2016 / 16:32
2
answers

Compile without having Visual Studio installed

Can it be compiled without having Visual Studio installed? Is there a portable tool to use on computers without VS? I've read about the existence of VS Build Tools, but I can not find where to download it. Here there is no download link - >...
asked by 02.03.2016 / 14:03
2
answers

Establish that all the fields that they fill in the grid are string C # + Windows Forms

I have a problem filling a datagridview and it is that when filling it some data disappears in some cells, and I think it is because they are established with a predetermined format by the same datagrid when filled, I would like to know how to m...
asked by 02.10.2018 / 18:22
1
answer

Change default image DataGridView Image column C #

Hi good as I indicate in the title what I want is to remove the image with the X, I have not found anything on the Internet that serves me or I can think of anything anyone knows how to change that default image by another that I indicate? I...
asked by 19.07.2018 / 12:33
1
answer

How can I replace multiple texts using Replace?

I'm looking to replace several strings and then write them to a .csv file Everything works well when I replace a single text, but when wanting to replace 2 or more, I only take the last replacement text, which only allows me to put a string a...
asked by 05.06.2018 / 20:18
3
answers

Add Column Values DataGridView VB.NET

I'm doing an app and I want to add the values of the column SUBTOTAL classifying it by brand (column MARK ), the problem is that it will vary the brands. In the first instance it only occupied two marks and solved the problem with this code ....
asked by 24.03.2018 / 01:35
4
answers

How to fill a DataGrid with records obtained from a database?

I want to fill a DataGrid that has predefined columns and the data is obtained from a database. Previously I used the following code to fill in the DataGrid made with C # in Visual Studio 2017 in a window (WPF) public void llenarDataGr...
asked by 08.04.2018 / 02:38
1
answer

TypeError: Image data can not be converted to float

I have a problem with the following code: import cv2 import matplotlib.pyplot as plt img1 = cv2.imread('images\colombia_city.jpg') img2 = cv2.imread('images\colombia_city_2.jpg') #img = img1 + img2 #img = cv2.add(img1,img2) abc = cv2.addWei...
asked by 18.02.2018 / 02:50
1
answer

How can I add elements to a .XML document?

I need to add nodes or elements to an .XML file saved in a location on my PC and I do not know how to do it ... for example in my file I have: <Empleado> <Nombre> <PrimerNombre>Efrain</PrimerNombre> <...
asked by 09.01.2018 / 20:49
1
answer

Directives error trying to play .mp3 files in c #

Currently I want to play audio files in mp3 and I already have fragments of the code that theoretically should work. Current Code: using WMPLib; ------ Error public void timerson() { MessageBox.Show("Cada cierto tiempo segundos...
asked by 30.04.2017 / 16:58