how can i make the text property of an inherited label, unavailable to the user at design/run time, but still be able to use it within the class?
thanks
how can i make the text property of an inherited label, unavailable to the user at design/run time, but still be able to use it within the class?
thanks
![]()
![]()
if this helps, rate me
![]()
![]()
irregular regions | numericTextbox | keycodes | removing control properties | hotkeys | rtf printing | Extended RichTextBox | iconWorks | readonly listbox | sort listview | screen capture | relational listForms | countDown timer | animated notifyIcon form | dynamic crystal report | move / resize runtime controls | reOrderable DnD listview / listbox | self closing message box | searchable list(of class) | cursor from bitmap | (VB2008+) Textbox - GetFirstVisibleLineIndex / GetLastVisibleLineIndex | vb2008 extensions | Paint lite.Net | calculator | inline calculator | export listview to word table | imperial~metric converter | export DGV to word ~ excel | globalInputHook | dropDown Calendar control | International Time + Currency | GDI+ gauge | quizControl | extended dgv
My Web Site....
Maths Revision V1.0
Play Connect4 against your PC (java Applet)
Edit: Nevermind. I was way off base.
Last edited by Kasracer; Jan 31st, 2008 at 12:15 PM.
KrisSiegel.com - My Personal Website with my blog and portfolio
Don't Forget to Rate Posts!
Free Icons: FamFamFam, VBCorner, VBAccelerator
Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes
I think the way to do this would be to override/shadow the Text property and make it private and then in your code when you want to change it, call MyBase.Text.
Yes I believe theres no way to "hide" a member of an inherited class. The only way to do so is to not inherit the class, but rather encapsulate it within your class.
---My Flickr photo (mostly screenshots these days!) stream. Have a look!
![]()
Rate posts that helped you. I do not reply to PM's with coding questions.
How to Get Your Questions Answered
TCP client/server connection | Retrieving the EventHandler for any Event by code.
Check out the work in progress: Vortex - C++ 3D Game engine for windows and linux - (Development blog - Leave a comment!)
its possible to make a property invisible like this
vb Code:
<Browsable(False), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _ Public Overrides Property Text() As String Get Return MyBase.Text End Get Set(ByVal Value As String) End Set End Property
![]()
![]()
if this helps, rate me
![]()
![]()
irregular regions | numericTextbox | keycodes | removing control properties | hotkeys | rtf printing | Extended RichTextBox | iconWorks | readonly listbox | sort listview | screen capture | relational listForms | countDown timer | animated notifyIcon form | dynamic crystal report | move / resize runtime controls | reOrderable DnD listview / listbox | self closing message box | searchable list(of class) | cursor from bitmap | (VB2008+) Textbox - GetFirstVisibleLineIndex / GetLastVisibleLineIndex | vb2008 extensions | Paint lite.Net | calculator | inline calculator | export listview to word table | imperial~metric converter | export DGV to word ~ excel | globalInputHook | dropDown Calendar control | International Time + Currency | GDI+ gauge | quizControl | extended dgv
My Web Site....
Maths Revision V1.0
Play Connect4 against your PC (java Applet)
Oh, I thought you wanted it to be invisible everywhere, except for inside the class itself.
---My Flickr photo (mostly screenshots these days!) stream. Have a look!
![]()
Rate posts that helped you. I do not reply to PM's with coding questions.
How to Get Your Questions Answered
TCP client/server connection | Retrieving the EventHandler for any Event by code.
Check out the work in progress: Vortex - C++ 3D Game engine for windows and linux - (Development blog - Leave a comment!)
i found the code to make it invisible everywhere now
vb Code:
Imports System.ComponentModel ''this overrides the text property + hides it from the properties ''window + the code editor <EditorBrowsable(EditorBrowsableState.Never)> _ <Browsable(False), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _ Public Overrides Property Text() As String Get Return MyBase.Text End Get Set(ByVal Value As String) End Set End Property
Last edited by .paul.; Jan 31st, 2008 at 02:47 PM.
![]()
![]()
if this helps, rate me
![]()
![]()
irregular regions | numericTextbox | keycodes | removing control properties | hotkeys | rtf printing | Extended RichTextBox | iconWorks | readonly listbox | sort listview | screen capture | relational listForms | countDown timer | animated notifyIcon form | dynamic crystal report | move / resize runtime controls | reOrderable DnD listview / listbox | self closing message box | searchable list(of class) | cursor from bitmap | (VB2008+) Textbox - GetFirstVisibleLineIndex / GetLastVisibleLineIndex | vb2008 extensions | Paint lite.Net | calculator | inline calculator | export listview to word table | imperial~metric converter | export DGV to word ~ excel | globalInputHook | dropDown Calendar control | International Time + Currency | GDI+ gauge | quizControl | extended dgv
My Web Site....
Maths Revision V1.0
Play Connect4 against your PC (java Applet)