Results 1 to 3 of 3

Thread: Splitter;- or Separator lines Control

Threaded View

  1. #2
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    733

    Re: Splitter;- or Separator lines Control

    so easy usercontrol .but have a bug .

    can set LightColour and DarkColour In the design phase ,but if run .no change

    now fixed:
    Code:
    Private Sub UserControl_Resize()
       
       If Horizonthal = True Then
          Line1.X1 = 0
          Line1.X2 = UserControl.Width
          Line1.Y1 = 0
          Line1.Y2 = 0
          
          Line2.X1 = 0
          Line2.X2 = UserControl.Width
          Line2.Y1 = 20
          Line2.Y2 = 20
          UserControl.Height = 40
       ElseIf Horizonthal = False Then
          Line1.X1 = 0
          Line1.X2 = 0
          Line1.Y1 = 0
          Line1.Y2 = UserControl.Height
          
          Line2.X1 = 20
          Line2.X2 = 20
          Line2.Y1 = 0
          Line2.Y2 = UserControl.Height
          UserControl.Width = 40
       End If
       Line2.BorderColor = m_LightColour
        Line1.BorderColor = m_DarkColour
    End Sub
    Last edited by xxdoc123; Aug 26th, 2017 at 02:42 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width