Questions tagged as 'windows-forms'

2
answers

Get varbinary (50) from SQL Server to byte [] in C #

I'm doing a Login , in which the user's password stored in the Database is of type varbinary(50) I must recover this value, to later compare it with the key string entered by the user. In the Database I have the following:...
asked by 06.04.2018 / 15:27
2
answers

How to call an image from C #, stored in SQL Server. Using Stored Procedure and Entity Framework

I have this code made so far where I apply the SP "InsertEmployee", it adds records to the BD: var Insertar_NuevoEmpleado = _empleados.InsertarEmpleado(txtcedula.Text, txtnombres.Text, txtapellidos.Text, txtcargo.Text, txtdepartamento.Text, Co...
asked by 26.02.2018 / 19:27
1
answer

How to add marked items to a checklistbox and how to delete them

The objective is that in a cheboxlistbox the elements of a textbox are added, these are marked and then I can select and delete these elements of the checboxlistbox. In the checklistbox I must add items to the list, and when they are added, they...
asked by 28.02.2018 / 18:27
2
answers

Why do I get "System resources exceeded" C # Access?

I'm working with c # and access, this is my code: foreach (var item in alumnos) { OleDbDataReader reader = Connection.Read("SELECT * FROM Estudiante WHERE cod=" + item.cod);...
asked by 09.10.2017 / 16:44
1
answer

File path problems when creating the project installer with ClickOnce

I have created an installer for my C # project with clickonce, but I have a problem with my file path, in this case with rdlc files (reportviewer), I declare it as follows: String rutadocumento = (Application.StartupPath).Replace("\bin...
asked by 08.08.2017 / 18:02
1
answer

Error extracting data with WebBrowser by ID

In an application WinForms , my code extracts without problems the data of a web with this code: Elemento3.Text = WebBrowser1.Document.GetElementById("Elemento1").InnerText Elemento3.Text = WebBrowser1.Document.GetElementById("Elemento2"...
asked by 23.07.2017 / 00:15
2
answers

How to show an image before ending an event? - C #

I'm trying to make a loading for a section start form. I have put an animated gif to make the loading effect. What happens is that when I use the property loading.Visible = true it is not visible until the event click ends. H...
asked by 22.07.2017 / 17:22
1
answer

Text field in custom user control as in the TextBox

I'm doing a custom user control. public class MiControl:UserControl { public string _Cadena{get;set;} = ""; ... } I add it to a windows.forms and in the properties window it shows me this to be able to assign a val...
asked by 31.01.2017 / 21:17
2
answers

Change the color of a day in the Winforms Calendar control

I would be grateful if you could tell me if there is any way to change the color of a set of days in the Windows Forms Calendar control. It would be for the Framework 2.0 I have searched to see if there is any method or property that a...
asked by 01.12.2016 / 12:28
1
answer

How do I generate labels dynamically in my for each?

What I would like to do is a list of all my uploaded images, which are in a folder of my application, this folder already contains images and I would like to put them in a list of labels, until now my code is as follows: Code Listing Images:...
asked by 20.02.2017 / 20:02