Questions tagged as 'c#'

1
answer

How to use a Masked textbox for time in C #?

I'm trying to create a masked textbox that gets the time of a video. But I do not know how to format the masked textbox so that it receives the time in HH: MM: SS: MMM . The amount of time I get from the video is a double . 1 sec = 1000. I...
asked by 16.06.2016 / 18:13
1
answer

C #, SQL, SQLITE How to return SQL statement from an action

I'm having a question in C # and in SQL commands, I'm currently using SQLite as the local database. In my application I make the insertion of records in the Database, so far so good, but I was wondering if there is any way to return the command...
asked by 16.06.2016 / 04:18
1
answer

How to get the path of the subfolder that was "SELECTED" in the listbox by the user and save the file inside

The program I'm creating should take the following steps: First, the user creates a subfolder to save the projects that have been calculated by the program, according to the image and code below. When you create a subfolder, for example...
asked by 16.06.2016 / 01:54
2
answers

App.Config Layered Project

Gentlemen, I have a layered application, the business layer contains a reference to the WebServiceCorreios. In the App.config of the business layer I had to add the following code: <system.serviceModel> <bindings> <b...
asked by 20.06.2016 / 15:49
1
answer

Is it possible to return the child class through a method in the parent class?

I am doing a builder and would like it to have the following behavior: abstract class ClassePaiBuilder { public ClassePaiBuilder SetAtributo(string atributo) { // codigo return this; } public string Build()...
asked by 16.10.2015 / 02:13
1
answer

Generate sequence key based on sum of digits

   I have a cyclic function where an initial string can have any value in the check digit, but all future submissions receive a previously calculated value. In this function, I get a string (which will always be a number) and in thi...
asked by 16.10.2015 / 20:00
1
answer

Object reference not set to an instance of an object when trying to retrieve an element in an XML file

I have a bug tormenting me. I'm basically saving the settings of all devices (RF Readers) in an XML file (Configs.xml). My goal is to retrieve the first element from all settings that has a "set" value (other than "") in the newLoot attribute...
asked by 20.10.2015 / 21:45
2
answers

Error configuring application on IIS Local (Integrated pool)

Save personal, I am new to .NET and am having an error creating an application on the local iis. Below exception and my pool print. My iis resources and project are the same as a friend and on the machine it works. Does anyone know what...
asked by 15.10.2015 / 04:49
1
answer

Create flanges dynamically in excel

I am doing a project in MVC and would like to know if there is any way to create dynamic tabs in Excel according to filters and export it later. Example: If the filter only comes with "School" selected, it creates only one tab called School and...
asked by 29.09.2015 / 16:09
2
answers

Simplify LINQ p = p.Type.ToUpper (). Equals ("S") && p.Mode.ToUpper (). Equals ("S") ..., n

How to simplify the LINQ expression? p => p.Tipo.ToUpper().Equals("S") && p.Modo.ToUpper().Equals("S")...,n     
asked by 05.10.2015 / 23:50