Head first C # Chinese Version chapter 13th controls and graphics page582

Source: Internet
Author: User

 

Add garden and honeycomb forms to the Project


Put beecontrol
Add to project. Add two more forms.



 

Find out where you are


You need to understand that the honeycomb is in the filed
Position of the form. Use the Properties window
Mouseclick
Create a processing method for the event and add the following code:



 

Now run the program and click the location where the beehive is located to show the coordinates of the location where your honeycomb is located:


Add the same processing method to the honeycomb form and run it. Let it get the outlet, nursery room and Honey factory. You can use these locations to update hive in the previous chapter.
Class
Resetlocation
() Method.



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.