Questions tagged as 'c#'

1
answer

c # export data from a datagridview to excel with coumline names

I have a problem Create a class to export the datagridview files to excel but when I export it, only the data appear, I would like the names of the columns to appear as well. this is the code used. public void ExportarDataGridViewExc...
asked by 24.01.2018 / 08:15
1
answer

Error finding the path to save a txt file

Good morning, I have a web in c # asp.net and in which I have to access a folder to save some txt files. What happens is that when I run it from a visual studio I can read and write the files in the folder normally, but if I publish it in IIS, i...
asked by 24.01.2018 / 17:25
1
answer

How to create a list in c # [closed]

How to make a generic list of your own without using List < & gt ;? To which I have come following some examples done in class but implemented in java: public class ListaGenerica<E> { private int size = 0; private E[] data;...
asked by 11.10.2017 / 04:04
1
answer

How to draw line in bitmap and picturebox in C #?

At the moment of drawing pixels it does it perfectly, but when drawing the line it does it in the wrong way, drawing the line out of the range of the second pixel. I leave the code of the form in case someone is so kind to help me, I would gr...
asked by 28.09.2017 / 07:48
2
answers

How can I access a label from another class?

I think the question is simple, I have two classes. I'm sorry if the way to program the theme of the thread is a bit sloppy. The thing is this class throws a thread that refers to the method abrirTTelnet(); of the class Telnet serve...
asked by 18.10.2017 / 14:27
1
answer

Return Values from a List c #

Good, I would like you to help me. I am commenting that I am doing a webservice that returns me in a List , I am using Dos Capas in: 1.Web Service 2.Capa Datos The Code of my Webservice is the following: public class Heldesk : System.We...
asked by 15.10.2017 / 15:37
1
answer

Run two methods but wait for only one

I need to run two methods Metodo1(); Metodo2(); The first one should be executed normally after this I must return to the interface and leave in background the method 2 since it takes a little longer and does not return anything to t...
asked by 08.09.2017 / 15:32
1
answer

How to achieve shadow effect in Wpf

This is the effect I want to achieve Pd: I have already tried with gradients but I do not get the desired effect. <LinearGradientBrush StartPoint="0,0.1" EndPoint="1,0.10" Opacity=".4" > <GradientStop Color="#7c7c7c" Offset="0....
asked by 31.08.2017 / 22:53
1
answer

Error converting datetime to string

Could help me with an error when adding the data of a date I mark a conversion error, I mark the conversion error from date to string, I am using windows form, in the database the date I have it as DATETIME , It's a datepicker, I have a class ca...
asked by 18.09.2017 / 20:25
1
answer

Add permission to a .log in the program folder

You can add permissions to a specific file from c #, I mean, I have a desktop application developed with c #, the app works correctly for me, but when the inslog and the .log are left in the program folder (which is in c: / program files / miapp...
asked by 19.09.2017 / 15:46