• 大小: 138KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-04
  • 语言: C#
  • 标签:

资源简介

c#窗体嵌入应用程序,程序里包含了控件,可以直接使用

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace WindowsFormsApplication4
{

    public partial class Form1 : Form
    {
        [DllImport(“user32.dll“ SetLastError = true)]
        private static extern long SetParent(IntPtr hWndChild IntPtr hWndNewParent);

        private const int GWL_style = (-16);
        private const long WS_VISIBLE = 0x10000000;
        [DllImport(“user32.dll“ EntryPoint = “SetWindowLongA“ SetLastError = true)]
        private static extern long SetWindowLong(IntPtr hwnd int nIndex long dwNewLong);

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (openApp.ShowDialog(this) == DialogResult.OK)
            {
                appBox.AppFilename = openApp.FileName;
                appBox.Start();
                if (appBox.IsStarted)
                {
                    txtAppFilename.Text = appBox.AppFilename;
                }
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9216  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.exe

     文件      24064  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.pdb

     文件      14328  2012-06-13 17:37  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.vshost.exe

     文件        490  2009-06-11 05:14  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsApplication4.vshost.exe.manifest

     文件      10752  2012-06-13 16:47  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsControlLibrary1.dll

     文件      22016  2012-06-13 16:47  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\bin\Debug\WindowsFormsControlLibrary1.pdb

     文件       1249  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Form1.cs

     文件       3419  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Form1.Designer.cs

     文件       6009  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Form1.resx

     文件       5214  2012-06-13 17:34  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\obj\Debug\ResolveAssemblyReference.cache

     文件       1243  2012-06-13 17:37  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.csproj.FileListAbsolute.txt

     文件        847  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.csproj.GenerateResource.Cache

     文件       9216  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.exe

     文件        180  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.Form1.resources

     文件      24064  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.pdb

     文件        180  2012-06-13 17:36  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\obj\Debug\WindowsFormsApplication4.Properties.Resources.resources

     文件        505  2012-06-13 16:48  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Program.cs

     文件       1404  2012-06-13 16:48  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Properties\AssemblyInfo.cs

     文件       2898  2012-06-13 16:48  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Properties\Resources.Designer.cs

     文件       5612  2012-06-13 16:48  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Properties\Resources.resx

     文件       1109  2012-06-13 16:48  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Properties\Settings.Designer.cs

     文件        249  2012-06-13 16:48  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\Properties\Settings.settings

     文件       4074  2012-06-13 17:34  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4\WindowsFormsApplication4.csproj

     文件        962  2012-06-13 16:48  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4.sln

    ..A..H.     16384  2012-06-13 17:37  c#窗体嵌入应用程序\WindowsFormsApplication4\WindowsFormsApplication4.suo

     文件      47707  2012-06-13 17:37  c#窗体嵌入应用程序\WindowsFormsApplication4.rar

     文件        310  2012-05-09 14:50  c#窗体嵌入应用程序\WindowsFormsControlLibrary1\WindowsFormsControlLibrary1\AppContainer.bmp

     文件       1428  2012-06-13 16:43  c#窗体嵌入应用程序\WindowsFormsControlLibrary1\WindowsFormsControlLibrary1\AppFilenameEditor.cs

     文件      10752  2012-06-13 16:47  c#窗体嵌入应用程序\WindowsFormsControlLibrary1\WindowsFormsControlLibrary1\bin\Debug\WindowsFormsControlLibrary1.dll

     文件      22016  2012-06-13 16:47  c#窗体嵌入应用程序\WindowsFormsControlLibrary1\WindowsFormsControlLibrary1\bin\Debug\WindowsFormsControlLibrary1.pdb

............此处省略31个文件信息

评论

共有 条评论

相关资源