Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Form inside a panel

4 views
Skip to first unread message

Fabio

unread,
Sep 30, 2003, 7:17:46 PM9/30/03
to
How Can I open a form inside a panel of other form?

Is it possible???

Thanks in advance,

Fabio


Herfried K. Wagner [MVP]

unread,
Sep 30, 2003, 7:24:22 PM9/30/03
to
"Fabio" <fa...@glb.com.br> scripsit:

> 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()
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Fergus Cooney

unread,
Sep 30, 2003, 7:58:00 PM9/30/03
to
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


sam

unread,
Sep 30, 2003, 9:20:44 PM9/30/03
to
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.

>.
>

Herfried K. Wagner [MVP]

unread,
Oct 1, 2003, 6:36:15 AM10/1/03
to
"Fergus Cooney" <filt...@tesco.net> scripsit:

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

Herfried K. Wagner [MVP]

unread,
Oct 1, 2003, 6:37:24 AM10/1/03
to
"sam" <open...@mgt.ncu.edu.tw> scripsit:

> 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.

Fergus Cooney

unread,
Oct 1, 2003, 9:39:00 AM10/1/03
to
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


Herfried K. Wagner [MVP]

unread,
Oct 1, 2003, 10:39:36 AM10/1/03
to
"Fergus Cooney" <filt...@tesco.net> scripsit:

> 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>.

Fergus Cooney

unread,
Oct 1, 2003, 1:09:46 PM10/1/03
to
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


Herfried K. Wagner [MVP]

unread,
Oct 1, 2003, 4:42:38 PM10/1/03
to
"Fergus Cooney" <filt...@tesco.net> scripsit:

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

:-)

sam

unread,
Oct 1, 2003, 8:24:27 PM10/1/03
to
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.

>.
>

Herfried K. Wagner [MVP]

unread,
Oct 1, 2003, 8:47:05 PM10/1/03
to
"sam" <open...@mgt.ncu.edu.tw> scripsit:

> 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?

0 new messages