Form inside a panel

  • Thread starter Thread starter Fabio
  • Start date Start date
F

Fabio

How Can I open a form inside a panel of other form?

Is it possible???

Thanks in advance,

Fabio
 
Fabio said:
How Can I open a form inside a panel of other form?

\\\
Dim f As New Form2()
f.TopLevel = False
Me.Panel1.Controls.Add(f)
f.Show()
///
 
Hi Fabio, Herfried,

Well, I'll be blowed over!! Isn't that a handy piece of knowledge - MDI
child Forms inside a Panel!! That means you could have several Panels each
with an independant set of Forms!

If you wanted to move a child Form from one Panel to another, simply do:
Me.ADifferentPanel.Controls.Add (f)
This will detach it from one and move it across.

Regards,
Fergus
 
I also want to have this function in my software.

I try to run your code. But f did not have TopLevel
method. And Me.Panel1.Controls.Add(f) will make
software becomde debuge mode when I click button to
execute your code.
Can you describe your code in detail? Thanks.
 
Fergus Cooney said:
Well, I'll be blowed over!! Isn't that a handy piece of knowledge - MDI
child Forms inside a Panel!! That means you could have several Panels each
with an independant set of Forms!

If you wanted to move a child Form from one Panel to another, simply do:
Me.ADifferentPanel.Controls.Add (f)
This will detach it from one and move it across.

A really cool feature, but the border of the form will never get highlighted.
 
sam said:
I try to run your code. But f did not have TopLevel
method. And Me.Panel1.Controls.Add(f) will make
software becomde debuge mode when I click button to
execute your code.
Can you describe your code in detail? Thanks.

Add a panel control to your main form. Then add a new form 'Form2' to your
project. Add the code to a button's 'Click' event handler on the main
form and run it.
 
Hi Herfried,

|| A really cool feature, but the border of the form will never get
highlighted

No highlight, eh? Well that's no good - can't use it without a highlight.
;-)

Actually I'm thinking of borderless windows anyway because they will be
bordered by a custom splitter. :-))

<rant>
OE and MS Server - I get five minutes per ten hours to download - outside
that I get the dreaded strike-through. I can see your reply but not mine, nor
the OQ. Grrr!!

I wish MS would at least post a message explaining what they are doing and
why these problems exist. That's just common courtesy, in my book.
</rant>

What's this Hamster that you have? How does it get around the server's
reluctance to deliver, and its contrariness - "you can have 5am to 10am but no
more"; "No, I've changed my mind, you can have 11pm the night before until
2am"; "No, now you can have the lastest 36 messages but nothing earlier"!!!
And why do you need to cross a Hamster with a gnu?

Regards,
Fergus
 
Fergus Cooney said:
Actually I'm thinking of borderless windows anyway because they will be
bordered by a custom splitter. :-))

There may be focus issues, but I didn't have enough time to test that.
<rant>
OE and MS Server - I get five minutes per ten hours to download - outside
that I get the dreaded strike-through. I can see your reply but not mine, nor
the OQ. Grrr!!

I wish MS would at least post a message explaining what they are doing and
why these problems exist. That's just common courtesy, in my book.
</rant>

Are you accessing the groups with OE +
msnews.microsoft.com/news.microsoft.com? I am not able to get any
messages with OE.
What's this Hamster that you have? How does it get around the server's
reluctance to deliver, and its contrariness - "you can have 5am to 10am but no
more"; "No, I've changed my mind, you can have 11pm the night before until
2am"; "No, now you can have the lastest 36 messages but nothing earlier"!!!
And why do you need to cross a Hamster with a gnu?

As mentioned before, Hamster is a small newsserver you can run on your
machine. It can download the messages from multiple news servers. Then
you can use OE or any other newsreader and get the messages from your
Hamster. You will find more information on Hamster at [1].

Footnotes:
[1] <http://www.tglsoft.de>.
 
Hi Herfried,

Yes, I'm using OE and msnews. It's been refusing to download all day. Then
about fifteen minutes ago it suddenly updated to a mere 3 hours behind. I made
the most of it by clicking everything in sight so I've now got all the
messages up to then. Now, though, if I switch to a different identity and
reset the newsgroup, I can't download anything later than midnight last night.
In another identity which I use just to see if there's life on the line, it
won't even do a 'get new headers' - not even one! This situation is just so
crazy. I can't believe that this spam virus is the cause.

Regards,
Fergus
 
Fergus Cooney said:
Yes, I'm using OE and msnews. It's been refusing to download all day. Then
about fifteen minutes ago it suddenly updated to a mere 3 hours behind. I made
the most of it by clicking everything in sight so I've now got all the
messages up to then. Now, though, if I switch to a different identity and
reset the newsgroup, I can't download anything later than midnight last night.
In another identity which I use just to see if there's life on the line, it
won't even do a 'get new headers' - not even one! This situation is just so
crazy. I can't believe that this spam virus is the cause.

I am getting some messages from the server now...

:-)
 
Can you explain what is Toplevel?
I did have the same procedures as you mention originally.
Your codes are very helpful to me.
Can you teache me how to execute your code?
Thanks lots.
 
sam said:
Can you explain what is Toplevel?

It's, simplified, a property of the form.
I did have the same procedures as you mention originally.
Your codes are very helpful to me.

Did they work as expected?
Can you teache me how to execute your code?

Didn't I already tell you that? What problem do you have executing the code?
 
Back
Top