[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 398
  • Last Modified:

textbox scrollbar in a user control.

Hi Experts,

I have a textbox in a user control.
How can I set the scrollbar property of the textbox in the user control dynamically to different value as required ?

Thanks
0
LoGa1234567890
Asked:
LoGa1234567890
1 Solution
 
rspahitzCommented:
Sounds like you may need to add a property to the user control to allow users of your control to set values, something like this:

    Public Property TextScrollBar() As System.Windows.Forms.ScrollBars
        Get
            Return TextBox1.ScrollBars
        End Get
        Set(value As System.Windows.Forms.ScrollBars)
            TextBox1.ScrollBars = value
        End Set
    End Property

Open in new window

0
 
LoGa1234567890Author Commented:
Thanks rspahitz  !
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now