C# Winform窗体内嵌入第三方应用窗体源码,可自适应容器大小

上传者: XX_YZDY | 上传时间: 2022-07-13 22:42:09 | 文件大小: 161KB | 文件类型: RAR
Winform实现窗体内嵌入第三方应用窗体,只需要知道窗体名称,即可将第三方应用的窗体嵌入到自己的程序中,使用WinForm的Panel控件作为其父容器,并且第三方窗体仍然保持原有的功能,如点击,输入等,可以随着自己的应用最大最小化,作为自己应用的一部分存在。 这一版优化了很长时间,为了实现在父容器大小改变时,第三方应用的大小可以自适应,网上的很多做法都会造成卡顿或者闪烁,最后是我结合实际应用,自己总结经验写出了这一版无卡顿,闪烁少的代码,实属不易,希望大家能够支持。 使用时记得更改后台代码里面的windowName参数。 需要提前打开第三方程序,或者使用C#代码打开第三方程序后,点击嵌入窗体按钮,将第三方窗体嵌入自己窗体的Panel中,如果你的窗体,容器大小不会改变,可以不设置timer,这样能避免闪烁现象发生。

文件下载

资源详情

[{"title":"( 39 个子文件 161KB ) C# Winform窗体内嵌入第三方应用窗体源码,可自适应容器大小","children":[{"title":"WinFormsApp1","children":[{"title":".vs","children":[{"title":"WinFormsApp1","children":[{"title":"DesignTimeBuild","children":[{"title":".dtbcache.v2 <span style='color:#111;'> 71.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"v17","children":[{"title":".suo <span style='color:#111;'> 29.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"net5.0-windows","children":[{"title":"WinFormsApp1.dll <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.exe <span style='color:#111;'> 123.00KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.deps.json <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"WinFormsApp1.runtimeconfig.dev.json <span style='color:#111;'> 215B </span>","children":null,"spread":false},{"title":"WinFormsApp1.pdb <span style='color:#111;'> 12.44KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.runtimeconfig.json <span style='color:#111;'> 154B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.csproj.user <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"WinFormsApp1.csproj.nuget.dgspec.json <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.csproj.nuget.g.targets <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"project.assets.json <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"project.nuget.cache <span style='color:#111;'> 281B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"net5.0-windows","children":[{"title":"WinFormsApp1.dll <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.designer.deps.json <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"WinFormsApp1.csproj.GenerateResource.cache <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":"WinFormsApp1.AssemblyInfoInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"WinFormsApp1.csproj.AssemblyReference.cache <span style='color:#111;'> 102.17KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.csproj.BuildWithSkipAnalyzers <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"WinFormsApp1.GeneratedMSBuildEditorConfig.editorconfig <span style='color:#111;'> 706B </span>","children":null,"spread":false},{"title":"WinFormsApp1.AssemblyInfo.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"ref","children":[{"title":"WinFormsApp1.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false}],"spread":false},{"title":".NETCoreApp,Version=v5.0.AssemblyAttributes.cs <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"WinFormsApp1.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"WinFormsApp1.assets.cache <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"WinFormsApp1.genruntimeconfig.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"refint","children":[{"title":"WinFormsApp1.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"apphost.exe <span style='color:#111;'> 123.00KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.pdb <span style='color:#111;'> 12.44KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.designer.runtimeconfig.json <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"WinFormsApp1.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"WinFormsApp1.csproj.nuget.g.props <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"Form1.cs <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.sln <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"WinFormsApp1.csproj <span style='color:#111;'> 261B </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明