先上图
调用代码如下
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i <= 8; i++)
{
FlexStartItem m_item = new FlexStartItem();
m_item.ItemText = i.ToString()+".扫描";
//m_item.Press = true;
m_item.Icon = imgPressedIcon.Images[i];
//m_item.PressIcon = imgPressedIcon.Images[i + 1];
flexStartMenu1.Items.Add(m_item);
}
}
{
for (int i = 0; i <= 8; i++)
{
FlexStartItem m_item = new FlexStartItem();
m_item.ItemText = i.ToString()+".扫描";
//m_item.Press = true;
m_item.Icon = imgPressedIcon.Images[i];
//m_item.PressIcon = imgPressedIcon.Images[i + 1];
flexStartMenu1.Items.Add(m_item);
}
}
代码下载:/Files/dreamszx/SmartDeviceProject2.rar
还没改成圆角矩形,有空再加了
网上东抄抄西抄抄,再改改成的,可以随意修改,如果有改进,请发一份给我,谢谢