Can some one help me how can i make automatically my Application be on top of other software...?
Printable View
Can some one help me how can i make automatically my Application be on top of other software...?
set your main forms topmost property to true.
thanks mate...:D
can some one assist me how to make when user checks the check box the windows be on top when user unchecks it the windows not be on top ...?!
can some one help me on this..?!
in the checkbox just put
me.topmost = not me.topmost
That's not really the most appropriate way to do it. That would work as long as you had the TopMost property set to the correct value in the first place but if you didn't then it would actually do the opposite of what you wanted. The most appropriate way is like this:Quote:
Originally Posted by youthbytes
They both start out as False by default so that will always work.vb.net Code:
Me.TopMost = Me.CheckBox1.Checked
why wouldn't they set it before hand in the loading of the settings or if there are no settings, in the properties of the project before they build it?
i get your point, i just wouldn't ever have that problem.
Code:Private sub checkdchanged handles CheckBox1.Checkedchanged
Me.Topmost = Me.CheckBox1.Checked
End sub