Home  >  Article  >  Backend Development  >  Recommended 10 display window special effects (collection)

Recommended 10 display window special effects (collection)

巴扎黑
巴扎黑Original
2017-06-13 11:33:171234browse

The information I found online a few days ago can load the entire form into a tab (see the previous article). This is very easy to implement, and multi-window display is also much more convenient. After adding all the windows, I wonder if I can pass parameters on the main form to the form loaded on the tab, such as passing query parameters. 1. Create 2 new forms: main form Form1, subform Form2. Set textBox1 on Form1 to public, so that textBox1 can be passed directly. Of course, you can also just pass the string. First, use the code in the previous article to add form2 to In the tab of form1, here is set to execute this event when the generatefm button is clicked private void generatefm_Click(object sender, EventArgs e)                        &n

1. C# Test code example to implement one-way parameter transfer after loading the display form in the TabContral tab (picture)

Recommended 10 display window special effects (collection)

Introduction: Loading a form into a tab in C# Winform Tabcontral to implement multi-tab switching and displaying the form, and testing parameters for passing parameters between the main form and subforms

2. C# Tray program example Double-click the display form and minimize it to the tray

Recommended 10 display window special effects (collection)

Introduction: Click the taskbar to show-hide switch, right-click menu, capture the close form event public partial class frmMain: Form { public frmMain() { InitializeComponent(); } } #region log out p

3. C# The difference between Show() and ShowDialog()

Recommended 10 display window special effects (collection)

Introduction: A.Form display in WinForm There are two ways to display a form: Form.ShowDialog method (the form is displayed as a modal form) Form.Show method (the form is displayed as a modeless form) Form) The specific differences between the two are as follows: 1. After calling the Form.Show method, the code behind the Show method will be executed immediately 2. After calling the Form.ShowDialog method, the code behind this method will not be executed until the dialog box is closed.

4. WinForm development, form display and form value passing

Recommended 10 display window special effects (collection)

Introduction: I didn’t know much about WinForm form display and value transfer between forms in the past. Recently, I have done some WinForm development. The relevant knowledge used is organized as follows A. The form display window in WinForm The form can have the following two methods: Form.ShowDialog method (the form is displayed as a modal form) Form.Show method (the form is displayed as a modeless form). The specific differences between the two are as follows: 1. After calling the Form.Show method , the code after the Show method will be executed immediately 2. After calling Form.ShowDial...

5. C# Tray program instance double-click the display form and minimize it to the tray

Recommended 10 display window special effects (collection)

Introduction: Double-click the C# tray program instance to display the form and minimize it to the tray code sharing

6. Python reads sqlserver library Grid display form program

Introduction: Welcome to the Windows Community Forum, with 3 million technical staff Interactive communication>>Enter# Author: scott # # Created: 04/02/2012 #-------------------------- -------------------------------------------------- import pymssql import sys import decimal reload(sys) sys.setde

The above is the detailed content of Recommended 10 display window special effects (collection). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn