Tool: Visual Studio, Visual Studio Code, PSScriptPad, PowerShell Module
Version:
When I have a long multiline label with WinForms the designer converts it to:
$PrivacyWarningLabel.Text = $resources.GetString([System.String]‘PrivacyWarningLabel.Text’)
but does not put the text into the resource file. I have tried this with a completely blank form with just a label that was freshly created. I have no idea what needs to go into the resources file to get this to work but my current workaround is to just have shorter labels until someone can direct me how to use this function. I should add that if I put in a just a few pieces of text I can just open the designer file and edit it to include all of my original text but next time i open the file in designer it gets autoconverted to a string file again and the text is lost.