When I was working on my SecretSMS project, I’ve resolving a problem with my own dialog. Exactly to write a pass to read SMS.
To have some CustomControl or invisible panel was to “Skoumal Degree”. The best was to have form, but in Windows Mobile Forms are defaultly Maximalized. But here is a trick:
- Add new Form to your project. I’ve named’em InsertKey
- ControlBox = false;
- FormBorderStyle = None; //THIS IS THE MOST IMPORTANT
- MinimizeBox = false;
- Skin = false;
- for better appearance in OnPaint event draw a Border
private void InsertKey_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; g.DrawRectangle(new Pen(Color.FromArgb(32, 42, 44)), 0, 0, this.Width - 1, this.Height - 1); }
So that’s all.
and “Gratuluji manzelum Paroubkovym”
November 1st, 2009 at 9:42 pm
to vypadá dob?e
a i gratulace. To se pozná sociální demokrat