Questions tagged as 'c#'

1
answer

Build UserControl views "dynamically"

I try to create a certain number of views depending on a value and add them to the main view, in a StackPanel; private void ConstruirFilas(int numFilas) { for (int i = 1; i < numFilas; i++) { StackConfigu...
asked by 07.02.2018 / 19:50
1
answer

filter data datagriddview, data table C #

Is it possible to filter data from a datagridview without first loading the data? Is that I have a data gridview that I load with information from the active directory which I assign to a datatable and later this datatable I assign it as datasou...
asked by 06.02.2018 / 19:11
1
answer

Error getting the name of the client PC from the server

That, it turns out that I have a problem in my production site, that when I publish my code, I get the following error:    System.Net.Sockets.SocketException: Unknown host The reason is because I am trying to get the name of the PC on a c...
asked by 20.12.2017 / 15:54
1
answer

How to read the serial port (scales) from c # [closed]

I have a problem wanting to read a serial port from c # (Scale) the "DataReceivedHandler" method is never released private static SerialPort puertoSerial; public static void InitSerialInterface(string puerto, int baudios) {...
asked by 14.06.2018 / 19:36
1
answer

how to add data to a Listview?

private void button1_Click(object sender, EventArgs e) { ListViewItem lista = new ListViewItem(textBox1.Text); lista.SubItems.Add = (textBox2.Text); lista.SubItems.Add = (textBox3.Text); listView1.Items.Add(lista); listView1....
asked by 13.06.2018 / 08:15
1
answer

Facebook: The parameter app_id is required

It turns out that I am developing an application using Xamarin for Android consumption and well, the problem is when I want to authenticate my app with Facebook, I followed this tutorial (I used the Xamarin.Auth package) link but I got the f...
asked by 12.06.2018 / 09:02
1
answer

Why when I try my game on android does not send me to the scenes I want?

I have this code: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class intro : MonoBehaviour { // Use this for initialization void Update () { StartCoroutine ("ret...
asked by 10.12.2017 / 02:55
1
answer

An error occurred during the compilation of a resource required to service this request / Models

Hi, I made some changes to this table in my database and now I'm having problems with my data model. Trying to get my data I got the following error. I understand that the error is in data model, now I must change it to be similar to my new t...
asked by 08.12.2017 / 19:34
1
answer

I get an error when saving image: A generic error occurred in GDI +. C #

It turns out that I'm trying to save an image on my computer, but I get the following error:    A generic error occurred in GDI +. The code I have is the following: private static void StartBrowser(string source) { var t...
asked by 03.12.2017 / 20:09
1
answer

Read xml without path

What a good day, I've seen many examples of how to read xml files, but they do it from the path of the file. However, I want to search the xml files. with the OpenFileDialog (It should be noted that the xml have the same structure, the nodes do...
asked by 04.12.2017 / 22:31