当前位置:网站首页>WinForm jump to the second form case
WinForm jump to the second form case
2022-07-28 22:41:00 【Jinan medical applet champion】
Forms 1 Form class
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WinFormsApp1728
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
// Instantiation of the second form class .
Form2 objfor=new Form2();
objfor.Show();
//objfor.ShowDialog();
//MessageBox.Show(" Button click event triggers , Output string mode 1");
}
}
}
Main function entry add
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WinFormsApp1728
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Application.Run(new Form2());// Definition of the second form .
}
}
}
effect

边栏推荐
- C language to realize string reverse order arrangement
- Using PCL to batch display PCD point cloud data flow
- [virtual machine _2]-hyper-v and vmware/virtualbox cannot coexist
- Install PCL and VTK under the background of ROS installation, and solve VTK and PCL_ ROS conflict problem
- Qt+FFmpeg环境搭建
- [connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly
- The blueprint of flask complements openpyxl
- Kali source solution software cannot be installed correctly
- 79. Word search (medium string array matrix backtracking)
- How about the actual use effect of common source oscilloscope
猜你喜欢

STM32 - DMA direct memory access controller (cubemx configures DMA)

STM32 - external interrupt application (exti) (use cubemx to configure interrupts)

imx6q gpio复用

6K6w5LiA5qyh5pS75Ye75YiG5p6Q

CMD common commands
![[connect your mobile phone wirelessly] - debug your mobile device wirelessly via LAN](/img/7f/c49fd8c2cbe21585a080852833dcb4.png)
[connect your mobile phone wirelessly] - debug your mobile device wirelessly via LAN

STM32 board level support package for keys

XXX port is already in use
![[reprint] the token token is used in the login scenario](/img/84/77dc2316e2adc380a580e2456c0e59.png)
[reprint] the token token is used in the login scenario

ATT&CK 威胁情报
随机推荐
Sword finger offer II 067. maximum XOR (medium prefix tree bit operation array)
Log4j vulnerability elk platform processing method (logstah5.5.1)
软考网络工程师
SSH password free login
Baidu map usage
770. 单词替换
Concise history of graphic technology
Att & CK preliminary understanding
32. Longest valid bracket (difficult stack string)
Redis related
How do we do full link grayscale on the database?
纪念一下第一次写的线段树了喽(对应洛谷3372)
Excel-VBA 快速上手(十三、日期的常见用法)
STM32_ Hal library driven framework
Intelligent control -- fuzzy mathematics and control
Paddlenlp is based on ernir3.0 text classification. Take the crime prediction task of cail2018-small dataset as an example [multiple tags]
STM32 - Communication
Lvs+keepalived high availability deployment practical application
PaddleNLP基于ERNIR3.0文本分类:WOS数据集为例(层次分类)
20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)