Link to home
Start Free TrialLog in
Avatar of Ernesto
ErnestoFlag for Mexico

asked on

how to bring to back always mid parent image form

hi all
how to send to back
mid parent image

i send a image for you guys help me please!!!
send-to-back.png
Avatar of Ernesto
Ernesto
Flag of Mexico image

ASKER

i do my forms call like this

 Private Sub OrdenesDeCompraToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles OrdenesDeCompraToolStripMenuItem.Click
        odcl.MdiParent = Me
        odcl.Show()
        If odcl.WindowState = FormWindowState.Minimized Then
            odcl.WindowState = FormWindowState.Normal
        End If
        odcl.Activate()
    End Sub
Avatar of Éric Moreau
the grid does not offer transparency. You cannot do it!
Avatar of Ernesto

ASKER

oh erik,
is any way to do so?
i need to put the company logo in the main screen
regards
nothing can show through the grid. a label can but not a grid.
Avatar of Ernesto

ASKER

Tsm is not a grid its a image control
Regards
which control has white and gray lines in the back? A Grid? Do you need to interact with that control? You can only interact with the top most control.
Are you using WinForms? WPF is able to offer some king of what you are looking for: http://www.blogs.intuidev.com/post/2010/05/02/ListViewWithWatermarkImage.aspx

And apparently some 3rd party controls can also do it: https://www.devexpress.com/Support/Center/Question/Details/Q527114
Avatar of Ernesto

ASKER

Yes eric the gris is my child form i need ti bring to from, in front is the company logo that is in the mid form but when call my child forms do not bring to back stays in front of the form
Regards
The grid does not allow transparency so you cannot put an image in the back of it and expect to see it as a watermark. The grid does not support it (unless you are ready to pay $$$ and go with something like the grid from DevExpress.
Avatar of Ernesto

ASKER

the image is not in the grid, the grid is my child form, the main form has the image, but when call the child form who is the one that contain the grid, the image in the main container do not bring to back, stays at front, i dont want to do anything with the grid i want to bring back the image that is within the main form.
regards eric
Does that mean that when the form containing the grid will be visible, your image won't be visible?

How do you "paint" the image?
Avatar of Ernesto

ASKER

eric im send you a pair of image in order to see more clearly what i want to achive  in order to see is that posible.
1.- Main page, is my project main page that is a MID container and i need to put in it the companys logo,

2.- main page with child is when i call a menu form as a child of the main, the logo that is contained in a picture box, do not bring to back in order to the child form displays as focused, always the picture box stays on top.

is any way to bring back that picture box? i try all stuf and still at front
regards
main-page.png
main-page-with-child.png
Avatar of Ernesto

ASKER

MDIcontainer, sorry, the main form is MDIcontainer
same question again: how do you paint your image?
Avatar of Ernesto

ASKER

I just browse the image and attach it to the picture box control
i set as autosize and i center with this:

         CenterToPoint(New Point(1022, 777))
        CenterToPoint(New Point(pb.Width / 2, pb.Height / 2))

regards eric
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ernesto

ASKER

no eric, how to do that?
regards
Avatar of Ernesto

ASKER

i think i find it
im inform you
wait a sec
regards
Avatar of Ernesto

ASKER

oh man
thats it
sorry about waist your time
regards
edo
Avatar of Ernesto

ASKER

tsm  once again eric
sorry for sticking on the watermark!