Page 1 of 1

Topmost but not topmost

Posted: Thu Jan 12, 2012 3:58 pm
by clanc789
Hey Coders,

Can you help me out with this:
I cant find out how to make this, +rep for the one who tells me how to do that (via PM or reply to this topic).

Re: Topmost but not topmost

Posted: Thu Jan 12, 2012 5:00 pm
by Axel
It's a dialog, so I googled dialog topmost and came up with this :
http://stackoverflow.com/questions/6751 ... ards-to-th

Re: Topmost but not topmost

Posted: Thu Jan 12, 2012 5:29 pm
by clanc789
2 things: that is C# I need vb.net
and 2nd: it doesnt work. It retrieves the focus to the other form whilst you can still click form 1 (timer with interval 1milisecond could be...) but there must be another option!

I alrdy tried: form2.focus (timer 1.interval = 1 with that code). Works partly but I can still click on things in form1. I dont want to make it like: form1.enable = false. Just that what i showed in the vid.

Re: Topmost but not topmost

Posted: Thu Jan 12, 2012 6:11 pm
by Agust1337
??
Code: Select all
Form2 fd = new Form2();
fd.ShowDialog(this);
Code: Select all
Dim fd As New Form2()
fd.ShowDialog(Me)
i dont see much of a change? lol

Re: Topmost but not topmost

Posted: Thu Jan 12, 2012 6:19 pm
by Axel
It does work fine...
I have 2 forms , Form1 and Form2
on Form1 there is a button , on the click :
Code: Select all
        Dim f2 As Form2 = New Form2()
        f2.ShowDialog(Me)

Re: Topmost but not topmost

Posted: Thu Jan 12, 2012 6:23 pm
by clanc789
Ive +repped agust, cant give you twice in a row axel, ill do you when i can send the next +rep :D