Last edited by chronjy; 04-29-2021 at 05:27 PM.
can you Rt-click on circle , position, bring to front.
or on image, send to back
the circles were created by vba code, so, i cannot use right click. and the image control have no method of z-order..
The test code below...
Me.Circle (500, 500), 500, vbRed
Me.Circle (700, 550), 400, vbBlue
Me.Circle (600, 750), 150, vbGreen
DoMenuItem comes to mind but I'm afraid I don't know the syntax for that operation. Am playing with it and will post back if I find a solution.
EDIT
OK, would be DoCmd.Runcommand 53. However, using code I believe you'd have to put the form in design view, select the object and run the command - probably not practical. Can you not just make one image invisible? If the image you want to be on top is "sample" then maybe create that using Word Art, set its transparency to be a low value such that you will be able to see what's behind it. I have done this for a watermark on a report where the controls needed to be visible behind the watermark.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
The following applies to the approach of swapping views and altering z-order. Works but I don't think you can prevent the screen flicker. Not something I would use:
Code:Private Sub Command12_Click() Dim ctl As Control Dim strFrm As String strFrm = Forms!form1.Name DoCmd.Close acForm, strFrm DoCmd.OpenForm strFrm, acDesign For Each ctl In Forms(strFrm).Controls ctl.InSelection = False Next Forms(strFrm).Controls("image8").InSelection = True DoCmd.RunCommand 53 DoCmd.Close, "form1", acSaveNo DoCmd.OpenForm "form1" End Sub
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
i find new approach from your suggestion
it is very impressive, it is very helpful for me. thank you.
You are welcome. Would you post your solution so that it might help someone in the future?
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.