Questions tagged as 'c#'

1
answer

Console Application C # in Visual Studio [closed]

I downloaded VS 2017 and I'm having problems, I can not work with Console Application. Start the program and do the following: File New Project C # application There are several options for working with the language, but none of...
asked by 27.07.2017 / 21:57
2
answers

Change button name in event

I was making a change in the name of the buttons in the project and accidentally double clicked the button, hence it opened the code, as it had not renamed the variable opened the code with the name button7. As I had made some changes I decid...
asked by 01.02.2018 / 17:33
1
answer

How to highlight a word using REGEX

I need to color in the RichTextBox a text before a string For example: "Highlight: normal highlight"     
asked by 10.01.2018 / 11:43
2
answers

How to reproduce something similar to CSS in Windows Form?

I would like to make a program with the same appearance / style as the website, however in Windows Form does not work CSS because it is a Web technology. So how could I do something like this?     
asked by 11.12.2017 / 18:34
2
answers

Integer reading via console

Good evening, everyone. A basic question: In the code below class Conversora { double Oneknot = 1.852; // km/h public void Conversor(){ Console.WriteLine("Informe a velocidade em nós: " ); int speed =...
asked by 26.10.2017 / 04:43
4
answers

How to display a JavaScript message in an ASP.NET MVC view?

I have this code: @if (!string.IsNullOrWhiteSpace (Model.ErrorMessage)) {      <Script>          $ ("#ModalError').modal.('show.');      </Script>      Response.Write("<script>alert('Olá');</script>");      HttpContex...
asked by 15.09.2016 / 20:20
1
answer

Is it possible to change the template / graphical interface of a form in Windows Forms?

I've been researching about and the results I've achieved have been only to use WPF instead of using WinForm, but I'm still in doubt and I believe it's possible, is it possible to change the software template developed in Windows Forms?     
asked by 19.11.2014 / 13:39
2
answers

Retrieve part of a string (split or indexOf) [duplicate]

I have a folder structure like this: bco_img/3/foto_produto/ bco_img/3/foto_produto/tb/ bco_img/4/foto_produto/ bco_img/4/foto_produto/tb/ etc... I want to recover the folder / 3 / after / 4 / and also the name of the photos that are insi...
asked by 13.11.2014 / 19:48
2
answers

How to organize an Array by Time order?

I have two lists with the format of TimeSpan and another with format of String . I need to organize these two lists for ascending and descending. List<string> horaString = new List<string>() {...
asked by 08.03.2018 / 01:28
2
answers

Get value from inside a String C #

I need to get the value inside a string dynamically. The string values will always be in the following format: Ex1: "Aprovados por autorizantes da aplicação -> Fiscal Mestre" Ex2: "Aprovados por autorizantes da aplicação -> Analista CAU"...
asked by 01.03.2018 / 20:01