Questions tagged as 'c#'

2
answers

Does anyone know how to pass data from a class to a td tag to form a table?

<table id="list" class="bordered"> <tr> <th>Nombre</th> <th>Apellido Materno</th> <th>Apellido Paterno</th> </tr> <tr> <td></td>...
asked by 27.12.2016 / 12:56
1
answer

Should I declare scalar variable?

I have a method created in a mapper that I use to verify the username and password for a login, the code is as follows: public Usuario buscarUsuarioPorNombreYContrasenia(string xNombre, string xPass) { var param...
asked by 28.12.2016 / 00:53
2
answers

Load data in Textbox from Gridview

I want to load data from a row that when I select it by means of a button, I upload it in a format. For this I am doing it with the CommandName, as if they were coordinates, if you click on such a row it will load this data and so on for all....
asked by 15.12.2016 / 19:07
2
answers

Select the entire box of a DataGridView [closed]

I wanted to know how to do to click on a cell to select all the content, because it only remains to edit. PD: SelectAll () would serve but as it is devexpress.     
asked by 22.12.2016 / 20:39
2
answers

List 3 Layers c # SQL SERVER Window Form

Good morning. I'm doing a form that is to register a user I'm doing it in the c # language with 3 layers and SQL SERVER database. In my Registration form I have this aspect as the image: As you can see in my form I have 5 combobox. T...
asked by 04.03.2017 / 16:54
1
answer

file not found, wrong path in C #

I am trying to load a file, to which I indicate the path of the desktop but I do not know why it always returns: File not found! The code is as follows: using System; using System.Collections.Generic; using System.Text; using System.IO; u...
asked by 03.03.2017 / 02:22
1
answer

How to put multiple marker in c # using GMAP

I have the following code: GMarkerGoogle marker; GMapOverlay markerOverlay; Simple initial configuration: gMapControl1.DragButton = MouseButtons.Left; gMapControl1.CanDragMap = true; gMapControl1.MapProvider = GMapProviders.GoogleMap; gMa...
asked by 13.12.2016 / 04:01
1
answer

How can I show the results of an operation in a datagridview generating a new column?

I want to generate a new column (called "Column1") showing in it the result of each of the values of an existing column. With this code I get an error saying that Column 1 does not exist and I can not explain why it is supposed to be generated b...
asked by 13.12.2016 / 23:06
1
answer

Pressing a button from another Form in C # [duplicated]

How can I make pressing a button on one form1 press another button on another form2 and form2 closes ?? // cambio el boton a public public void btnoperator_Click(object sender, EventArgs e) { } // en el otro form preosiono el boton...
asked by 23.01.2017 / 16:11
1
answer

C # - Error Basic Authentication WebServices REST and POST method

I am currently working with NetFramework 4.0 and also assigning basic authorization and I must use the following Dll System.Web.Http.Cors but I do not locate it or in the package manager of Visual Studio 2012. The class that authentica...
asked by 22.01.2017 / 21:03