Tuesday, March 31, 2020

How to Stop Network Activity from Waking Your Windows PC

Run Windows Device Manager. To open it, press the Win + R keyboard combination, type “devmgmt.msc”. See https://www.howtogeek.com/170716/how-to-stop-network-activity-from-waking-your-windows-pc/ for more details.

Under Network adapters, find the appropriate adapter, select Properties, Power Management, unclick "All this device to wake the computer"


Monday, March 23, 2020

Removing empty lines in text using Visual Studio

Click ctrl-H to bring up the search window
Click: Use Regular Expressions
For the search term, put in: ^(?([^\r\n])\s)*\r?$\r?\n
For the replace term, delete everything

Thanks to https://stackoverflow.com/questions/12453160/remove-empty-lines-in-text-using-visual-studio

C# Creating a Picture at Runtime in a windows form app

Add a PictureBox to the form. It will be called PictureBox1 See post:  https://docs.microsoft.com/en-us/dotnet/desktop/winforms/advanced/how...