Compact Framework , Pictures , forms,....

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi there
I'm new to developping with the .NET Compact Framework . I've many open
question and hope that all of you can help me :-)


First of all I create a small app and compiled it with the compact
framework. Now I've some trouble with showing a picture

when ever i ad an picture class i get an error on the PocketPC. So my
first question is: How can i add pictures to my apps and what is
important to do this?

Then the bottom bar of the pda where you can activate the keyboard
disappears and i also can'T see the border of my form.It seems like my
form stretches out of the screen. What do i wrong?
How can I show the keyboard? id'like to show always the keyboard when a
user clicks in a textbox

Here my source hope this helps

using System;
using System.Drawing;
using System.Windows.Forms;

namespace Form
{
/// <summary>
/// Description of MainForm.
/// </summary>
public class MainForm : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.PictureBox pictureBox1;
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms
designer support.
//
InitializeComponent();

//
// TODO: Add constructor code after the InitializeComponent() call.
//
}

//[STAThread]
public static void Main(string[] args)
{
Application.Run(new MainForm());
}

#region Windows Forms Designer generated code
private void InitializeComponent() {
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(MainForm));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
//
// pictureBox1
//
//this.pictureBox1.Image =
((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
//this.pictureBox1.Location = new System.Drawing.Point(64, 72);
//this.pictureBox1.Size = new System.Drawing.Size(40, 32);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(120, 80);
this.textBox2.Text = "textBox2";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(0, 0);
this.textBox1.Text = "";
//
// MainForm
//
this.Width = 50;
this.Height = 50;
this.ClientSize = new System.Drawing.Size(100,100);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.textBox2);
this.Text = "smartCRM.PDA";
this.Load += new System.EventHandler(this.MainFormLoad);
}
#endregion
void MainFormLoad(object sender, System.EventArgs e)
{

}

}
}

thank you!

.



Relevant Pages

  • Re: New MacBook
    ... with the standard U.S. keyboard: ... You can see "num lock" written clearly on this key in the picture above. ... key on the key pad) is left up to individual application developers. ... applications that specialize in numeric data entry do support it. ...
    (comp.sys.mac.system)
  • Re: somewhat OT: Laptop repairs (Inspiron 8200)
    ... The keyboard itself has two very flat cables coming out of it. ... It "looks like" the notches and tabs match up, ... together with the slots and tabs, the metal sheet will keep the ... shown clearly in the above picture). ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Serial killer Jack Kevorkian is free again.
    ... I picture you posting with one ... hand on the keyboard and the other on a gun placed against your temple. ... very troublesome. ...
    (rec.sport.pro-wrestling)
  • Re: Bay Area Quake
    ... coke | nose> keyboard ... I guess I don't live a very pure life, ... picture that this phrase immediately conjured up. ...
    (soc.motss)
  • Re: Blinking Desktop Icons
    ... On 5/17/2007 1:25 PM On a whim, Drasko pounded out on the keyboard ... picture, refresh and after that everything is as always and O.K.! ...
    (microsoft.public.windowsxp.general)