Implementation of the "C # Zhanza" Interface emerging

Source: Internet
Author: User

If LabVIEW does it like, so eazy!

C # is now a simple function to implement.

In the Toolbox, locate the Timer control double-click

The idea is to trigger the timer event when the interface is open and to adjust the transparency of the interface every time.

Open up

property box, locate the load double-click

The initial value of the payment opacity is 0, triggering timer1;

Immediately after we set the Timer1 event, double-click the Timer1 control of the front panel

Private void Timer1_Tick (object  sender, EventArgs e)        {            if1)                 This0.1;        }

over! It's not so hard to realize.

The timer control corresponds to the one in LabVIEW

So I'll practice other functions on the way.

Get time,

DateTime.Now.Year.ToString ();         Get the year  //2008datetime.now.month.tostring ();      Get month/   /9datetime.now.dayofweek.tostring (); Get   day//ThursdayDateTime.Now.DayOfYear.ToString ();   /248datetime.now.hour.tostring ();          Get hours   //20datetime.now.minute.tostring ();     Get minutes   //31datetime.now.second.tostring ();     Gets the number of seconds   //45

  

Implementation of the "C # Zhanza" Interface emerging

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.