473,683 Members | 2,914 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

adding background image to form(windows mobile)

42 New Member
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"(wind ows mobile).
thanks in advance..
Oct 16 '08 #1
8 12083
RedSon
5,000 Recognized Expert Expert
Have you searched MSDN?
Oct 16 '08 #2
libish
42 New Member
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 Recognized Expert Expert
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 New Member
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 New Member
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 Recognized Expert Contributor
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 New Member
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
1242
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 form, the new form this.text shows up, but then when it returns to the dataGrid_MouseDown event, the current form's this.text shows up and the menu for the calling form stays up even though the rest of the form shows the new form. When I click on a...
0
1277
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 mobile web form: I can't put a HtmlInputFile on a mobile web form. So, how can I do this upload ? Thank you for answer.
1
1795
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 use the Printer functions)? (Is there a method that involves saving it as a file first?) -- ***************************** Chuck Anderson • Boulder, CO
4
4362
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
1203
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 access to the controls on Form2. Why doesnt this work? Note: Its a windows mobile application.
0
2082
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 tried to add them by right clicking on the toolbox, but they look inactive in the toolbox so i can't drag and drop them on my form. Please help me.
0
852
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 not running on server machine. But same applicaiton on local machin running well. Could u plz tell me wht will be the issue and wht i have to do for that. Plz help me
1
1592
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 ............ can anyone help me with the code of datagrid to display image in datagrid column........... Regards........
0
8504
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9042
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8922
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8771
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4299
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4519
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2934
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.