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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,603 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ian Xue 38,936 Reputation points Microsoft Vendor
    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.