CallMeLaNN
unread,Mar 2, 2009, 7:26:34 AM3/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I am not sure about putting Form in Panel, sounds wired.
Try this
- Use MDI Form or (Can't be put in Panel)
- UserControl to put in the Panel.
From what I understood what is you trying to do, User Control is the
best. Otherwise, you can make popup Form by just show it "Form2.Show
(this);" or "Form2.ShowDialog(this);".
I am not sure the shortcuts can be functioning by this way or not.
However you can use custom code to listen to windows message that can
handle hotkey message, but it is difficult.
Hm...
Maybe you said floating because of you use Form2.Show() and the Form2
is not in Form1. It shoulb be like that. There is no way to put in
Panel, because it is Form. Instead, use User Control I mention above.
It is just like a Form but with no title bar. To do that:
1. Create User Control named UserControl1.
2. Place a control into it. E.g: drag Button, TextBox into the
UserControl1.
3. Rebuild the project. (Compulsory, otherwise UserControl1 is not in
your Toolbox)
4. The UserControl is placed in Toolbox, drag it into your main Form
or Panel in main Form. OR
5. Creat instance in code and add into Panel control. E.g:
Panel1.Control.Add(UserControl1)
Updating controls in User Control will also update where you place
it.