Questions tagged as 'c#'

1
answer

System.InvalidOperationException working with threads

The code is as follows, below the explanation .. Thread hilo = new Thread(NuevoHilo); hilo.Start(item); private void NuevoHilo(object item) { rtxMensajes = new Mensajes().NuevoMensaje(rtxMensajes, item.T...
asked by 01.10.2017 / 17:41
1
answer

Post Order (back and forth to BackEnd) from angularjs

I am trying to insert sections in a Database, to the whole insert I use with C # in controllers (My project is a WebApi). What I want is for you to make an insert in each cycle of the for. But the controller goes only once, and that's when the w...
asked by 25.08.2017 / 22:49
1
answer

Roles, Permissions asp.net c # sql server

Good, I would like you to help me, I'm doing programming language asp.net c # and sql server roles and user permissions: I have these following tables in Sql Server: Table Roles ID_Roles Rol_Cargo Rol_Estado 1 ADMINIST...
asked by 29.08.2017 / 22:08
1
answer

Compare items from the same list

I am working with Visual Studio 2015, WPF app. I need to compare elements of the same list. The scenario is the following I am obtaining positions of the hands with the Kinect device which does it in three dimensions X = valor , Y =...
asked by 07.11.2017 / 20:39
1
answer

Change the port of a WebService

Good morning, I have programmed a WebService in C # with Visual Studio 2017 and it works perfectly. The problem is that once implanted in the production server IIS is listening on port 80, and they ask me to go listen on port 8282. Can you...
asked by 16.10.2017 / 19:42
2
answers

Create JSON with its own structure

I'm new to creating JSON, I'm trying to create a JSON in C # which I can do it in a basic way, that is, with the basic structure. I need to obtain the following structure as a result: { "Encabezado ": { "InstitucionId":...
asked by 20.10.2017 / 17:39
2
answers

Login with user type (administrator / normal) using c #

Currently this is my code but it does not open the form for administrator or operations but it does identify what type it is. Enter if 1 or 2 but do not load the following form. public void logear(string rut, string pass) {...
asked by 14.09.2017 / 04:31
1
answer

C # Increase by 1 the value of a Dictionaryint, int with LINQ

I have the following dictionary Dictionary<int, int> datos Which contains the following key-values: [0, 2015] [1, 2016] [2, 2017] My goal is to increase the value by 1 ( with LINQ ) so that it stays like this: [0, 2016] [1, 201...
asked by 20.07.2017 / 11:38
1
answer

Control characters string c #

my question is how I can do to control the number of characters, eg when I ask you to enter enrollment you must enter ASD (only 3 characters) and not ASDASF (so it would be wrong) Console.Write("Ingrese matricula del vehiculo : ");...
asked by 19.07.2017 / 19:30
1
answer

Windows Forms control of file and folder explorer [closed]

Is there any control of Windows Forms style browser of Windows files and folders but that allows to select several files and folders at the same time? Something like this: I found a third-party control on the web called Enhanced Brow...
asked by 30.06.2017 / 18:32