zoukankan      html  css  js  c++  java
  • 问题-Delphi在做窗体派生时提示Resource TForm2 not found

    相关资料:

    https://www.baidu.com/link?url=yYEHJesIUg6HguekaIW-U0HtjtLn430Dh0NXSc7ej5ixppqcq21rsYMvlCo_qNOP&wd=&eqid=87bf080a00000c50000000035e83f9e4

    https://bbs.csdn.net/topics/310093070?locationNum=13&fps=1

    问题描述:

    在练习接口继承时,需要派生一个窗体,写好代码后提示“Resource TForm2 not found”。

    问题原因:

    在派生窗体时需要有资源,所以派生的类需要重写Create方法,Create里面调用CreateNew方法。

    处理方法:

    constructor TForm2.Create(AOwner: TComponent);
    begin
    inherited CreateNew(AOwner);
    end;

     

  • 相关阅读:
    生涯路
    事件与window的基本操作
    js操作
    c# 函数
    布局页面CSS
    网页填写的基本操作
    框架集
    网页的基本操作1
    存储与触发器
    常用的函数
  • 原文地址:https://www.cnblogs.com/FKdelphi/p/12611344.html
Copyright © 2011-2022 走看看