Quantcast
Viewing all articles
Browse latest Browse all 3773

Place the controls on the screen using the code

If I put the following code in the “Pressed” event of a button, it works:

var l As Integer=self.Size.Width
var h As Integer=self.Size.Height

me.top=h-me.Height-5
me.Left=l-me.Width-5
me.refresh

But if I put it in the “Opening” event of the same button, it doesn’t work. And if I move it to the “Activated” or “Opening” event of a screen, ditto.

How do I reposition the controls when a screen is opened?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3773

Trending Articles