Questions tagged as 'c#'

2
answers

How to put a url in web.config

I have a service that calls this service: public async Task<List<Funcionario>> GetFuncionarios() { string url = $"http://localhost:56137/api/GetFuncionario"; var response = await client.GetStringAsyn...
asked by 14.08.2018 / 09:51
1
answer

Return object between screens - C #

I have a question about returning an object from a B canvas to an A canvas, for example. I use the form below, hiding the ShowDialog of the base class, making the "new ShowDialog" return what I need. Here is a code example of the scree...
asked by 23.08.2018 / 13:46
1
answer

Read and insert data into a table via C #

I have this code to insert values into a column of a table: conn.Open(); comm.CommandText = @"INSERT INTO ArticleBarCode(Code, Code_Article, BarCode, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, IsDeleted)...
asked by 02.05.2017 / 11:50
1
answer

How to leave new form without depending on the other? [closed]

Here is the code that opens my Form4: Form4 form4 = new Form4(); form4.Show(); // Aqui um código gigantesco que demora aproximadamente 1 minuto para ser executado. form4.Close(); The problem is that while Form4 is open, it is gray and stati...
asked by 12.10.2016 / 19:46
1
answer

How to Compare Dates [closed]

I have this code to do a save of the entered data, Day, StartDate and EndDate. protected void btnSavePontuacao_Click(object sender, EventArgs e) { decimal id_TipoDia = 0; string Dia = txtDay.Text; string DiaInicio =...
asked by 13.02.2017 / 15:22
1
answer

Queries sending data to another table [closed]

Hello, I'm in need of some help getting data using where to move to another table: link (table of accounts) In the print, it shows the "UserID (int)" I need to get all the "UserID (int)" using where link in this print shows the table w...
asked by 19.10.2016 / 06:30
1
answer

I can not save the [closed]

Every time I click on the program, send it to me internal void Insert(int p, string p_2, string p_3, int p_4, string p_5, System.Drawing.Image image, string p_6) { throw new System.NotImplementedException(); } Bu...
asked by 04.01.2018 / 03:05
1
answer

How to use a padleft (11) in a get in the API

This is the method I have in my MVC public async Task<List<FuncionarioViewModel>> GetFuncionariosVM() { string url = $"http://localhost:56137/api/GetFuncionario"; var response = await client.GetStrin...
asked by 13.08.2018 / 15:04
2
answers

CHANGING AND READING DIRECTORIES IN C #

I'm developing a C # project, which uses python scripts as the engine (I did not use IronPython because of its limitations, I work with pandas), what I do is simply execute the script through a PROCESS in C #, passing the python.exe directory an...
asked by 13.09.2018 / 17:44
1
answer

Validate CPF using WPF [closed]

How can I check if a CPF number is valid using WPF in C #? Do I need to create some class?     
asked by 03.10.2016 / 18:16