Is there a way to set a window to the top on screen and set focus on it?
I'm having a menu in VB.Net calling a bunch of .exe. Everytime a window apears, it runs itself to the top on screen. But there was a window, problem-able one, with some .dll which make it always stood behind everthing on screen. I cannot fix the .dll, so I'm trying to get the screen to go to the top with my code.
I tried:
Me.Activate()- Nothing happens...
Me.BringToFront()- Nothing happens...
Me.TopMost = True- Always on top, but no focus (dvmn it!!!)
Please help!
Eternal Newbie
30
Newbie Poster
Recommended Answers
Jump to PostThere is a (very) old forum post on this exact topic.
The (possible) solution can be found here.
Jump to PostTry Form1.Showdialog
Jump to PostDid you try the TopLevel property?
All 11 Replies
Begginnerdev
256
Junior Poster
eos.paks
0
Light Poster
Eternal Newbie
30
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Eternal Newbie
30
Newbie Poster
GeekPlease
16
Junior Poster
Eternal Newbie
30
Newbie Poster
GeekPlease
16
Junior Poster
Eternal Newbie
30
Newbie Poster
GeekPlease
16
Junior Poster
Eternal Newbie
30
Newbie Poster
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.