Questions tagged as 'c#'

1
answer

Sendgrid V3 Example with Attachment

I need an example code to send email with attachment using sendgrid Web API v3. using (var client = new HttpClient()) { client.BaseAddress = new Uri("https://api.sendgrid.com/"); client.DefaultRequestHeaders.Accept.Clear(); client.Defaul...
asked by 19.07.2016 / 19:28
1
answer

NHibernate is modifying property when returning by Web Api

I have a web service api where a query is made to the database through nhibernate, but when returning the object, its referenced properties are overwritten, I believe it's because of the nhibernate proxy. HowcanIbedoingtofixthisproblem?Follo...
asked by 21.07.2016 / 16:15
2
answers

Use a TextField to describe a path to save the files

Good morning, I'm trying to create a system that when I type a name in a textfield it would create a folder with this name and add the file inside the folder. The part of adding the file is correct, I need to know how to create it. I'm ver...
asked by 20.07.2016 / 19:13
1
answer

Separate items from a string using Regex

I need to separate the items from a string into an array using C # and Regex, could they help me? The string is as follows: required|email|min:2|max:255 There are some rules I wanted to fit: Separate the main items delimited by...
asked by 15.06.2016 / 21:51
1
answer

Singleton Pattern

I'm creating a project in C # and WPF, and I need to control instances of WPF windows, that is, if I want to open a window in a part of code with wndJanela.Show() , I want it when I call the Show () method again. another part of the code,...
asked by 10.06.2016 / 05:36
1
answer

Problem reading and inserting data in the DBF file after deleting all records

I'm creating a system that will read a xls file, delete the data from a dbf file, and then include all the xls records in the table. However, this system is an intermediate system, since dbf data is used in a VB sy...
asked by 04.08.2016 / 21:58
1
answer

Cmd builder similar to visual studios

Hello everyone, I would like to know how I can do that when I click on a button my program compile cs files and more to make an .exe and run like that of the visual studios if someone on how I can do this or know tutorials I would appreciate it i...
asked by 03.08.2016 / 19:15
1
answer

Pre select last record in a DropDownList C #

I'm assigning a list to DataSource , and in this assignment I'm concatenating the code with the company name, however, it loads the list with the first selected item. How do I make the last record load pre-selected? My code looks like t...
asked by 03.06.2016 / 20:22
1
answer

Doubts with angular and checkbox

I have a form with some inputs and some checkbox, when I do the search the bank is returned Json , and the input fields are filled in because the checkboxes are not checked even though I have declared ng-model of it: <p> <input...
asked by 17.06.2016 / 12:52
1
answer

Change MonthCalendar Culture

Is it possible to change the date format of the MonthCalendar object of a WinForms application? It happens that the culture selected on a client's station is Polish and this is causing an error in handling application dates. I tried...
asked by 16.06.2016 / 23:23