Nine Sudoku controls based on. NET CompactFramework

Source: Internet
Author: User

On the internet often see someone asked Windows Mobile under the nine Sudoku control practices, I have also many times on the internet search, but found most of the C + + version, so germination of their own to write a thought, first on the picture.

When selected.

The effect of the selection is actually the alternating results of two pictures, because only for the 240x320 this style, so it may be written in many places, the following to some of the source of the analysis.

First, define a class that inherits from Control Flexstartmenu

PublicclassFlexStartMenu:System.Windows.Forms.Control

Define an option subclass because the picture in this control contains text, so I don't draw the text of the subkey into the control, and if you have a need you can modify the Onpain event and add a way to draw text.

Child class

public class Flexstartitem
{
/**////<summary>
Display text
</summary>
public string Itemtext
{
Get
Set
}
/**////<summary>
Options picture
</summary>
Public Image Icon
{
Get
Set
}
/**////<summary>
Picture When selected
</summary>
Public Image Pressicon
{
Get
Set
}
/**////<summary>
Distance from top of option
</summary>
public int Top
{
Get
Set
}
/**////<summary>
Option distance from the left column
</summary>
public int Left
{
Get
Set
}
/**////<summary>
Option number
</summary>
public int Index
{
Get
Set
}
/**////<summary>
is selected
</summary>
public BOOL Press
{
Get
Set
}
}

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.