Questions tagged as 'c#'

1
answer

Accept only one comma in Textbox c # WPF

Hello, I'm using my decimal Textbox like this: <TextBox x:Name="TextBox" KeyDown="TextBox_KeyDown" Style="{StaticResource MeuTextBoxValor}" Height="23" Margin="1" Text="{Binding Peso, NotifyOnValidationError=tru...
asked by 13.12.2018 / 13:45
1
answer

Map the same entity twice

I'm trying to map the same entity twice in another public class Conveniado { public int Id { get; set; } public string Nome { get; set; } [InverseProperty(nameof(ProcedimentoAgregado.ConveniadoDe))] public virtual ICollection...
asked by 29.09.2018 / 01:14
1
answer

How to detect the mouse wheel?

I need to detect if the user is scrolling the mouse scroll down. I tried with GetKeyState , but it seems that there is no way to scroll the mouse scroll. I also found this , but not I could understand how to use it in C #. Code:...
asked by 29.07.2017 / 21:47
1
answer

Problem deleting data from a worksheet

I have the following code snippet that connects to excel, where it will exclude data from a tab in a spreadsheet. private void AtualizarPerformanceEntrega() { try { string sFileXLSX = Server.MapPath("ExportPer...
asked by 04.10.2017 / 15:11
2
answers

Simultaneous calls in RESTful service

Hello, I am having doubts on how to make fun calls (about 100) simultaneous on a REST service. The code example I have is the following: using (var http = new HttpClient { BaseAddress = new Uri("some url") }) { using (var httpContent =...
asked by 13.09.2017 / 05:52
1
answer

Formatting chart values using Syncfusion for Xamarin Forms

I'm using Syncfusion to create graphics in Xamarin Forms . By studying the documentation , I could not find a way to format the values in my chart, example: IwantthesevaluesformattedforBraziliancurrency:October-R$14,421.52Doesanyonek...
asked by 04.10.2017 / 15:47
2
answers

How do I get the row and column contents of a ListListint list?

I have a list that simulates an array (or a two-dimensional array) that is structured as follows: List<List<int>> matriz = new List<List<int>>(); Since this matriz is initialized with the following values: m...
asked by 11.04.2018 / 04:06
1
answer

How can I check if an object exists in the dictionary and return it

I am working on a solution where I have to enter the same function with a given name of a Park. The parks are implemented in a list and each park has a name. It happens that I intend and already tried to develop a function in which when searchin...
asked by 26.06.2015 / 00:10
1
answer

Doubt about FK, Visual Studio database

Hello, I created three tables in a database in Visual Studio, the first two ( clientes and produtos ) are normal tables with primary key in the Nome column. Then I created the table compras that would have dus FK, one f...
asked by 05.07.2015 / 18:02
1
answer

Authenticate user efficiently and quickly (without setbacks, Identity x Manual)

I need to create a fun system that uses a validation (user, password). I have experience with WebForm, I have already studied a bit of MVC but I still do not feel safe to create a complete application with MVC. For the validation I thought...
asked by 18.08.2015 / 22:36