Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB.NET ,Textbox MultiLine Problem ..!

Hello Guys
i Have a Problem in VB.NET With EtherealTheme ,
i cannot add a multiline in textbox ,multiline function = false and locked cannot change to true
how to fix please help me ,....
EtherealTheme ...
https: //pastebin.com/BR0fkev7
Because there was no multiline function on that textbox.
[Image: signaturetwo.png]
(Sep 17, 2018 03:12 AM)Vyxn Wrote:  Because there was no multiline function on that textbox.

Public Overridable Shadows ReadOnly Property Multiline() As Boolean
Get
Return False
End Get
End Property

My Bro ...How can i Edit this code unlock multiline change to true
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]
Thanks For all Guys , i am Fixed ....


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by QuobiAug 6, 2022 02:23 PM 0 406 Aug 6, 2022 02:23 PM
Last Post: Quobi
[.NET] by adenfrMar 20, 2018 05:18 PM 15 479 Mar 20, 2018 05:18 PM
Last Post: EdwardSn0wdent
[.NET] by Moon RockJul 22, 2016 07:53 AM 2 215 Jul 22, 2016 07:53 AM
Last Post: Moon Rock