ActiveX - Positioning Daisy


When Daisy is run from another program using ActiveX techniques, it is often required to position the program directly on the screen.


The following snippet of code positions Daisy in the middle of the screen at a size of 80 % of the screen.

  Daisy.WindowState = vbNormal
  Daisy.Width = Screen.Width * 0.8
  Daisy.Height = Screen.Height * 0.8
  Daisy.Left = Screen.Width * 0.1
  Daisy.Top = Screen.Height * 0.1
  Daisy.ShowDaisy

Note :-

  1. The 'Daisy' object has been properly loaded and initialised before this code is run..

  2. The WindowState, Width, Height, Left and Top properties are used to set how Daisy will be displayed.

  3. The ShowDaisy method is used to actually show the program after it has been positioned.


ActiveX   Daisy   Index