Posts by Marlon Pereira • 465 points
27 posts
-
0
votes0
answers30
viewsQ: Print Datagridview data without dark background
Hello! I have a code that prints out data from DataGridView, however, I modified the colors of it. Thus the code incorporates the color of the DataGridView to the printing page. I would like the…
c#asked Marlon Pereira 465 -
1
votes1
answer108
viewsQ: How to check if client disconnected abruptly
I have this online chat code using socket and TCPListener, but when the client simply disconnects abruptly or loses connection, it is not removed from the ArrayList so-called clients. public void…
-
1
votes1
answer74
viewsQ: Invalid thread operation, Invoke method does not work
I have an online chat code, in it there is a list of logged in users on the system. There is a problem when adding the name of users on listBox; The error is as follows: Operação entre threads…
-
1
votes3
answers373
viewsQ: Error hiding dataGridView line
Hello, I need to hide all the lines from dataGridView containing in the column data, the date lower than the current date, ie with the code below I get the following error: Não é possível tornar…
c#asked Marlon Pereira 465 -
1
votes2
answers97
viewsA: Pulling repeated data from the database to Datagridview
Try to put earlier on the first line of public void CarregarGrid() the code: dgvDados.Update(); dgvDados.Refresh();
-
1
votes1
answer78
viewsQ: Hide Datagridview lines by date comparison
Hello! I need to hide certain lines from DataGridView containing in the column data a date less than the current date. I found this code, but do not know how to hide the lines with this comparison,…
c#asked Marlon Pereira 465 -
2
votes1
answer41
viewsQ: How to implement progressiBar in FTP download
I need to enter the download transfer rate by FTP on progressBar of my Form with the code below: private void Download(string filePath, string fileName) { FtpWebRequest request =…
c#asked Marlon Pereira 465 -
3
votes1
answer421
viewsQ: Open file from a network folder
Hello! I need to open a certain file located in a folder sharing done through Samba Server on Ubuntu Webmin. The code below seems functional, but I get the error code: Incorrect user or password.…
c#asked Marlon Pereira 465 -
1
votes2
answers650
viewsQ: Save file with openFileDialog
I need to select PDF files with the openFileDialog and save them in a specific directory set in a string in Properties.Settings, but the code below does not work. private void…
-
2
votes1
answer1298
viewsQ: Error: Configuration system failed to boot
I am developing an application in C# and during development I came across the following mistake: In the archive: Settings.settings there’s a string which stores the user name. Apparently this may be…
-
3
votes2
answers351
viewsQ: Sum values from a column in the database via date filter
I need to sum all the values of a column containing in each row a specific date, that is, in the database, the values are saved with the date typed in the textBox in the act of registration, and I…
-
2
votes1
answer2046
viewsQ: Decrypt MD5
I need to change this code to decrypt the data with it encrypted: public static string MD5HashCrypt(string text) { MD5 md5 = new MD5CryptoServiceProvider(); //compute hash from the bytes of text…
-
4
votes3
answers390
viewsQ: Get specific application memory usage
I need to get the memory and CPU usage of an application in c#, with the code below (using PerformanceCounter) did not get the same Task Manager value from Windows. PerformanceCounter cpu;…
c#asked Marlon Pereira 465 -
2
votes2
answers567
viewsQ: Compare current date with saved in database and return validation
I’m developing a program where there’s a 15-day trial period. When the user registers an account in the application, it takes the internet date and registers the current date and the date of the end…
c#asked Marlon Pereira 465 -
0
votes2
answers36
viewsQ: Search WEB date only
I need to search the date acts from the Internet, in the code below the return is the date, hour, minutes and seconds. public static DateTime GetNistTime() { var myHttpWebRequest =…
-
1
votes1
answer44
viewsQ: Verifying existence of shortcut
I need to verify the existence of a shortcut on the desktop of the computer, but the code below does not leave the if (!File.Exists(pasta)) private void Instalando() { string pasta =…
-
0
votes0
answers251
viewsQ: Populate combobox with SQL Server Compact data
I need to fill a combobox with data from a column of SQL Server Compact, the code I have not worked. Class Servidor.cs: public DataTable Load(string sql) { Servidor objSqlCeServerDAL =…
-
1
votes1
answer186
viewsQ: Problem when displaying one form within another
I’m having trouble displaying one form inside another through a panel. The point is that by modifying the state of the main form of WindowState == FormWindowState.Normal for WindowState ==…
-
3
votes2
answers227
viewsQ: Changing opacity of one form through another
I need to change the opacity of the main form every time the user clicks on the close button. When he clicks on this button the opacity is in this.Opacity = .75; and opens a new form asking if he…
-
1
votes1
answer783
viewsQ: Populate chart with mysql data
I am developing an application in C# and need to fill a graph with the amount of data registered in 3 Mysql tables. It is as follows: The graphic should inform the user in different columns how many…
-
0
votes1
answer100
viewsQ: Comparison of database dates with system date
Hello! I need to compare the month of registration of information present in a database table with the current month provided by the system. In the database I register in a column the number for the…
-
0
votes0
answers85
viewsQ: Date notice in the app
I’m developing a C# application in Visual Studio. In this application there is a screen that informs the amount of events that the user has today, tomorrow and the day after tomorrow (table with…
-
0
votes2
answers3339
viewsQ: Save image in directory without Savefiledialog
I am developing a stock control application and in this application there is a product registration screen: The images of the products are being saved in the Mysql database. I received some tips and…
-
0
votes1
answer209
viewsQ: Filestream file directory and extension
How to specify the file creation directory and its extension? byte[] vetorImagem = (byte[])cmdSelect.ExecuteScalar(); string strNomeArquivo = Convert.ToString(DateTime.Now.ToFileTime()); FileStream…
c#asked Marlon Pereira 465 -
2
votes1
answer182
viewsQ: Microsoft SQL Server for Mysql
I need some help. I downloaded a project in c# stock control, but the database is by Microsoft SQL Server, and would like to use Mysql for connection and data logging. Follow example of connection…
-
-4
votes2
answers73
viewsQ: Change of logo with CSS3
I need a CSS3 code to automatically switch 20 logos with fade, without the previous logo appearing on the back. But I have no idea how to do it! Someone can help me? (If someone answered the last…
-
0
votes0
answers933
viewsQ: Top bar for Login
I have a top bar on my site, for login client. Such bar is integrated with WHMCS, but I want that when the client is logged in, the bar changes from (LOGIN) for (Olá! Fulano), with some WHMCS panel…
htmlasked Marlon Pereira 465