Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 197407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:51:01+00:00 2026-05-11T16:51:01+00:00

Solution I did some googling and found this forum post , and here is

  • 0

Solution

I did some googling and found this forum post, and here is what I needed to do:

Imports System.ComponentModel

<EditorBrowsable(EditorBrowsableState.Always), Browsable(True), Bindable(True), _
DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
Overrides Property Text() As String
    Get
        Return ControlText.Text
    End Get
    Set(ByVal value As String)
        ControlText.Text = value
    End Set
End Property

I should state that I am really new to creating custom controls, so I do not know all of the ins-and-outs of the whole process.

I am creating a custom control that functions similarly to a checkbox, but uses two images as checked/unchecked. I am trying to add a Text property, but it gives me this warning:

Property Text() As String
    Get
        Return ControlText.Text
    End Get
    Set(ByVal value As String)
        ControlText.Text = value
    End Set
End Property

“property ‘Text’ shadows an overridable method in the base class ‘UserControl’. To override the base method, this method must be declared ‘Overrides’.”

Ok, so that is no problem. I change my declaration to Overrides Property Text() As String, but when I go to test it out ‘text’ is not listed under properties. Is there additional steps I need take to get my result?

More details

My control consists of 2 (or 3, depending on how you look at it):

  1. PictureBox – Displays a checked/unchecked image
  2. Label – The Text that is being displayed on the control
  3. PictureCheckBox – This is the actual control’s name

The PictureBox is docked to the left of the PictureCheckBox, and the Label is docked on the right side:

alt text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:51:01+00:00Added an answer on May 11, 2026 at 4:51 pm

    EDIT Scratched the bit about Text being non-virtual. It is in fact virtual / overridable.

    But I’m curious, why do you want to do this. In your specific example you’re just calling into the base property so it doesn’t appear to do anything.

    Where are you expecting this value to be shown and how are you setting it?


    Text is a non-virtual / overridable method on Control. There is no way for you to override the property. If you want to re-define the property you can use the Shadows keyword.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 91k
  • Answers 91k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The *.designer.* files are generated by Visual Studio. You don't… May 11, 2026 at 6:16 pm
  • Editorial Team
    Editorial Team added an answer you'll want to use the GraphicsEnvironment. In particular, getScreenDevices() returns… May 11, 2026 at 6:16 pm
  • Editorial Team
    Editorial Team added an answer Just use - for space and get rid of the… May 11, 2026 at 6:16 pm

Related Questions

I'm trying to build a small VS 2005 solution I've just checked out of
I'm using VB 2008 and I'm trying to add a xmlns=mynamespace attribute to an
I had a really huge problem recently which took me a lot of time
Yesterday I found this function: function clone(obj) { return typeof obj === 'undefined' ?
I found out that build time of C# solution with many projects gets much

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.