473,383 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

set mdi child window to panel in window container

Cc
I try to make like note pad when open a document, the document will show in
a tab control (something in vs)
the trick I do is
- on window container(parent) I create a split container (one for tool
box ) another I put a tab control . (both set dock to fill)
- on mdi child(called newDoc) I set frame to none, window state to normal.
and put richtextbox in it(set dock to fill)
- back to window parent on menu (just said new document )

Private Sub NewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles NewToolStripMenuItem.Click
Dim o_newDoc As New newDoc

o_newDoc.MdiParent = Me

Dim TabPage1 As New System.Windows.Forms.TabPage

TabControl1.Controls.Add(TabPage1)

TabPage1.Controls.Add(o_newDoc)

o_newDoc.Dock = DockStyle.Fill

o_newDoc.Show()

End Sub
it work but there a problem :
1. no close button to close the tab panel & mdi window in it
2. how do I on runtime create tab panel

please any idea would be great

rgds,
charles



Nov 21 '05 #1
0 3095

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Yasutaka Ito | last post by:
Hi, I have an MDI application, in which I want to embed one form (System.Windows.Forms.Form) into a specified area of my MDI application. This is, wihtout affecting the capability of other child...
2
by: Anonymous | last post by:
Hello all, Is it possible and if it is how do i allow a child panel to exceed it's parent panel's bounds? ( Essentially appearing to overlap it's parent.). Currently all controls within a panel...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
4
by: Tom | last post by:
I want to be able to 'make' a MDI Child Window appear at the same place in my MDI container. For example, maybe I want this Child window to always appear at Top=0 and Left=0; or, when the user...
1
by: sbs | last post by:
Hello, I have a funny question. We are in the process of moving a software of ours from vb6 to vb.net. In order to get smooth transition we plan to use the former app inside the newer as an...
2
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the...
5
by: james | last post by:
How can I control the placement of scrollbars in mdi child windows? I need to place a control at the top of my child form and this control needs to always be visible. The rest of the page needs...
0
by: VMahaadevan | last post by:
Hi, I have MDI form in that I have 4 panels left panel has treeview control top panel has heading, version, label, Bottom panel has status bar for MDI and right side panel is work area where I...
3
by: querry | last post by:
Hi there, I have a problem. I am devloping a C# ASP.NET User Control (a .ascx file). I want to display a table on the user control. This table is generated on the fly. First the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.