Questions tagged as 'c#'

1
answer

How do I fill a combo I fill in the Value of it with wpf and c #

I made this code to populate a combobox. It works perfectly, however I need beyond the text to be presented in the combo, you also need to load a kind of Value, as we do on the web where we have Name and Value. I use WPF. If I fill the combo in...
asked by 15.08.2017 / 18:56
2
answers

Windows form c # identify which button of the BindingNavigator was clicked

How to identify which option (Add new, Delete and etc) was chosen in a BindingNavigator and which method to use to capture the click.     
asked by 16.12.2014 / 01:26
3
answers

Query Status NFe C #

I am trying to perform the service status query for NFe 3.10 but is always returning the following message:    The HTTP request is prohibited with the authentication scheme of   customer 'Anonymous'. I'm using Visual Studio 2012 and .NET...
asked by 09.12.2014 / 16:57
1
answer

Error: EntityTypeT has no key defined. Define the key for this EntityType

When I run my application, the following error is generated:    One or more validation errors were detected during model generation:   BolaoSCA.DataAccess.Context.InstallMap:: EntityType 'InvalidMap' has no key defined. Set the key for this E...
asked by 12.07.2017 / 03:44
1
answer

When to use Html.BeginForm () and why to use?

I came across the following situation in one of the views I have a search field: <form class="navbar-form navbar-right" role="search"> <div class="form-group"> @Html.TextBox("parametroProcura") &...
asked by 13.07.2017 / 22:17
2
answers

How to change position of all matrix elements by changing the row number by column?

I tried this algorithm but the result stays the same after this exchange int[,] array = new int[10,10]; for (int l = 0; l < 10; l++) for (int c = 0; c < 10; c++) { int temp = array[l, c]; array...
asked by 14.07.2017 / 16:09
1
answer

@ Html.DropDownListFor how to set the default value

I need to set the default value displayed by a @Html.DropDownListFor Searching found: @ Html.DropDownListFor how to set default value So, I did it in my code: @Html.DropDownListFor(model => model.equipe, new SelectList(ViewB...
asked by 01.08.2017 / 13:59
2
answers

C # - Windows Service only runs once

I'm developing a windows service to run every 10 minutes, it inserts some values into the database, but I noticed that the routine only runs once. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;...
asked by 10.07.2017 / 22:00
1
answer

Click event does not work in custom control

I created a button (UserControl), so far ok, but when I push a Click event on it, it does not work, I already tried with the MouseDown event, it also did not work. I do not think it's this, but this button has a Label that fills al...
asked by 21.10.2017 / 21:17
1
answer

Create popup with Rg.Plugins.Popup

Does anyone know of any tutorial to create popup in xamarin.forms using this plugin, Rg.Plugins.Popup? I need to create a popup and inside it a textbox or textarea with two buttons (Ok and Cancel).     
asked by 25.10.2017 / 11:53