Questions tagged as 'c#'

1
answer

Syntax problem of the SQL statement in Visual Studio C #, with Access

I am new in the world of programming; This semester the professor has put us a project in C# , managing the database in Access (I use the Access 16, since I have the license of it). The problem is that when I save the data of one...
asked by 14.07.2017 / 00:43
1
answer

Execute code when a timer expires

I have an application that receives data sent from another computer through UDP. My problem is that I need to know when the other team stops sending messages through the network, because when listening to the listener, it only does that ... and...
asked by 17.04.2017 / 17:56
3
answers

Remove from the database the selected record in the Listvew (Using Entity Framework)

Continuing with the example of Listview show two fields in each row Visual Studio Community 2015 + SQLite + Entity Framework The database has 2 fields: ID and ShipType Class for mapping the database: namespace ImperialFleet { public...
asked by 20.11.2017 / 15:00
1
answer

Convert image to base64 to view it in a view

Through a web api I am getting the path of an image stored on the server. The path is a string that I convert to an array of bytes and then convert it to a base64 image. When I visualize the image in the view, it does not throw an error but it d...
asked by 26.05.2017 / 19:47
1
answer

How to Overload Operators

You can Overload operators but I can not understand clearly ¿Como es su sintaxis correctamente y simple? y ¿Para Que puede ser utilizado? surfing the web found different very confusing examples that are not clear which causes me a higher...
asked by 11.04.2017 / 01:23
3
answers

Object reference not set as an instance of an object. Problem with Datatables in C #

How can I get the record of my selected row? What I would like is that when selecting a row this selection I return the record to then get its Id and finally make an update in case of any modification. Current code of the method to mod...
asked by 03.04.2017 / 23:32
1
answer

Memory problem with a Threading.Timer pinging

Good morning, I just started in the world of C # and I'm having some problem. The application works fine, but the memory consumption grows too much and reaches a point that ends up overflowing. It is a form, which every 10 seconds consults...
asked by 17.03.2017 / 10:30
3
answers

Insert records with checkbox C #

I am registering registrations in C # ASP.NET with SQL Server, the problem is that I do not know how to declare the checkboxes so that when one or more are selected they are registered in my table. This is what I have: The table sex and age are...
asked by 24.01.2017 / 19:31
1
answer

Get FileStream from N files

Hello everyone, how can I save the stream of files stored in a folder in an array? This is my code: string ruta = @"C:\"; foreach (string s in Directory.GetFiles(ruta)) { //Obtengo en (s) todos los archivos almacenado en la carpeta FileStrea...
asked by 23.01.2017 / 20:41
2
answers

TextBox does not select the text when I click on the

I have an application that has a main form (frmPrincipal), within it there are several elements, one of them a groupbox, and this groupbox has been added as controls several forms (frmClaves, frmDatos, ...). Each of these forms has several eleme...
asked by 15.02.2017 / 16:14