hi,

i have a problem with my form
so i have a form with windowstate = maximized
now there is a button in that form that if i click on, a new form will be opened.
so the problem is that
if the new form has been opened and i click on the first form, the first form will come to front and the second form(that was opened) would go to back.
can anyone tell me how to create the first something that if i click on it, it woouldn't send a new form to back.
i have this code but i think it is completely wrong.

For Each n As Form In Application.OpenForms
            n.SendToBack = False
        Next

any help will be appreciated

Recommended Answers

All 3 Replies

Hi,

Open the Second form in MODAL form:

Form2.Show 1

Regards
Veena

Form1.Show vbModal

commented: easy +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.