How to hide caret in richtextbox powershell?

biswajeet Kumar 41 Reputation points
2021-03-23T10:08:11.707+00:00

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 for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-03-24T09:23:12.18+00:00

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.