Dill Posted February 9, 2005 Posted February 9, 2005 Ok heres the thing... I am creating a text box style control. When adding a 'Text' property as a string all works well however i have created a 'lines' property as a string array and set the values at design time, if I build the solution it clears the contents :mad: I have tried two methods of implementing this but the result is the same Private MyLines() As String Public Shadows Property Lines() As String() Get Return MyLines End Get Set(ByVal Value As String()) MyLines = Value Me.Refresh() End Set End Property And... Private MyLines As String Public Shadows Property Lines() As String() Get Return Split(MyLines, vbCrLf) End Get Set(ByVal Value As String()) MyLines = Join(Value, vbCrLf) Me.Refresh() End Set End Property anyone any ideas where i am going wrong? Thanks in advance Dill Quote
Administrators PlausiblyDamp Posted February 9, 2005 Administrators Posted February 9, 2005 Check the solution near the bottom of this thread and see if that helps. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Dill Posted February 9, 2005 Author Posted February 9, 2005 Worked a treat! had to read it twice tho! and my appologies for duplicating a thread (impatience on first post i suppose :D) thanks again Dill Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.