473,549 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

form background image - mdi parent form

It's trivial to have an image as the background in an mdi child form. What
I can't seem to get done is place an image as the background of an mdi
parent form. Is there a way to do this?

Thanks for any help.

Bernie Yaeger
Nov 21 '05 #1
5 12466
Hi Bernie,

Just dealt with this myself. Can't do it out of the box, but, check out:

http://www.codeproject.com/csharp/Md...tRevisited.asp

the dll is written in C#, but it's pretty straight forward. Just add the dll
to your toolbox, then drop the control on the MDI parent form. You can set
the background color and add an image (centered or stretched)

HTH
Lee

"Bernie Yaeger" <be*****@optonl ine.net> wrote in message
news:uQ******** ******@TK2MSFTN GP15.phx.gbl...
It's trivial to have an image as the background in an mdi child form.
What I can't seem to get done is place an image as the background of an
mdi parent form. Is there a way to do this?

Thanks for any help.

Bernie Yaeger

Nov 21 '05 #2
Hi Lee,

Thanks for your help; I'm reviewing the code and the dll now.

Bernie

"lgbjr" <lg***@nospam.c om> wrote in message
news:uj******** ******@TK2MSFTN GP15.phx.gbl...
Hi Bernie,

Just dealt with this myself. Can't do it out of the box, but, check out:

http://www.codeproject.com/csharp/Md...tRevisited.asp

the dll is written in C#, but it's pretty straight forward. Just add the
dll to your toolbox, then drop the control on the MDI parent form. You can
set the background color and add an image (centered or stretched)

HTH
Lee

"Bernie Yaeger" <be*****@optonl ine.net> wrote in message
news:uQ******** ******@TK2MSFTN GP15.phx.gbl...
It's trivial to have an image as the background in an mdi child form.
What I can't seem to get done is place an image as the background of an
mdi parent form. Is there a way to do this?

Thanks for any help.

Bernie Yaeger


Nov 21 '05 #3
"Bernie Yaeger" <be*****@optonl ine.net> schrieb:
It's trivial to have an image as the background in an mdi child form.
What I can't seem to get done is place an image as the background of an
mdi parent form. Is there a way to do this?


<URL:http://www.dotnetrix.c o.uk/mdi.html>
-> "Customize an MDI Application."

Painting in the MDI Client Area
<URL:http://vbaccelerator.c om/article.asp?id= 4306>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Tx Herfried,

I am having some trouble with the other code, so this is doubly welcome.

Thanks as always

Bernie

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:er******** ******@TK2MSFTN GP10.phx.gbl...
"Bernie Yaeger" <be*****@optonl ine.net> schrieb:
It's trivial to have an image as the background in an mdi child form.
What I can't seem to get done is place an image as the background of an
mdi parent form. Is there a way to do this?


<URL:http://www.dotnetrix.c o.uk/mdi.html>
-> "Customize an MDI Application."

Painting in the MDI Client Area
<URL:http://vbaccelerator.c om/article.asp?id= 4306>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Bernie Yaeger wrote:
It's trivial to have an image as the background in an mdi child form. What
I can't seem to get done is place an image as the background of an mdi
parent form. Is there a way to do this?

Thanks for any help.

Bernie Yaeger


I've done this in the IDE. It doesn't show up when in design mode, but
when running the app it shows the background image in the MDI parent.
Somehow setting the isMDIcontainer prevents is from showing in the IDE,
don't know why though.
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1498
by: smoke | last post by:
I have a picture on the form background and a panel which can be moved by the user by dragging it. Various dialogs are also opened and closed by the user. Why is it that after a dialog is closed, anytime a user moves the panel, the area that contained the last dialog opened flashes the background color through the picture. It doesnt...
2
3274
by: Ivan Weiss | last post by:
How can I stretch a background image to fit the size of my form (fitting underneath a toolbar and menu control I have on the top) and make it automatically resize whenever the form is resized. I cannot seem to find a stretch property like a picturebox has. -Ivan *** Sent via Developersdex http://www.developersdex.com *** Don't just...
2
2599
by: Susan Sullivan | last post by:
How can I change properties of a child form through a parent form? I have a child form with a rich text box. I want to control font properties of the rich text box through a menu on the parent form. How do I get the two to talk to each other?
39
3023
by: jcrouse | last post by:
I am using the following code to get a background image for my form Private Sub mnuBgroundImage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuBgroundImage.Clic If OpenFileDialog1.ShowDialog() = DialogResult.OK The Dim sr As New System.IO.StreamReader(OpenFileDialog1.FileName Me.BackgroundImage =...
5
2584
by: superjacent | last post by:
Hope someone can help. I have a saved parent form containing an unbound sub-form. I set the SourceObject (form) after the Parent Form opens/loads. The sub-form (datasheet view) basically displays the results of a cross-tab query The cross-tab query is created dynamically (in code) as the column headings are subject to change. I...
1
1560
by: Rohit111111 | last post by:
I have my base form which has background image , tool bar etc,All other forms inherit it. The background image size is162kb and it is in PNG format.All the other forms also has many images since we have unique look and feel. The issue I am facing is performance . Application works fast when I don't have background image on my base form ( in...
0
1612
by: Vyas111111 | last post by:
I have my base form which has background image , tool bar etc,All other forms inherit it. The background image size is162kb and it is in PNG format.All the other forms also has many images since we have unique look and feel. The issue I am facing is performance . Application works fast when I don't have background image on my base form ( in...
1
4512
by: IframeLearner | last post by:
Hi , I am trying to upload a file from a parent.jsp using Iframes. From Parent page. I have to save Subject, Desc, File and file name. to upload the file i am using Iframe. I want the iframe to save file in the Db and come back to parent page with file name in the form of the parent , so that i can save the parent after updaing other...
8
12076
by: libish | last post by:
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..
0
7471
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...
0
7740
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. ...
0
7985
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...
1
7503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7830
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...
0
5111
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3517
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...
1
1962
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
0
784
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...

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.