Questions tagged as 'c#'

1
answer

How to copy the nodes of a Treeview to a Textbox

I need to copy the nodes of a TreeView to a TextBox in Visual Studio 2015 asp.net C #. But the AllowDrop or Enable DragAndDrop function does not appear in the TreeView properties. Any idea how I could do it? Thanks     
asked by 01.12.2017 / 22:34
1
answer

How to go back in a graph? - C #

create the following structure public class nodo { public string info = null; public nodo[] nodl = new nodo[2] ; } nodo nod0=new nodo(); nod0.info = "1"; nodo nod1 = new nodo(); nod1.info...
asked by 01.12.2017 / 13:50
1
answer

Update a gridview

I have a gridview which I upload data from my database but when I update it marks a problem, it does not take the data I want to actuate. How can I update it or where do I have the error? this is the action of updating protected void GridView5_R...
asked by 01.12.2017 / 17:10
1
answer

Show the result of a SQL Server 2008 sp in a web form C # (Visual Studio)

Good day everyone. I have a sp SQL Server 2008 that throws me the following result: Total_Registros 1 On the other hand, I have a form that contains a label (lbl_totals), nbsp;&nbsp; <asp:Label ID="lbl_totales" runat="server...
asked by 01.12.2017 / 18:38
0
answers

Android Xamarin Listview does not load the elements

It happens that, after creating a listview in the same way it explains in the documentation, the elements are not loaded, as if there were no elements to be displayed. I have verified that yes, there are elements in the array of objects, so i...
asked by 01.12.2017 / 11:10
1
answer

Print a file saved in C #

I'm trying to print from windform, it turns out that when I print the document, I get the blank sheet. This is the code with which I try to print: private PrintDocument printDocument1 = new PrintDocument(); private string stringToPrint...
asked by 06.12.2017 / 01:15
0
answers

How to get the value of a combobox

Good afternoon I have a question about the use of values in the combo box. In the combobox I have to show the names of the coffee and accessory, but the value it takes is its id. Something like this: Well, what I'm trying to ac...
asked by 26.11.2017 / 00:43
0
answers

Query with Entity Framework

Good morning, I am developing an application in ASP.NET MVC C # that calculates the overtime of an employee, I need to make a query that allows me to be able to bring the data of a table called MarcacionesBiometrico strong> which is where...
asked by 25.11.2017 / 15:24
1
answer

Why can not I install Google.Apis in Package Manager?

I try to install Google.Apis but I can not install it I get this message Someone who can help me? PM> Install-Package Google.Apis -Version 1.30.0 Attempting to resolve dependency 'Google.Apis.Core (≥ 1.30.0)'. Attempting to resolve dependen...
asked by 25.11.2017 / 16:29
1
answer

How do I change the block? Unity 3D c #

I have the following code: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BuildSystem : MonoBehaviour { RaycastHit hit; Ray ray; Vector3 Paredposition; public...
asked by 16.12.2017 / 04:54