On start up I disable all toolbars and commandbars.
Thus my "base forms" open (Maximised) with a simple border and nothing else (other than the minimise, restore and close buttons in the top right corner). (everything else is disabled)
I have a "new form" which opens on top of these "base forms". This form is a POP UP and I do NOT want it to have borders.
I would like this "new form" to open up to exactly the same size as the "base form". Meaning that the users sees the "new form" except that the border is from the form underneath.
I can force this to happen by setting/dragging the new form (in design view) to a certain size which is perfect for my screen resolution. But if the screen resoltuion changes then my "base form" maximises to the full screen, but my new form does not change size.
So my question is how can I dynamically resize this pop up.
I realise that I am probably going to have to use API calls and get the "base form" size but can someone point me at least in the right direction.
Thus my "base forms" open (Maximised) with a simple border and nothing else (other than the minimise, restore and close buttons in the top right corner). (everything else is disabled)
I have a "new form" which opens on top of these "base forms". This form is a POP UP and I do NOT want it to have borders.
I would like this "new form" to open up to exactly the same size as the "base form". Meaning that the users sees the "new form" except that the border is from the form underneath.
I can force this to happen by setting/dragging the new form (in design view) to a certain size which is perfect for my screen resolution. But if the screen resoltuion changes then my "base form" maximises to the full screen, but my new form does not change size.
So my question is how can I dynamically resize this pop up.
I realise that I am probably going to have to use API calls and get the "base form" size but can someone point me at least in the right direction.