Questions tagged as 'c#'

2
answers

Ask to fill in a field c #

Well, what happens next I'm trying to ask for a field in case it's blank I have the following, I have a textbox with name txtEdad then I put it like that int edad=Int32.Parse(txtEdad.Text); if(txtEdad.Text=="") { MessageBox.Show("Debe...
asked by 23.09.2018 / 22:21
1
answer

how to identify that the attribute of an object is a class type? C # [closed]

I'm doing a method in c # where I traverse an object taking out its attributes, its properties and see the value of the properties, but some of these attributes are classes that in turn contain more properties, I must access them, to I am doing...
asked by 21.09.2018 / 16:26
1
answer

How can I pass an image of a windows forms panel to crystal report? [closed]

I want to know how you can pass an image from a panel to a Crystal Report report. The image is a bar code that I generated, and I pass it to the report, but I can not pass the image to the report How can I pass the image?     
asked by 19.09.2018 / 15:37
1
answer

Find an object in a List where 2 equal objects do not have the same instance

I'm wanting to fill a comboBox with a series of Matters but I do not want it to be repeated. What I do is go through courses already filtered for the student that contain a subject id. listaCursos = curlog.GetAllFiltrados(); foreach (C...
asked by 12.10.2018 / 15:05
1
answer

Difference when initializing values of a class?

I have a class with too many variables, I need to initialize the values empty depending on the type of data, I see that I can do it in two ways: public class Documento { public Document() { Tipo = ""; Numero = ""; }...
asked by 19.09.2018 / 21:44
1
answer

DATATABLE DOES NOT SHOW BUTTONS

I AM USING DATATABLE FOR MY DESIGN BUT I HAVE A PROBLEM WITH THE EXPORT BUTTONS, THEY ARE NOT VISUALIZED, MY JS IS $(document).ready(function () { $('#listaDocumentos').DataTable(); }); var table = $('#listaDocumentos').DataTable({...
asked by 23.10.2018 / 18:15
1
answer

How to use the radio button c #

I have a problem in the university that simplified comes a time where the interface asks the user if he has a card or not and I do not know how to do a subprocess depending on his answer, I leave my code the interface and the statement for see i...
asked by 19.08.2018 / 02:14
5
answers

Make a query with LINQ to entities

var query_actualizar = from x in ctx.banner let orden = ctx.banner.Where(y.id_banner == id_banner).First(y=> y.orden) where x.orden > orden select x; foreach (banner ord in query_actualizar) { ord.orden = ord.ord...
asked by 19.12.2016 / 15:27
1
answer

Problem with MySQL and Visual Studio [error when adding to table] specifically ExecuteNonQuery ();

The error appears on line 43 when trying to insert data. Specifically where it says int filasafectadas = cmd.ExecuteNonQuery(); Here I leave all the code.    MySql.Data.MySqlClient.MySqlException: 'Column count does not match   value c...
asked by 05.10.2018 / 03:33
2
answers

framework 2.0 read appsettings from web.config

I am working on an application that is compiled with framnework 2.0 for compatibility reasons, you can not pass the app to another framework. I need to read a value from the web.config file from the appsettings section. Does anyone know any w...
asked by 16.08.2018 / 17:11