The User Control calls the parent page:
//
Get parent page
Page P
=
This
. Parent. page;Type pagetype
=
P. GetType ();
//
Method Name of the parent page
Methodinfo Mi
=
Pagetype. getmethod (
"
Loading
"
);
//
Run
Mi. Invoke
In a user control, gets the method of the parent page1: Method has no parameters (Userinfor ())String userinfor = Convert.ToString (This. Page.gettype (). GetMethod ("Userinfor"). Invoke (this. Page, null)); The value obtained is the type of object2: Method has parameters (userinfor (int a,string b))String userinfor = Convert.ToString (This. Page.gettype (). GetMethod ("Userinfor"). Invoke (this. Page, new
1. Create a subform Form1form, file, new, create a form to modify in the form's cell file2. References to parent form cells in subformsUses Tfatherform3. Modify the code in the subformTForm1 = Class (Tform) changed toTForm1 = Class (Tfatherform)//tfatherform is the inherited form4. On the form form, pop-up the right-click menu and select View As TextThe first line of the object is changed to inherited after saving;5. Right-click on the Form tab and se
First, a new Class1 object is created in Form1 's form loading and a reference to itself is passed into its constructor, and a thread in the constructor of Class1. The method event that the thread is acting on is an Add method in this class. The content of the Add method is to put a textbox on the Form1.However, there are several issues that you should be aware of in this process:1. Which is the main thread? The so-called main thread is the first one that starts, starting with main. This form of
// Get parent page Page P = This . Parent. page;Type pagetype = P. GetType (); // Method Name of the parent page Methodinfo Mi = Pagetype. getmethod ( " Loading " ); // Run Mi. Invoke (p, New Object [] { " Parameter 1 " , " Parameter 2 " }); Call between a user control and a user
First look at a preview:
Nonsense not much to say, directly on the code:
This picture is what I just did, the effect is to refer to the cool dog music player to complete, I would like to explain the focus on the bottom of the navigation bar: as shown
One more counter effect preview:
How to make the blue round play key appear over the pink range. Of course, after a reasonable layout can achieve this effect, but there are simpler ways. That is, add a property from Android itself
UILabel autolayout usage: The child control determines the height of the parent control, uilabelautolayoutToday, let's talk about the usage of UILable autolayout. This control is a bit special. If you do not set it, you just set the text content on the UILable, and you will find that the text content cannot be filled w
In the code that binds a DataTable object to the DataGrid control,
When you join a thread, you are prompted that "a control created on a thread cannot become the parent of a control created on another thread"
Find other people's advice in CSDN forums "Use the delegate method to get
Take Viewpager as an example:1 Public classTopnewsviewpagerextendsViewpager {2 PublicTopnewsviewpager (Context context) {3 Super(context);4 }5 6 PublicTopnewsviewpager (Context context, AttributeSet attrs) {7 Super(context, attrs);8 }9 Ten //override this method and request all parent controls in the method not to intercept his events One @Override A Public Booleandispatchtouchevent (motionevent ev) { -GetPa
The following code example shows how to use the parentnodestyle attribute to control the appearance of the parent node in the Treeview control.
View plaincopy to clipboardprint?
// Stop the bubble action. // you can call the action in the onxxx event of the control to prevent the parent control from responding to messages.Dom. stopbubble = function (E){// If an event object is input, it is a non-IE browser.If (E E. stoppropagation ){// Therefore, it supports the W3C stoppropation () method.E. stoppropagation ();}Else {// Otherwise, we m
Software authorization control, how does software control authorization?
For this app, because it integrates many motor performance tuning functions, we do not want every user to use it, especially competitors, therefore, only internal staff and customers of the company can get our authorization to experience and adjus
Enumerate child windows and buttons for the specified parent window
I have been writing something like spy ++ and viewing the password window for a long time. I always wanted to add something special to this little thing. Some time ago, I was interested in software installation and registration. If you do not enter the correct registration code for some software
Basic attributes of a process: process ID, parent process ID, process group ID, session, and control terminal.Abstract:This document describes the basic attributes of a process, including process ID, parent process ID, process group ID, session, and control terminal.
Basic Process attributes1. process ID (PID)
Function
The report (reporter Xue song) Yesterday, Alibaba Group's company Ali Software announced has obtained the parent company 1 billion yuan investment, uses to promote the management software to the small and medium-sized enterprise, and pledged the next three years free, the goal is in three years to enable the SME management so
Basic attributes of a process: process ID, parent process ID, process group ID, session, and control terminalAbstract:This document describes the basic attributes of a process, including process ID, parent process ID, process group ID, session, and control terminal.
Basic Process attributes1. process ID (PID)
Function
In the original, 51Testing Software Test Network (http://www.51testing.com) ~ Software life cycle, software repair cost pyramid, the more down the cost of modification. The requirements phase found that the cost of change is the smallest, the other from small to large in turn is the design phase, coding phase, the system testing phase to modify the cost of the co
The project is used in the TreeView control, and the parent node is selected to be associated. The child node is checked and the parent node is synchronized. The parent node is checked and all child nodes are checked and recursive. Online to find a circle, a lot of code is not satisfied with the requirements. The node
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.