Questions tagged as 'c#'

1
answer

C # - Write in app.config and keep the changes

I can not modify a key defined in my configuration file at the runtime (app.config) and that the change is saved when I re-run my application next time. If I check the values at runtime I see that they actually change, but when I check the co...
asked by 12.04.2017 / 15:47
2
answers

C # Access to private methods

First I want to exemplify with another topic, before touching the main topic ... reading the theoretical material that I have, if I have a class member such as class Prueba { public static void ejemplo() { Console.WriteLine("soy un ejemplo...
asked by 09.05.2017 / 04:49
1
answer

Search files on different PC disks [closed]

Good afternoon, I have an application that scans files and automatically uploads them via FTP, but I found the inconvenience that if the owner of the computer configured the images to change their location to the disk E: \ for example I would...
asked by 30.01.2017 / 22:31
1
answer

Error traversing the rows of a table in C #

I already have the basic or syntactic structure that should make my loop work, but for some reason I get this error:    Error 20 The foreach statement can not work on variables of   type 'System.Data.DataTable' because 'System.Data.DataTable'...
asked by 24.01.2017 / 20:44
4
answers

Validate Textbox

I need to validate some textbox in C# so that only whole numbers are entered, with an exact number of digits, that is, I can enter figures of 5 numbers and not greater than this number of characters. How could I do this vali...
asked by 04.01.2017 / 03:08
1
answer

Enable and disable Textbox C #

I have a form with the following fields, the problem is that I can not find what is wrong because it does not block the textbox of the first button and those that are in the second button if it blocks them, it is supposed to do the same thing...
asked by 12.01.2017 / 19:41
2
answers

license system in VisualStudio

Good Night Sres. at the end, finishing a project in VS2015 I would like it to detect when it is installed on a PC and deactivate it to avoid piracy I was reading about Sign an assembly but when I activated it and generated a .exe e...
asked by 27.11.2016 / 06:14
2
answers

Winforms C # connection with remote SQL Server

I am developing an application with winforms which I need to connect to a remote server to share the data in an intranet to different machines. The point is that I only want to install the SQL Server on the server and that the other PCs conne...
asked by 22.11.2016 / 14:58
2
answers

Look for char (13) or (10) in a field and replace it with a [closed] enter

Generate this variable that I bring from the database but in it there is char (13) or char (10) so what I want is to create a search engine where I find these two characters and convert it into another string so that it forms another my address...
asked by 18.11.2016 / 18:18
1
answer

Problem with streamreader - C #

I'm practicing with streamreader in C # and I had the following problem System.IO.StreamReader sr = new System.IO.StreamReader(@"c:\vertices.txt"); { string line; // Read and display lines from the file until t...
asked by 24.01.2018 / 23:37