Hi,
I have programme in C#.Net. But I want to write application for embedded operation system and i use QT.
in C#.net code
//Button Arraylist
string[] buttonsarray = new string[2] { "firstbutton", "secondbutton"};
Dictionary<string, Button> buttonlist = new Dictionary<string, Button>();
private void createButton()
{
//each index of this array
foreach (string name in buttonsarray)
{
this.buttonlist[name] = new Button();
this.buttonlist[name].Text = name;
this.buttonlist[name].Location = new System.Drawing.Point(16*(countx+1) + padding * countx, 10);
this.buttonlist[name].Size = new System.Drawing.Size(95, 145);
// Show form
this.Controls.Add(buttonlist[name]);
countx += 1;
}
}
//Button Arraylist
string[] buttonsarray = new string[2] { "firstbutton", "secondbutton"};
Dictionary<string, Button> buttonlist = new Dictionary<string, Button>();
private void createButton()
{
//each index of this array
foreach (string name in buttonsarray)
{
this.buttonlist[name] = new Button();
this.buttonlist[name].Text = name;
this.buttonlist[name].Location = new System.Drawing.Point(16*(countx+1) + padding * countx, 10);
this.buttonlist[name].Size = new System.Drawing.Size(95, 145);
// Show form
this.Controls.Add(buttonlist[name]);
countx += 1;
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks