Questions tagged as 'c#'

1
answer

WebBrowser in C # using Chrome

I have a browser application that I created using the class WebBrowser of System.Windows.Forms , this class uses the IE browser engine. Now I need to create a browser application using chrome. What's the best library for me to do...
asked by 13.05.2017 / 08:06
2
answers

Apply between a hql in c #

I'm trying to apply an between with two fields of a part of my form, are dates and ids of vehicles, I'm not very aware of how it models this by HQL in nhibernate with C #, I wanted to know what it would be like to apply this to hql. Normally m...
asked by 19.12.2017 / 16:24
1
answer

Select columns with no specific name

I'm developing a C # application that consumes data from a spreadsheet, and at some point I need a query string that will feed a variable. For example: strComando1 = "SELECT TOP 2 ColunaGenerica1, ColunaGenerica2 FROM ["+ planilha +"]";...
asked by 09.02.2018 / 13:21
2
answers

How to decrease TimeSpan time?

I need to set a time within TimeSpan , and make it shorten the time. When you get to [00:00:00], for the time. I need to do this format: [00:00:00] - hour, minute, and second. Below, I put 5 min. private void timer1_Tick(object sender...
asked by 08.02.2018 / 21:48
1
answer

Crypto of url

I have a SendEmail method which generates a link through HTTP request, which will send to the user's email for exchange. However for tests I fixed the user ID in this URL, but for security reasons I have to encrypt it. How do I do this? Fol...
asked by 26.01.2018 / 17:23
2
answers

Doubt between using compound primary key or not in associative table

I'm making a relationship where it's N: N ... Example:    Project x Employee In this relationship I create an associative table called Projeto_Funcionario taking the id of the two classes.    Project (id, name)       Officia...
asked by 19.02.2018 / 17:24
2
answers

Extract date from a String C #

I need to extract two dates from a string which comes in the following format: string teste = "Aprovados por autorizantes da aplicação -> 02/03/2018 à > 02/03/2019"; Being start date and end date. I can still do this, however this str...
asked by 02.03.2018 / 17:29
1
answer

How to change final property from Java to C #?

What property in C # is corresponding to final of Java, I need to change my variables final String mensagem = "Tokio Marine Seguradora S.A."; to something corresponding in C #. using System; namespace ConsoleApplication { pu...
asked by 09.09.2016 / 19:58
2
answers

Shortcuts url C # [closed]

I'm setting a code in C # for a url shortener api to send in sms inside an application, everything is working, however the api outside of the code works, but inside the code oo return nothing comes back, I'm not much Experienced in C #, can anyo...
asked by 13.09.2016 / 21:12
2
answers

Changing rows in DataGridView / Opening a form with different design

I have a problem with a school project, as I said in the title, I need to change rows and open a form that already has design , but with different things, come on: The program is very simple, a datagrid , with Name, Id, Phone and a...
asked by 04.09.2016 / 00:38