473,385 Members | 1,343 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.

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 12450
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*****@optonline.net> wrote in message
news:uQ**************@TK2MSFTNGP15.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.com> wrote in message
news:uj**************@TK2MSFTNGP15.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*****@optonline.net> wrote in message
news:uQ**************@TK2MSFTNGP15.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*****@optonline.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.co.uk/mdi.html>
-> "Customize an MDI Application."

Painting in the MDI Client Area
<URL:http://vbaccelerator.com/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**************@TK2MSFTNGP10.phx.gbl...
"Bernie Yaeger" <be*****@optonline.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.co.uk/mdi.html>
-> "Customize an MDI Application."

Painting in the MDI Client Area
<URL:http://vbaccelerator.com/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
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...
2
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...
2
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...
39
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...
5
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...
1
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...
0
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...
1
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...
8
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..
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.