form background image - mdi parent form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bernie Yaeger

    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


  • lgbjr

    #2
    Re: form background image - mdi parent form

    Hi Bernie,

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



    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" <berniey@optonl ine.net> wrote in message
    news:uQANXwyuFH A.2556@TK2MSFTN GP15.phx.gbl...[color=blue]
    > 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
    >
    >[/color]


    Comment

    • Bernie Yaeger

      #3
      Re: form background image - mdi parent form

      Hi Lee,

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

      Bernie

      "lgbjr" <lgbjr@nospam.c om> wrote in message
      news:ujXNZl1uFH A.2568@TK2MSFTN GP15.phx.gbl...[color=blue]
      > 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" <berniey@optonl ine.net> wrote in message
      > news:uQANXwyuFH A.2556@TK2MSFTN GP15.phx.gbl...[color=green]
      >> 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
      >>
      >>[/color]
      >
      >[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: form background image - mdi parent form

        "Bernie Yaeger" <berniey@optonl ine.net> schrieb:[color=blue]
        > 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?[/color]

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

        Comment

        • Bernie Yaeger

          #5
          Re: form background image - mdi parent form

          Tx Herfried,

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

          Thanks as always

          Bernie

          "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
          news:erXZDf3uFH A.2328@TK2MSFTN GP10.phx.gbl...[color=blue]
          > "Bernie Yaeger" <berniey@optonl ine.net> schrieb:[color=green]
          >> 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?[/color]
          >
          > <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/>[/color]


          Comment

          • C-Services Holland b.v.

            #6
            Re: form background image - mdi parent form

            Bernie Yaeger wrote:
            [color=blue]
            > 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
            >
            >[/color]

            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.

            Comment

            Working...