473,385 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

adding background image to form(windows mobile)

42
hi all..,
i'm new in windows mobile application...
i would like to kno if there exist any way to add a background image to "form"(windows mobile).
thanks in advance..
Oct 16 '08 #1
8 12065
RedSon
5,000 Expert 4TB
Have you searched MSDN?
Oct 16 '08 #2
libish
42
Have you searched MSDN?

yes i've searched msdn... there i found adding background image to buttons and all..
but what i need is to add a background image to "form" this i couldnt find..
Oct 17 '08 #3
RedSon
5,000 Expert 4TB
yes i've searched msdn... there i found adding background image to buttons and all..
but what i need is to add a background image to "form" this i couldnt find..
Well a button is technically a window so maybe you can try using the same strategy. What did you find on it?
Oct 17 '08 #4
LTCCTL
49
Hi,

You can add a picture box to the form, add image and set the dock property to fill, you can also use the property SizeMode as StretchImage.


hope this will help


Regards
LTCCTL
Oct 18 '08 #5
libish
42
hi all...
thanks for your reply.

i got a form, by default there is no background image. here i want to add an image as background, and top of this image i want some text box some buttons etc...

if i add an image in picture box, then i wont be able to add text boxes and buttons on top of it... that is why i'm in search of what i'm searching.
Oct 20 '08 #6
markmcgookin
648 Expert 512MB
hi all...
thanks for your reply.

i got a form, by default there is no background image. here i want to add an image as background, and top of this image i want some text box some buttons etc...

if i add an image in picture box, then i wont be able to add text boxes and buttons on top of it... that is why i'm in search of what i'm searching.
Yes you can, but in theory the buttons etc would be sitting on the picture box wouldn't they?

Can you not use Visual Studio's "Bring to Front" option on your textboxes to move them in front of the picture box?
Oct 20 '08 #7
libish
42
Yes you can, but in theory the buttons etc would be sitting on the picture box wouldn't they?

Can you not use Visual Studio's "Bring to Front" option on your textboxes to move them in front of the picture box?



thank you soo much for that suggestion....
it works...
Oct 20 '08 #8
I know this thread is is kinda old but just for the people still looking for it.

The above solution is what i used to use but its anoying to keep setting every control to the front one by one, and also while filling youre window it can be anoying not to select the form on an empty piece of form.

so here is the solution i came up with.

Expand|Select|Wrap|Line Numbers
  1. protected override void OnPaintBackground(PaintEventArgs e)
  2.         {
  3.             base.OnPaintBackground(e);
  4.             e.Graphics.DrawImage(YoureGraphicOrBitmapHere, 0, 0);
  5.         }
  6.  
The above will draw youre background in youre window and makes it not clickable.
Oct 13 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: madmanpierre | last post by:
I'm having a trouble (sp3 installed) with mobile .net In form 1, in dadaGrid_MouseDown, I am showing another form. No matter what I seem to try (such as this.visible=false), after I show the...
0
by: Aouizerat | last post by:
I have to upload a file from a pocket pc client to a web server. With a non mobile web form, it runs with a HtmlInputFile: .... myFile.PostedFile.SaveAs(...); .... but I can't do this on a...
1
by: Chuck Anderson | last post by:
I have created an image using GD lib and now I would like to print it using the Printer functions (on Windows XP). Does anyone know how to write the image in memory to the printer (I assume I can...
4
by: iKiLL | last post by:
Hi All I am Developing in C# with VS2005. I am Developing a Windows Mobile Forms Application with the CF2 My problem is that when the Input panel is displayed my screen does not
0
by: CrystalSakura | last post by:
Hi, I want to change the Text of a textbox which on other form. I have tried the code below but it doesnt work. On Form1: Form f2 = new Form2(); f2.TextBox1.Text = "testing"; I cant get...
0
by: tekeste | last post by:
Hello friends. I'm developing a simple smart device application using vb.net for my windows CE.net NEC mobile pro 900. the device toolbox available are very limited. How can I import some controls? i...
0
by: Question123 | last post by:
Hi I have created one windows dekstop applicaiton with C#. that will accept cmd aruments. i have added this applicaiton in Windows Schedular task from where i am trying to pass aruments but it's...
1
by: nagasrinivas05 | last post by:
Hi Friends, dataGridView1.Value = HWDESC(Working) i am using this to disply the text in the datagridview column and now i want to display image in place of text without retreving from database...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.