Hello,
New to this forum and can't wait, as a begginner I believe I will have lots of posts and lots to learn.
So here is the first one:
I am trying to open another form from my main one but I can't seem to get it to open on top.
Code:
frm_imageViewer.pict_imageDisplay.Image = Image.FromFile(filePath)
frm_imageViewer.Show()
frm_imageViewer.Activate()
It flashes in front for a millisec and then goes behind my main form. I don't want to set the TopMost property to true because If I switch back to my main form it will still be on top.
How do I open it on top? I thought if I used Activate() that was supposed to bring it to the front?
Thanks for your help.
gcollins
New to this forum and can't wait, as a begginner I believe I will have lots of posts and lots to learn.
So here is the first one:
I am trying to open another form from my main one but I can't seem to get it to open on top.
Code:
frm_imageViewer.pict_imageDisplay.Image = Image.FromFile(filePath)
frm_imageViewer.Show()
frm_imageViewer.Activate()
It flashes in front for a millisec and then goes behind my main form. I don't want to set the TopMost property to true because If I switch back to my main form it will still be on top.
How do I open it on top? I thought if I used Activate() that was supposed to bring it to the front?
Thanks for your help.
gcollins