Questions tagged as 'c#'

2
answers

How to Record the Date, Time, Minute, and Second in C # WINFORMS and SQL SERVER?

I created a sales system, and I need you to record the date, time, minutes, and seconds. The way I did, just record the date, and the rest comes 00:00:00. Here is the code I did: //evento load do formulário vendas. private void Vendafrm1_Load(...
asked by 02.03.2017 / 12:30
1
answer

Get currency quotes from date [closed]

I am making an application and would like to know if there is any way to get currency quotes from an X date (not necessarily the current day) via WebService consumption.     
asked by 28.09.2015 / 17:13
1
answer

Problem with Database Connection

Could you help me figure out why you're giving this error? Code: using (_connection = new MySqlConnection("Database=test;Data Source=localhost;User Id=root;Password=teste;SslMode=None;")) { _connection.Open(); var cmd = new MySqlCom...
asked by 09.03.2017 / 12:11
2
answers

Recording of rows in txt file in c # windowsform

I'm doing a program that queries some Mysql tables and generates a list to which populo in a gridview. After that, I did a C # routine that reads each line and writes to the txt file in c: \ text.txt. So far so good, the problem is that when rec...
asked by 26.02.2016 / 20:42
1
answer

Wait for an event to be triggered to continue the C #

In the RealizarPesquisa method, when running the _WebBrowser.Navigate() line, the DocumentCompleted() event is triggered, but this event takes a while to execute, so the RealizarPesquisa method continues its process a...
asked by 14.07.2017 / 16:48
1
answer

Difficulty in filtering information

I know my problem is logical and this should start with me, I know, but sometimes a light, not a ready code, but the pointing of a path helps us a lot. 1) I have 6 ComboBox in my View that make the filters for a search. 2) This search shou...
asked by 01.10.2014 / 14:20
1
answer

Access level layered login system

Good morning, I'm doing a course completion software at school, and I need to make a login system with access level (I'm programming in layers and using SQL SERVER 2012) . I saw a tutorial on the net that the user had to choose the level of...
asked by 06.08.2015 / 16:17
1
answer

Received String Editing WebResponse

I get information through responseStreamReader.ReadToEnd().ToString(); . But before displaying it on the User screen I want to edit it. How to proceed?     
asked by 01.09.2015 / 18:32
1
answer

How do I set the values of a PropertyInfo of the instantiated classes within a class?

I'm doing a generic method for rounding values of a class (T), but I also have the classes inside that main (T), these classes I can set this way: IEnumerable<PropertyInfo> childrenProperties = entidade.GetType().GetProperties(BindingFla...
asked by 30.07.2015 / 14:05
1
answer

Datetime null 01/01/0001 - Selection error (Winforms + Layers bll, dal, model) C #

I made a business rule where I pass some information from my work order to my cashier. But when I go to search the box, my date goes 01/01/0001, and the character error. Public List<Model.caixa> Select() { List<Model....
asked by 31.03.2017 / 03:33