question

biswajeetKumar-3437 avatar image
0 Votes"
biswajeetKumar-3437 asked IanXue-MSFT answered

How to hide caret in richtextbox powershell?

How do i hide the blinking caret from windows form? Below is the richtextbox part i am using.


  $labelInOrderToApplySecuri.Font = 'Microsoft Sans Serif, 10.5pt'
 $labelInOrderToApplySecuri.Location = '12, 62'
     $labelInOrderToApplySecuri.BorderStyle = 'none'
     $labelInOrderToApplySecuri.Multiline = $True    
     $labelInOrderToApplySecuri.BackColor = 'white'
     $labelInOrderToApplySecuri.ReadOnly = $True
 $labelInOrderToApplySecuri.Name = 'labelInOrderToApplySecuri'
 $labelInOrderToApplySecuri.Size = '450, 120'
 $labelInOrderToApplySecuri.TabIndex = 2   
  Append-ColoredLine $labelInOrderToApplySecuri Black " latest version will be installed in your device.."








windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered

Hi,

Please check to see if this helps.
https://stackoverflow.com/questions/44131/how-do-i-hide-the-input-caret-in-a-system-windows-forms-textbox

Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.