"VB.net room charge system" does not contain the generated assembly to inherit from the component

Source: Internet
Author: User

When you tap the function of a combination query, you need to use the form's inheritance, but when you create a new inherited form, an error occurs (there is no generated assembly that contains the component you want to inherit from). Such as:


The problem arises: at that time did not pay attention to, also do not know how to make, finally anyway is inherit on, result today hand to clean up a bit of system garbage, on the wrong "the class in the file cannot be designed, so the designer could not be displayed for the file." The designer examines the following classes in the file: Frmxxx.vb---Cannot load the base class "Frmbase.vb". Make sure that the assembly has been referenced and that all projects have been built. "At first did not react to this is what is wrong, and later found that as long as the form is inherited, there is this error, when thinking of not to re-do an inherited form, the results appear again (do not contain the components to inherit from the generated assembly), there is no way to start Baidu this problem resolution.



solution to the problem: Check to find out, and some said to regenerate the form, but regenerated also useless ah, finally saw this sentence: in order to inherit from a form using the Inheritance Selector dialog box, the project containing the form must have been made executable or DLL. To build your project, choose Build from the Build menu. This sentence does not directly provide the most fundamental solution, but look at the red words, executable files or DLLs, I suddenly understand that the focus is not to regenerate the file, but to generate the executable file, that is, after the build, to run. After running the executable file or DLL can be generated, after running, sure enough to inherit, this time, double-click the problem of the form, will return to normal.


Thoughts: Master said I have a problem to find someone to help, this is in fact hinder their progress, recall, in fact, a lot of problems are to ask someone to help, look at others when the operation and then I suddenly figured out, their own procedures to understand the most, So there are problems, first of their own efforts to solve it!

VB.net room charge system does not contain the generated assembly to inherit from the component

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.