Questions tagged as 'c#'

0
answers

How to make the RadHtmlChart telerik be responsive?

I have 3 graphs RadHtmlChart of Telerik on a page, I'm dividing this page into 3 so they always appear, without the need to scroll scroll to view them. I need to resize the page, RadHtmlChart is suitable for this r...
asked by 14.08.2017 / 17:23
0
answers

When the list is popular, it is null

In my App I populate two grids. This is okay. I get data from a service, like this: dataGrid.ItemsSource = await dataService.GetLiberaAsync(); itensGrid.ItemsSource = await dataService.GetItensLibAsync(_idorcamento); This is correct. Well,...
asked by 15.10.2017 / 19:00
1
answer

How to assign a style to all objects at once in WPF

Is it possible to create a style in WPF where it will be used for all components of the same type, so it is not necessary to call the Style for the component? My idea is to create a style such as <Style TargetType="Button"> </St...
asked by 11.08.2017 / 20:43
0
answers

C # documentation [duplicate]

I would like to document an api for C #, in the style javadoc . Is there any way to decorate / comment the code so that type and member documentation is generated automatically? Does C # give native support to this, or is an external tool...
asked by 03.08.2017 / 19:15
0
answers

If or Try / Catch? [closed]

Here at work I came across a code that treats an error in an if instead of try / Catch. The programmer justifies that catch interrupts the code, but I believe that a Finally guarantees execution. Can you tell me what would be the best option for...
asked by 22.08.2017 / 17:04
0
answers

dmColor and dmDuplex values of the DEVMODE structure always returning 0

I'm doing a print monitoring job in C # and using the winspool API. I was able to capture most of the data I need, such as number of pages, printed document, number of pages printed, user who printed, etc. Using the structure JOB_INFO_2 . Co...
asked by 23.08.2017 / 19:37
1
answer

Backup Database - error in SQL Syntax

I am building a button to back up my db via C# application, is running fine, however at the time of applying ExecuteNonQuery is accusing% error of%. Follows: Designate Path: private void Browser_Click(object sender, Eve...
asked by 23.08.2017 / 18:51
1
answer

Why use private?

I'm learning variables public and private . If I create all the program code, what is the need to create a private variable? Being that enough I do not program a code that accesses the same one of another class. While r...
asked by 14.11.2016 / 21:26
2
answers

How popular a select with JQuery

I have a registration screen where the user can add or not phone numbers. I am adding fields to insert the phone dynamically, but one of these fields is a select that will bring data from the database. My jquery is hitting the controller and it...
asked by 23.08.2017 / 22:37
0
answers

How to write XML string in a tag using XMLSerialize [closed]

When I pass the string and generate it by XmlWriterSettings.xmlSerialize passing the data without special characters, it still generates as follows. Briefly, I have an xml document inside a tag. <Valor>&amp;lt;![CDATA[&amp;lt;CFe...
asked by 22.08.2017 / 13:48