PC Review


Reply
Thread Tools Rate Thread

Compact Framework , Pictures , forms,....

 
 
info@it-design.biz
Guest
Posts: n/a
 
      23rd May 2005
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!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
Posts: n/a
 
      23rd May 2005
Most of your questions are FAQ:

http://msdn.microsoft.com/smartclien...q/default.aspx

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"(E-Mail Removed)" wrote:

> 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!
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Regular Windows Forms and Compact Framework Microsoft Dot NET Compact Framework 1 18th Jan 2007 10:11 PM
Forms in Compact Framework David Microsoft Dot NET Compact Framework 1 1st Aug 2004 10:13 AM
Windows.Forms Issue (compact framework) Brett Miller Microsoft Dot NET Compact Framework 1 16th Jul 2004 11:22 PM
Windows.Forms Issue (compact framework) Brett Miller Microsoft Dot NET Framework Forms 0 8th Jul 2004 07:57 AM
Unload forms in .Net Compact Framework Red Microsoft Dot NET Compact Framework 4 28th Feb 2004 05:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:06 AM.