Questions tagged as 'c#'

3
answers

Validation Error asp c #

I commented that I am doing as a validation on my form, where it says lbldiasfaltantes is saving a value any number, it can be from 1 to -31 and I want it if in my label is < = 5 the fields are enabled and if they are greater th...
asked by 15.03.2017 / 18:24
2
answers

DateTime.parseExact does not work

I want to validate if a string is a date, the string I bring from a connection with an API and it comes in the following way 20181025 public static Boolean IsDate(string Expression) { Boolean resultado = false; try...
asked by 23.10.2018 / 17:06
1
answer

DataGridView change background color

I have a datagridview which will change the background color in the BackGroundColor property but when I run the app the background color looks as if it has not changed it. How can I change the color of the DataGridView at runtime?     
asked by 29.04.2016 / 23:31
4
answers

Create application installer in Visual Studio 2013

I have an application with three projects (Data Layer, Layer Business Layer Presentation, Main Project) in C # Visual Studio 2013 and develop my database in sqlserver 2012, I need to create an installer, with which I can take my application to a...
asked by 29.11.2016 / 05:48
1
answer

Change the contents of the columns in DataGridView [closed]

I am developing an application for a tag calculation within the C # language. Annex photo: What I intend to do is insert a DataGridview but according to the option that is selected: Child, Lady, Gentleman the name of the column headers...
asked by 08.08.2018 / 23:02
3
answers

Pass string to DateTime and take DateTime date only.Now [Updated]

When creating a product object that has a DateTime field that field filled it with a DateTime.Now that data is saved in a txt as 03/09/2018 08:42:18 p.m and trying to get the data again with a DateTime.Parse(corte[2]) I get that...
asked by 04.09.2018 / 03:22
3
answers

Use a Windows Form as the main

Good morning, I am working with Windows Form within C #, which I am working on a module for the company that starts like this at the moment of initialization: Which would be the index. Just to the upper right is a button that is c...
asked by 03.08.2018 / 01:08
2
answers

How to display Menu by right clicking on a DataGridView C #?

I explain what I need: I want, by right clicking on a cell of a DataGridView that I was displayed a menu on it (on the cell) . The problem is: When you right-click the menu, it always appears in the upper part of DataGridView...
asked by 21.02.2018 / 15:30
2
answers

Error calling async task in winforms load event c #

I have an application in C # that when displaying a certain window performs several operations in its Load () method, since several tasks take some time and I have tried to load animation but I could not, and tried to put the Load method () of t...
asked by 24.09.2018 / 05:17
2
answers

Doubt about classes c #

I have two class is a call Autos and another Utilitarios . When I go to look for a vehicle for its registration in Autos and that registration belongs to a Utilitario I skip error in the code below. How can I, instead...
asked by 20.07.2017 / 02:14