Questions tagged as '.net'

2
answers

Difficulty transcribing a console application program for windows form (C #)

I was learning to use split and in the end I had this code: namespace String_Split { class Program { static void Main(string[] args) { string mensagem_completa; string palavra; string...
asked by 07.10.2015 / 18:53
1
answer

Monitor opening of Forms C #

I need to monitor the opening of Forms inside a C # application. For example, every time you open a Form within the application, the application must either execute a method or trigger an event with open form information. I researched and found...
asked by 16.01.2017 / 13:46
1
answer

Transferring files over a network C #

I wonder if there is any way to transfer files on a local network without using the C # Socket Class? and in terms of performance what is the fastest method of transferring files on a local network?     
asked by 13.01.2017 / 20:05
1
answer

How to do text truncation without cutting .Net words?

I'm trying in a number of ways to days but I have not been able to get this script to get the value of <h3> and return the text to it truncated. JavaScript: <script type="text/javascript"> function truncar() {...
asked by 27.09.2016 / 14:31
1
answer

How to show error message?

I am developing a C # registry in Visual Studio and have created a method to add a new registry to the database. The method is as follows: public static bool Inserir(Usuario pUsuario) { try {...
asked by 09.12.2016 / 16:56
1
answer

What is the difference between Exception.Message and Exception.ToString ()?

I have already read some answers regarding try-catch and Exception s, but I still have doubts about the difference in Exception.Message and Exception.ToString() : What's the difference between one and the other?...
asked by 08.08.2016 / 14:39
1
answer

How is SecureString encrypted and stored?

The SecureString class is used to represent text that must be kept confidential in memory (passwords, card numbers, balances, and so on), and performs its correct deletion from memory when that text is no longer necessary. How is this...
asked by 22.11.2017 / 14:40
1
answer

How to sort a List of Strings?

I have List<List<string>> and need to sort the main list according to some elements of the secondary see the illustration below. Ineedthefirstleveltobeinalphabeticalorder,andthesecondlevelisinascendingorderbutaccordingtoth...
asked by 30.01.2017 / 23:57
1
answer

Library that matches the interpolation string of C # 6.0 at runtime

Does anyone know of any library that does run-time interpolation in strings? I know it would be possible to do using Replace() , but I do not want to go through the list with all the variables. For example: Programa de classe {...
asked by 22.06.2016 / 15:25
2
answers

Exception with timestamp in the database

I want to separately insert the time and date into the database, which have the timestamp and data fields, respectively. And I have the following code to add the fields: sqlInsertCabecalho.Parameters.AddWithValue("@colaborador",...
asked by 22.04.2016 / 16:19