South::CodeFF
Just some stuff from a bunch of LV coders
  Menu
Skip to content
  • Home
  • Copy-paste material

Monthly Archives: August 2019

Adding separator line in WinForms

By Vampire | August 28, 2019 - 8:40 am |August 28, 2019 .NET, Code snippets, WinForms
Leave a comment

To create a separator you need to add a label element to the form. Then you need to set the following parameters to it:

  • AutoSize: False
  • BorderStyle: Fixed3D
  • Size.Height: 2

Or in code:

lblSeparator.AutoSize = false;
lblSeparator.Height = 2;
lblSeparator.Width = 300;
lblSeparator.BorderStyle = BorderStyle.Fixed3D;

Listing all files (recursively) in PowerShell

By Vampire | August 1, 2019 - 7:26 am |August 1, 2019 Code snippets, PowerShell
Leave a comment
$files = Get-ChildItem -Recurse -Path "C:\path\to\root\folder"

foreach($file in $files)
{
    if(!$file.PSIsContainer)
    {
        Write-Host $file.FullName
    }
}
  • Recent Posts

    • MQTT C#
    • develop Notepad++ plugins (in c#).
    • Windows Service Creation
    • Actions with retries
    • Adding separator line in WinForms
  • Recent Comments

    • Archives

      • March 2021
      • September 2020
      • February 2020
      • November 2019
      • August 2019
      • July 2019
      • June 2019
      • May 2019
      • March 2019
    • Categories

      • .NET
      • Active Directory
      • cmd
      • Code snippets
      • PowerShell
      • Practical physics
      • SQL
      • Stupid
      • Uncategorized
      • Unity
      • WinForms
    • Meta

      • Log in
      • Entries feed
      • Comments feed
      • WordPress.org
    "I reject your reality and substitute my own."
    South::CodeFF | Powered by Mantra & WordPress.