Questions tagged as 'c#'

2
answers

How to hide column of DataGridView?

I have the void PopulaGrid(DataGridView grid, SQLiteDataReader dados) function that feeds my dataGridViewAlunos data, I would like to know how to hide the first column of dataGridViewAlunos which is the column correspondin...
asked by 13.12.2015 / 02:23
1
answer

NullReferenceException using HtmlAgilityPack

I'd like to know how many tags <a> exist within div , but the NullReferenceException Exception is raised upon reaching XPath. var baseURL = "AQUI VAI A MINHA URL"; var client = new HtmlWeb(); var pagina = client.L...
asked by 05.07.2016 / 00:05
1
answer

Problem with calculation result greater than Int64

I'm doing the exponent of a number and I need the result to come out in a specific format, however I do not know how to do it, it follows the code: double num1 = 290287121823; double num2 = 538783; double resultado = Math.Pow(num1, 2) + num2;...
asked by 01.07.2016 / 14:47
1
answer

Friendly Url in ASP.NET Web Forms

I would like to know how to make friendly URL in C # ASP.NET. I tried to use the file: global.asax but it did not work.     
asked by 01.07.2016 / 21:08
2
answers

Regex time greater than 00:00

I am developing a validation regex using System.ComponentModel.DataAnnotations and RegularExpression of asp.net mvc C #, in this regex it is necessary to validate time duration without limits in hours and the time must be greater t...
asked by 28.12.2014 / 18:57
2
answers

Paste directory path

I want to get a system directory, open a window and in this window I select a directory. I can select files with OpenFileDialog but no directories.     
asked by 11.12.2014 / 16:08
2
answers

How to do a cast of a class typed in C #?

I have the Carro class that inherits from the Objeto class and another CarroTeste class that implements the abstract class TesteBase which implements the ITeste interface, both ( TesteBase and ITeste...
asked by 16.07.2015 / 17:03
2
answers

Understanding lambda parameters of a delegate in a function

I have the function below. I just want to understand who X is and what values it is reaching in the course of the function. I could not get the debug. They do not have to say exact, between values literally, but like it being aringido. I'm study...
asked by 09.07.2015 / 12:12
1
answer

Error importing DLL

I have a DLL made in C #. When importing it to be used on another computer, I find the class. However, her methods are not published; Follow my code: using System; using System.Security.Cryptography; using System.IO; using System.Runtime.In...
asked by 19.01.2015 / 12:44
2
answers

How to pass commands to an .exe via C #?

I wanted to call through a C # application any .exe and give them some commands as soon as it opened. For example, what I want to do at the moment is that the program opens, give three Tabs and fill in the values passed and give three more...
asked by 19.01.2015 / 22:05