Questions tagged as 'c#'

1
answer

How to start a variable correctly?

Is there a difference between these two ways to start a variable? List<classeterapeutica> itens = new List<classeterapeutica>(); modelOff.classeterapeuticas.ToList(); or List<classeterapeutica> itens = modelOff.classeter...
asked by 11.04.2017 / 02:25
1
answer

What is an AppDomain?

I've read about this on the Microsoft website . Would it be interesting to have a succinct answer here in Portuguese with a summary of what it is? Is there anything important that is not in the documentation?     
asked by 22.03.2017 / 13:27
2
answers

Allow new conditions to be added without modifying code

I'm manipulating a .txt and I have to change values of type M31 to T90 for example. My code is like this: //Change machine tools for Sodick if (_strLinesFinal.Contains("M50"))...
asked by 11.10.2016 / 14:08
2
answers

Abort Thread through another process in C #

I'm developing an application in ASP.Net 5.0, where it needs to start a task through a% Secondary% co, as in the example below: //Inicia processo de pesquisa var ppBlo = new ProcessoPesquisaBLO(); //Cria a Thread para rodar o proc...
asked by 22.11.2016 / 19:09
2
answers

Change ownership of multiple buttons simultaneously

Hello, I'm developing a project for a dental clinic in C # which uses several buttons inside a picturebox to select the teeth, so I decided to put several buttons with a certain opacity and the result was very satisfactory, the problem and that t...
asked by 26.10.2016 / 12:19
2
answers

Format Display Data DisplayFor

I have a field in the database, DataHora, and wanted to display on the screen for the user, but in separate fields, being Date and Time. First displays the Date @Html.DisplayFor(modelItem => item.DataHora) Second displays Time @Html...
asked by 01.11.2016 / 03:02
1
answer

Redirect URL in IIS 7.5

When posting to the server (iis 7.5) the application: Eu tenho isso => http://meuip:8086 Mas preciso disso => http://meuip:8086/portal When you create the directory in iis with the name "portal" and converted to an application, a...
asked by 04.05.2018 / 21:25
1
answer

Error converting varchar value to integer

When performing the following UPDATE through my API (.NET Core): UPDATE Aula SET WHATEVER = WHATEVER WHERE ID_AULA = @examID Code: string query = builder .AppendLine("UPDATE Aula") .AppendLine("SET WHATEVER = WHATEVER")...
asked by 10.05.2018 / 18:47
1
answer

How to create a window without using the GUI builder?

I'm starting to study C # and just like in Java, IDEs provide features that make it possible to build GUIs easily by dragging components. The netbeans has a powerful build tool where you can drag Swing components for JFrame , JDialog...
asked by 21.12.2014 / 02:29
2
answers

How in ASP.NET 5 is this property defined?

In ASP.NET 5 in the Configure method of the Startup class we can get a reference to an object whose class implements IHostingEnvironment in the parameters. One of the properties of this class is EnvironmentName . I hav...
asked by 24.02.2015 / 00:11