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

  • SEARCH
  • Home
  • 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 3632680
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:33:21+00:00 2026-05-19T00:33:21+00:00

I have a base form class that is providing a new property that looks

  • 0

I have a base form class that is providing a new property that looks Like this

Public Class BaseForm

    Private _HappyTime As Boolean

    Public Property HappyTime() As Boolean
        Get
            Return _HappyTime
        End Get
        Set(ByVal value As Boolean)
            _HappyTime = Value
        End Set
    End Property

End Class

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class BaseForm
    Inherits System.Windows.Forms.Form

    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    Private components As System.ComponentModel.IContainer

    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        components = New System.ComponentModel.Container
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.Text = "BaseForm"
    End Sub
End Class

Now when I inherit the BaseForm on a new form, the HappyTime property displays in the properties window as false, and is uneditable.

I’ve recreated this BaseForm and Inheriting Form in an entirely new soloution and, the HappyTime property is editable and works as expected. For some reason in the existing project (where these changes need to be made) it’s not behaving properly.

This leads me to believe that it has something to do with the configuration of my project. Does anybody have any insight into this, short of creating a new project and moving all the code into it?

Environment Information:
.Net Framework 3.5, Visual Studio 2010, Win7 x64

  • 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-19T00:33:22+00:00Added an answer on May 19, 2026 at 12:33 am

    In the recreated solution, is the _HappyTime property Private or Protected? I think that if you just change it to Protected in this solution, it’ll work.

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

Sidebar

Related Questions

I have a namespace Company.UI.Forms where we have a form base class BaseForm that
Given the following inheritance tree: I have a public class BaseForm : Form This
In the project I'm working on now, we have base Entity class that looks
I have a base class that is a Django form. The child class then
Greetings! So I have a base class that defines a base64Binary property to be
I have a form in VS2010. There's a panel in a base class that
I have a model that uses a serialized column: class Form < ActiveRecord::Base serialize
I have a base class DockedToolWindow : Form, and many classes that derive from
I have a base form class that contains a method that returns a DataTable:
I am new to C#. I have a Persons class with this function: public

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.