Questions tagged as '.net'

3
answers

Transform document docx to html

I have a document docx already saved in bytes[] and I need to pass it to html to be able to display it on a page. I'm using Visual Studio with .NET to develop it in C #. Currently I already work from pdf that is easy to trans...
asked by 30.06.2016 / 16:57
1
answer

Why can not I close the window when I validate TextBox with ErrorProvider in C #?

I'm doing validations in C # with ErrorProvider. Validations are about TextBox . //Llama al método valida para decidir si el TextBox está vacío. private void textBox1_Validating(object sender, CancelEventArgs e) { valida(sende...
asked by 21.02.2018 / 15:31
2
answers

String.format vs. StringBuilder vs. String.Concat vs string + string

I'm doing a log in .Net which before and after each process will be filled string with the message: "proceso x realizado \n" "proceso y saltado \n" //porque o se realiza x o y "proceso a fallo al sumar \n" "proceso n [...] \n"...
asked by 24.02.2017 / 00:40
2
answers

Are these expressions the same?

Good, fiddling with C # and C ++ I've found that the following type of expressions is valid: int A, B, C, D, E; A = B = C = D = E = 1; According to this action, I am assigning 1 in E , E in D and so on, until the end....
asked by 02.06.2016 / 22:12
3
answers

LINQ query in .NET VISUAL STUDIO

I need to translate the following query from SQL to LINQ in .NET with C #: This is the SQL query to translate: SELECT COUNT(id_documento) FROM documento I need the value to be stored in a variable or to capture the n...
asked by 08.04.2018 / 06:09
4
answers

Insert data in SQL Server without being installed on my computer

I want to know if there is any way to insert data in a database that is in SQL Server without having any of the versions of this installed or have Visual Studio installed e my team. These are the data I have: server = tcp: "Link to...
asked by 23.02.2017 / 18:01
3
answers

Merge cells in DataGridView VB.NET

The question I have is, how can I combine cells in a DataGridView? In my VB.NET project I have a DataGridView that shows information from a table in my MySQL database in the following way: And what I want is to combine the celas of t...
asked by 12.05.2016 / 16:55
2
answers

Replace "Async / Await" with "Backgroundworker"?

Greetings to all: I have known for a long time the BackgroundWorker and although it was complicated to get to understand its operation, I use it satisfactorily despite the limitations it poses. I am taking my first steps with Async/...
asked by 19.05.2017 / 10:56
1
answer

Send mail and attach file with a web service

What I want is to be able to send an email with data that is digitized from my Windows CE project, the problem is that I create the website and put my two codes both the email and export data to excel but then two problems arise. With the s...
asked by 23.08.2016 / 18:06
3
answers

Get a match in a text with regular expressions

I'm doing a practice in c # and I would like to know how I can get a substring of a string that meets some requirements. For example, I would like to take out what corresponds to a IP that would be 192.168.1.1 . I had thought about re...
asked by 28.04.2017 / 17:14