Questions tagged as 'c#'

1
answer

Share objects in various ways

Hi, I have a problem when I try to share objects between forms. I have a ConfData object in which I have several attributes that I want to update between the different forms that I have. The code is as follows: public partial class Conf...
asked by 15.02.2018 / 10:07
0
answers

Problems with background video in Storyboard in Xamarin iOS (not in Xamarin Forms)

I need to insert a video background of my application (Login). I'm using this code in the ViewDidLoad method MPMoviePlayerController mpPlayer; mpPlayer = new MPMoviePlayerController (NSUrl.FromFilename...
asked by 22.02.2018 / 12:50
0
answers

send RadioButton with SendKeys.Send ();

I am sending information from a windows form to a form. The problem I have is that the How to send Radio buttons? method: private void button2_Click(object sender, EventArgs e) { DateTime fecha = Convert.ToDateTime(txtFecha.Text);...
asked by 21.02.2018 / 12:24
1
answer

Pass Array with numbers to SqlServer, split and insert the data

Here I bring my problem. I use SqlServer 2014 and VisualStudio 2015 I have an Object named CashRegister which has these attributes: public class CashRegister { private static CashRegister CashRegisterInstance; public int? Id...
asked by 16.02.2018 / 18:38
0
answers

Upload stream by ftp

I have this function that uploads the image of a signaturepad via ftp to a folder; the situation is that the file actually goes up, but it is not the image as such, I do not know what I can miss: private async void onSaveAsync(object sender, E...
asked by 16.02.2018 / 22:48
0
answers

ForeColor in Gridview column

I have a condition on the page load of my page to disable a LinkButton and change the color of the letter. The Enabled attribute works but ForeColor does not, here's my code: if (!Page.IsPostBack) { LlenarGridview(GridView1_Persona, Datos)...
asked by 12.03.2018 / 01:32
1
answer

Error in System.Windows.Forms.Control.inCrossThreadSafeCall

Good morning, I have an application that in a given moment throws a Thread, inside that Thread it is called a user control where an image is put in a button inside the user control. The user control has a list of Tuples composed of a TextBox...
asked by 31.01.2018 / 11:10
0
answers

How to generate a report of the files that contain a Winrar, using c #?

Good afternoon, Since a couple of days ago I am trying to generate a report of the files that contains a Winrar, the program "Winrar" brings it in a native way, but I need it for a file manager, since my users request that it be give them the...
asked by 31.01.2018 / 22:13
0
answers

About Events in the JStree

I am using a jstree in a .net mvc5 application but when I load it with the root node closed and it does not show the child nodes, I have to double click to expand, as I can make it open by default in the first level, and that when a single click...
asked by 30.01.2018 / 21:18
0
answers

error 26 sql express using entity framework

Hi, I'm starting to study c # and I'm using visual studio community 2013 and sql express. Employment entity framework. I use the model first concept to generate the classes and the database. I have several questions to see if you can help me:...
asked by 26.01.2018 / 02:34