check if you have something like this as property of that control..
Code
Private _multiLine As Boolean = False
Public Shadows Property MultiLine() As Boolean
Get
Return _multiLine
End Get
Set(ByVal value As Boolean)
_multiLine = value
_tb.Multiline = value
OnResize(EventArgs.Empty)
Invalidate()
End Set
End Property
you need something like this in paint event...
Code
Protected Overrides Sub OnResize(e As EventArgs)
MyBase.OnResize(e)
If Not MultiLine Then
Dim tbheight As Integer = _tb.Height
_tb.Location = New Point(10, CType(((Height / 2) - (tbheight / 2) - 1), Integer))
_tb.Size = New Size(Width - 20, tbheight)
Else
_tb.Location = New Point(10, 10)
_tb.Size = New Size(Width - 20, Height - 20)
End If
End Sub
Regards
Saket
Edit : I just added these lines from my one theme...
BTC - bc1q3efew3yzfwhdz290dafykaw0a2w56g2j69g2c6
ETH - 0xf1c873217032468990D3313da6509D1b813c4671
USDT - 0xf1c873217032468990D3313da6509D1b813c4671
PP -
[email protected]