Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I hide a base class property in my derived control from the user at design-time?

General - Windows Forms FAQs
Set the Browsable attribute on the new property that hides the existing one. Here is a code snippet that hides the WordWrap property in the derived TextBox. [C#] public class CustomTextBox : TextBox { [ Browsable( false ) ] public new bool WordWrap {...
Related Questions

You have one base class virtual function how will call that function from derived class?

Mail Test
Ans: 124. class a125. {126. public virtual int m()127. {128. return 1;129. }130. }131. class b:a132. {133. public int j()134. {135. return m();136. } }
Related Questions

How can a member function in my derived class call the same function from its base class?

Inheritance -- virtual functions Updated! , C++ FAQ Lite
I have a heterogeneous list of objects, and my code needs to do class-specific things to the objects. Seems like this ought to use dynamic binding but can't figure it out. What should I do? Updated!
Related Questions

Is it OK to convert a pointer from a derived class to its base class?

Inheritance -- basics, C++ FAQ Lite
object of a derived class is a kind of the base class. Therefore the conversion from a derived class pointer to a base class pointer is perfectly safe, and happens all the time. For example, if I am pointing at a car, I am in fact pointing at a vehicle, so converting a Car* to a Vehicle* is perfectly safe and normal:
Related Questions

Why can't my derived class access private things from my base class?

Inheritance -- basics, C++ FAQ Lite
Derived classes do not get access to private members of a base class. This effectively "seals off" the derived class from any changes made to the private members of the base class.
Related Questions

How can I protect derived classes from breaking when I change the internal parts of the base class?

Inheritance -- basics, C++ FAQ Lite
Unless you expect all your derived classes to be built by your own team, you should declare your base class's data members as private and use protected inline access functions by which derived classes will access the private data in the base class. This way the private data declarations can change, but the derived class's code won't break (unless you change the protected access functions).
Related Questions

How do I call a method defined in a base class from a derived class that overrides it?

Python Frequently Asked Questions
If your class definition starts with "class Derived(Base): ..." then you can call method meth defined in Base (or one of Base's base classes) as Base.meth(self, arguments...). Here, Base.meth is an unbound method (see previous question).
Related Questions

How do I prevent certain controls from being displayed in the Property browser at design-time?

General - Windows Forms FAQs
Use the DesignTimeVisible attribute set to false. [ DesignTimeVisible( false ) ] You can still provide a TypeConverter to make it participate in designer Serialization. Contributed from George Shepherd's Windows Forms FAQ
Related Questions

Should I hide member functions that were public in my base class?

Inheritance -- proper inheritance and substitutability, C++ ...
Attempting to hide (eliminate, revoke, privatize) inherited public member functions is an all-too-common design error. It usually stems from muddy thinking.
Related Questions

How can I change the class's description, or how can I hide the control's description panel?

Exontrol Software - ExPropertiesList FAQ page
The Description property of Property object specifies the selected property's description. Use the Property property to access a Property by its name or its identifier. Use the DescriptionVisible property to show the control's description panel.
Related Questions

I am a first time user, how do I list my property?

Chico Rental Listing : The most extensive list of Chico Rent...
There are only a few steps to listing your property on ChicoRentalListing.com. First you need to create a user account. You can do this by clicking on List my Property located on the homepage. Once you fill out the information needed on this page and click "Create Your account" you account will be created. This gives you access to a management console where you can add/edit properties. Your next step is to input your property information.
Related Questions

How does CPSG Publisher control user base permissions?

CPSG Software: Newspaper Software, Newspaper Publishing, Aut...
CPSG Manager is a sophisticated set of management and administration tools that help you run your online publication. Optimize your team's productivity by configuring workflow and tasks according to staff roles and responsibilities. Eliminate confusion and raise efficiency with user-based permissions that give your staff access to only the tools they need. Keep your work environment secure. All tools are password protected.
Related Questions

Can I build a base control class and use C++ inheritance to derive other controls?

ActiveX Control FAQ - General
Yes, it can be done and is fairly easy. The tricky part involves setting up the MFC-based macros that are used by AppWizard and ClassWizard. When deriving from the base class you have to cut-and-paste to build the ODL file properly, use specific base-class DISPIDs, etc. All of this is explained in detail in Microsoft Knowledgebase article Q138411. An example is also provided (SHAPES2.EXE) that illustrates the techniques.
Related Questions

Is an array of Derived a kind-of array of Base?

Inheritance -- proper inheritance and substitutability, C++ ...
This is a corollary of the previous FAQ. Unfortunately this one can get you into a lot of hot water. Consider this: The compiler thinks this is perfectly type-safe. Line 5 converts a Derived* to a Base*.
Related Questions

Converting Derived* → Base* works OK; why doesn't Derived** → Base** work?

Inheritance -- proper inheritance and substitutability, C++ ...
C++ allows the conversion Derived* → Base*, since a Derived object is a kind of a Base object. However trying to convert Derived** → Base** is flagged as an error. Although this error may not be obvious, it is nonetheless a good thing.
Related Questions

Will it be time-consuming to manage many different rank profiles for my user base?

FAST - Knowledge Center
Not necessarily. The critical step is to understand the nature of the content and the user base. Assigning different rank parameters to specific types of content will simplify this process. Request More Information
Related Questions

What is the Hide Results From User option ?

ICMW - Frequently Asked Questions
Only available for Private Polls, this option hides the results of the questions answered from the user. Utilized when the results generated are of a sensitive or confidential nature. Also used when the poll is set up for a training session or testing exam.
Related Questions

What is base property?

Oregon/Washington | Bureau of Land Management (BLM) | US Dep...
Base property is the land that you own or control. Within grazing districts (Section 3 of the Taylor Grazing Act {TGA}), the base property must be capable of serving as a base of operation for livestock use. Outside grazing districts (Section 15, TGA), the base property must be contiguous to the public land to be used for livestock grazing. "Grazing preference" is attached to base property (Ref: 43 CFR 4110.2-1).
Related Questions

What benefits can be derived with proper control of mange infestation using Ivomec?

PH.Merial.Com : Swine : Frequently Asked Questions
Using IVOMEC Brand products for swine to eliminate mange and lice can improve average daily gain, increase the number of pigs weaned, increase weaning weights, improve feed efficiency, decrease the number of non-productive sow days, and lessen damage to equipment and facilities. Eliminating mange and lice with IVOMEC also helps reduce the swine operator’s possible exposure to insecticide sprays.
Related Questions

Do I Have to Take the Time to Create My Own Design?

Lids - FAQ's
In order to make the entire process easier for you we have already set up many "Prime Designs". These are popular logos that have already been created for a wide variety of occasions. These designs are ready for you to use. Just pick out a design and put it on your favorite hat style. All of the work has been done for you setting up the design.
Related Questions

How much control do I have over the design?

Landworks Landscape Services
much or as little as you'd like. When we meet with you to begin the design process, we'll discuss your tastes, planned uses for your new space, plant preferences and much more. Consider us your partner – we'll work with you in a way that's most comfortable for you.
Related Questions

What???s the top .NET class that everything is derived from?

Its .net... : C# FAQs
When overriding, you change the method behavior for a derived class. Overloading simply involves having a method with the same name within the class.
Related Questions

I’m a first time user,can I get some help on experiment design?

Duke University DNA Microarray Center
Answer : Before submitting samples for microarray experiments, Duke investigators are encouraged to make an appointment with Dr. Holly Dressman (668-1583 or dress002@mc.duke.edu) to discuss experimental design and the types of microarray technologies that are available to the user through the Duke Microarray Core Facility. It is important to begin a microarray experiment with a proper question that is well defined with independent experimental verification.
Related Questions

How do I get mouse messages on a custom control during design-time?

Custom Controls - Windows Forms FAQs
The design-time will forward the MouseEnter and MouseLeave messages to your control by default. The MouseMove message is blocked by the designer. You can get MouseDown and MouseUp messages in your control if you override GetHitTest method in your designer...
Related Questions

Can I control the user's connection time and account usage?

Home of Secure wireless Mesh, WLAN switch, Spam Anti-Virus A...
The WLH200 supports both local authentication and server based RADIUS. RADIUS enables ISPs to maintain large central databases of users (potentially in the millions). WLH200 includes PMS support for local usage tracking to allow time of use billing options.
Related Questions

Why do I get a User Account Control prompt every time I start Trojan Remover?

Trojan Remover - Frequently Asked Questions
If you have User Access Control (UAC) enabled (it is enabled by default, and Microsoft highly recommend you leave it enabled), each time you start Trojan Remover you will see a UAC elevation prompt. This is because Trojan Remover requires access to protected system areas and processes. It is more sensible to ask for UAC elevation the one time, when the program starts, rather than ask each time a different protected area is accessed during the scan.
Related Questions

How do I keep control of a large class?

Large Classes FAQ | IUB Campus Instructional Consulting
To keep order, enforce strict discipline about chattering during lecture. First gesture politely (point, finger to lips) then look at them and speak out about disturbing the class, then stop lecture, approach the offenders, and politely ask them to stop because they are disturbing the people around them. Explain this on the first day of class, with a talk about mutual respect and civility. Be aware that cheating is prevalent, especially in large classes.
Related Questions

Does array-of-Derived is-not-a-kind-of array-of-Base mean arrays are bad?

Inheritance -- proper inheritance and substitutability, C++ ...
Seriously, arrays are very closely related to pointers, and pointers are notoriously difficult to deal with. But if you have a complete grasp of why the above few FAQs were a problem from a design perspective (e.g., if you really know why a container of Thing is not a kind-of container of Anything), and if you think everyone else who will be maintaining your code also has a full grasp on these OO design truths, then you should feel free to use arrays.
Related Questions

I am a first time student, how do I prepare for class?

Frequently Asked Questions
Be sure that you wear comfortable clothing that will not get in the way of stretching. Blue jeans are definitely out. Do not eat for at least two to three hours before your class or scheduled practice; some students prefer to wait even longer. The most important thing to remember during a practice, whether in class or at home, is that practicing is an exploration. Each pose is an experiment. Go slowly and listen to your body.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact