Questions tagged as 'c#'

1
answer

Attach document in mail with c #

Is there a way to attach a document previously created by iText? Currently I have a button that is "Generate offer", create the document by itext, and if you have an activated checkbox it asks if you want to send it by email and opens the mai...
asked by 10.09.2018 / 12:34
4
answers

Can I close several Form at once and leave one open in C #?

I have a login and a menu, and in turn the menu has several forms. What I want to do is that by clicking on close session in the menu, it closes (if any) the other forms and opens the login.     
asked by 13.10.2016 / 04:49
2
answers

Convert from Decimal value to DateTime

I get values from my DataTable from the database, and the data I get are in decimals example (20160901) which in this case would be September 01, 2016 but I can not convert it to date format with the method Convert.ToDateTime ( ); Does anyone...
asked by 17.01.2017 / 01:17
2
answers

Select some gridview rows to display in ASP.NET webform2

Good morning, I have a gridview to which I insert data with a datatable which works perfectly, it complicates me when placing a row checkbox so that the user can select the row he wants to perform his management. This is the HTML code:...
asked by 25.01.2017 / 21:56
2
answers

Monitor process when closing C #

I have a problem with the following code, what I try is that a process calling ffmpeg that runs inside the system is closed giving a warning that the work is finished. private void btnIniciar_Click(object sender, EventArgs e) {...
asked by 16.01.2017 / 05:15
1
answer

Can a class be made that "contains" other classes?

For example: public class A { //propiedades y metodos } public class B { //propiedades y metodos } // y luego: public class classContainer { public A class1 {get; set;} public B class2 {get; set;} } How would I access...
asked by 11.07.2018 / 19:10
1
answer

c # error when calling a Thread class from my main class

   The thread consists of moving the gif private void btn_start_Click(object sender, EventArgs e) { if (nuevo == true)//si es la priemra vez que has pulsado el boton { //pedir datos del personaje...
asked by 04.08.2018 / 20:20
2
answers

Minor Search does not work properly

I'm just learning to use C # in classes, and in an exercise of searching for adults and minors (with procedures and vectors) are the minors who do not deliver any value and the truth no matter how much I review it I do not find the irregularity...
asked by 10.08.2018 / 04:34
3
answers

last record entity C # windows form

Hello I hope you can help me I'm trying to get how many records my sql table has I have the following public int ultimoRegistro() { var LastRecord = (from c in db.Alumnos orderby c.IDAlumno descending...
asked by 09.11.2018 / 23:39
2
answers

Can a variable be used in different loops?

I know it's very basic, but I just started with programming. It would be about c #. I want to count down from a number to 0 using 3 different loops that are in the same method (button1_Click). Can I use the and as a variable for the 3 loops?...
asked by 12.11.2018 / 01:33