Search results for query: *

  • Users: Gloops
  • Content: Threads
  • Order by date
  1. G

    Changes in Registry ?

    Hello everybody, On my previous machine, I had this to read a value in the registry: private bool getReg() { object v = Registry.GetValue( @"HKEY_CURRENT_USER\Console\SonsTest", "JouerSelectReminder", 4...
  2. G

    Resolved Garbage written in StreamWriter

    Hello everybody, With this instruction : sw.WriteLine($"{DateTime.Now} ; {iNbTickets,2}"); a log is written. This application works quite well for several months, it is on its third machine now. A few lines written per week. On one line, a certain number of null characters have been added at...
  3. G

    Lock on a database file

    Hello everybody, On a SQL file database (MDF file), SSMS raises me an error when I try to display the data of a table : Activity Monitor Log SyncLock called without an initialized synchronization object When giving it the path, ProcExp only finds explorer.exe, and it is normal as I...
  4. G

    Resolved Hiccup in Visual Studio Community 2019, about Windows Forms

    Hello everybody, I have a Visual Studio 2019 Community installation, that recently appeared unable to create a Windows Forms project, or a form on an existing project. Two times, in Visual Studio Installer, in the individual components tab, I unchecked and then checked again the "C# and Visual...
  5. G

    Resolved Getting place for a panel

    Hello everybody, I am going to describe a situation that I presume several of you have already met. I added controls on a form that is somewhat heavy as a GUI, so there is not that much place available left. Then, I realized that the controls I added would me much better on a panel, either...
  6. G

    Resolved Division by zero when inserting items in a ListView

    Hello everybody, I got my machine back after the hard disk has been changed. I improved a few programs, everything OK. I developed a program to list the files in a directory, the user wants the second line of the file to be listed, it was no problem to display that in a RichTextBox (except I...
  7. G

    Resolved Is the task bar visible or not ?

    Context Hello everybody, I want to display the state of the keyboard on the status bar of the active application. For this, I have to take into account whether the application is displayed full screen, in which case the status bar of the application is down the screen, otherwise it is above...
  8. G

    Resolved Rename

    Hello everybody, Visual Studio has a Rename tool, that by default Visual Studio 2022 Community Edition calls with Ctrl+R twice. It displays a dialog box with no input control. So, how is the tool supposed to know what new name we want to give to the selected element? Or is that problem...
  9. G

    Resolved Click through

    Hello everybody, I intend to provide a (new version of a) form to show the state of the keyboard, when the Windows taskbar is not visible : caps lock, num lock, ins, scroll lock. It will have an opacity adjustable with a slider. When the user clicks on it, I should like the click to be...
  10. G

    HtmlDecode

    Hello everybody, If I have a window with a path to "file:///D:/T%E9l%E9chargements" and I want it to be displayed "D:\Téléchargements", I have to use HttpUtility.HtmDecode. For that, I must reference System.Web. This is stored in several places. What is the preferable one, for a WinForms...
  11. G

    Updating a list

    Hello everybody, I wonder whether I missed something. A ListBox is based on a list: List<Window> windows = new List<Window>(); In a .Net 6 project, I browse the list to load the ListBox: //while reading a file: while((line = sr.ReadLine())!=null)...
  12. G

    About Powershell in Windows Forms

    Hello everybody, The question has already arisen about Run PowerShell in WinForms, which intrinsically is questionable, but sometimes gives a good help in giving a results quickly. I proposed this : Process p = new Process(); p.StartInfo = new...
  13. G

    Difficult installation of SQL Express

    Hello everybody, Last year, SQL Express 2017 installed easily and I thought it ran well since then. Nevertheless, since a problem with "automatic instance" raised the alert that my disk had problems, that were solved with CHKDSK /R /F until I compare free and charged tools for disk management...
  14. G

    disk troubles

    The eventvwr tells me ten times a second that my disk has a defective sector, and CHKDSK tells that no error was found, no action is required. Easy, is not it?
  15. G

    Currency format and localization

    Hello everybody, I have a problem that appears in WinForms, but as the currency format is involved I think the context is larger. I have a unit price that is displayed with format C2, i.e. currency with two decimal digits. OK. At execution I realize that this format ends with...
  16. G

    Headers in a DataGridView

    Hello everybody, In WinForms, the DataGridView control has RowHeadersDefaultCellStyle. I get it with MiddleCentre alignment. Nice. At execution I get all headers aligned on the left. In Northwind database, the product table has a product Id. It is a number, the data is aligned right. It has a...
  17. G

    MessageBox and subtleties

    Hello everybody, My MessageBox displayed the message, but behind other windows, and with the mouse cursor in the middle of the message window instead of the middle of the button. Furthermore, after I positioned the mouse cursor, the previous position was still visible, so I saw two mouse...
  18. G

    Resolved Windows API : where ?

    Hello everybody, For a question involving InteropServices from C#, am I in the good forum, or is there a more specific one ?
  19. G

    Resolved How do I declare the generic BindingContext ?

    Hello everybody, A method adds items in a ListBox, in a WinForms project on .Net 5. I should like the ListBox to systematically display the last item at the moment it is inserted. After adding the item, I could change the selectedItem, of course. But I feel it would be more stylish, in fact...
  20. G

    Resolved Abandon

    Hello everybody, I am treating the request of abandon by the user, in a recursive treatment (in a WinForms project, .Net 5.0). The user has depressed the escape key, and thanks to GetAsyncKeyState, a confirmation has been given, and flags positioned, first to abandon current folder, and then...
Back
Top Bottom