Questions tagged as 'c#'

1
answer

Scrollbar centralizing by itself

I have a form with height greater than the screen, with many buttons and checkboxes, The user uses the scroll bar to scroll down and see all the content of the form. My problem is that every time the user tries to click a button or checkbox,...
asked by 20.07.2017 / 19:20
1
answer

Kendo TextBoxFor allow only numbers in .NET

I do not want to allow the user to enter characters in my TextBoxFor field, and if he does, I want to display a message stating that the field should contain only numbers. My code is below. @(Html.Kendo().TextBoxFor(model => model.MinVo...
asked by 11.07.2017 / 15:14
1
answer

Xml handling with ASPNET MVC Core?

I'm working with Xml upload using ASPNET MVC Core , I get in controller the file this way: public async Task<IActionResult> Upload(IFormFile param) { } But I need to check it out before finishing the code and uploa...
asked by 20.07.2017 / 22:41
3
answers

DateTime function C # [duplicate]

I came across an exercise in which the AM / PM format date should be converted to military format (24h). So, suppose the user types 07:05:45 PM, the program should return 19:05:45. I do not like looking for solutions on the internet, but...
asked by 24.07.2017 / 20:25
1
answer

Migrations adds the letter S to the table name

I have a model: public class pimentel { [Key] public int id { get; set; } public string cod_item_Crm { get; set; } public string tag { get; set; } public string data_anal { get; set; } public string modelo { get; set; }...
asked by 24.07.2017 / 19:12
1
answer

Customize TabControl C # [closed]

I need to customize a TabControl, like, change the colors of the tabs when selected, leave the TabControl without a border (flat type), etc. I tried using the TabControl component of Windows Forms and I could not, I tried to remove this white...
asked by 02.06.2017 / 01:20
2
answers

Strange behavior in EntityFramework with StoredProcedure?

I'm performing a search through StoredProcedures in EntityFramework and the Data field is displaying conversion error to type String . Method public IEnumerable GetFilteredList(ConsultaBanner filtro) { st...
asked by 01.06.2017 / 14:51
1
answer

Open PDF in browser automatically after download

The PDF downalod is executed correctly (minimized in the bottom corner of the browser). How do you open automatically on a new tab ?: <a href="#" class="download" name="downloaditem" id="downloaditem3" target="_blank"><span st...
asked by 05.06.2017 / 16:43
1
answer

Error sending NFe

I'm trying to issue NFe using SEFAZ RS's webservice, however it's generating some errors when I call the nfeAutorizacaoLote method. It looks like the error is in the webservice configuration. By referencing URL for Visual Studio, the...
asked by 08.08.2017 / 16:30
1
answer

Mahapps and WPF - How to apply "highlight" effect when I hover the Mouse over a Tile

I'm using a Framework named Mahapps in my project WPF and would like to apply a highlighting effect to Tile when I hover over it. Does anyone know how to do it? <Pagex:Class="SistemaComercial.Presentation.WP...
asked by 04.08.2017 / 00:33