Hi,
I have 3 forms under vb.net 2005.
MainForm (MDI parent)
Form1 (MDI child)
Form2 (MDI child)
i have a ToolStripMenu and when i click on some particular item, i open an instance of Form1 or Form2.
The particularity is that :
1. if an instance of MDI child is already opened, i show it, instead to create a new instance.
2. i want to maximize my MDI children when they are displayed, but without this ugly icon on the left side of the menu as also the minimize, reduce or
close buttons on the right side of the menu (due to maximization of my MDI child).
how can i do that ?
thanks a lot,
Maileen 3 9524
Try this:
For each f As Form in Me.MDIChildren
If CStr(f.Tag) = "newformtag " Then
f.BringToFront( )
Exit Sub
End If
Next 'f
Dim newForm as New Form1
newForm.Tag = "newformtag " 'you get the idea: each type of form will
get its own tag
newForm.MDIPare nt = Me
newForm.Show()
Hope this is helpful,
zdrakec
but what about the point 2 ?
to remove the MDI child icon which appear on the left side of the MDI parent menu when MDI child is opened ?
the same question for removing the minimize and move/normal size buttons of the MDI child when it is opened and maximized into MDI parent form ?
thanks a lot,
Maileen
zdrakec wrote: Try this:
For each f As Form in Me.MDIChildren If CStr(f.Tag) = "newformtag " Then f.BringToFront( ) Exit Sub End If Next 'f Dim newForm as New Form1 newForm.Tag = "newformtag " 'you get the idea: each type of form will get its own tag newForm.MDIPare nt = Me newForm.Show()
Hope this is helpful, zdrakec
Sorry, I didn't even notice point two, forgive me.
You can set whether the minimize, maximize, or close buttons are
visible by setting each form's properties in the IDE, or even in code:
Me.MinimizeBox = False
Me.MaximizeBox = True
Me.ControlBox = True
Also, if you look at the property window for the form, you will note
several options available for FormBorderStyle . These, and perhaps a
combination of the properties I mention above, I hope will give you
what you need.
Cheers,
zdrakec This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Luke Dalessandro |
last post by:
I'm not sure if this is the correct forum for platform specific
(Mozilla/Firefox) javascript problems, so just shout and point me to the
correct newsgroup if I'm being bad.
Here's the deal...
html file (generated using .NET 2.0 beta2):
<form method="post" action="Test2.aspx" id="form1">
|
by: Richard Blewett [DevelopMentor] |
last post by:
I've just seen on Eric Gunnerson's blog that C# is getting Edit and Continue in Whidbey. That will please alot of people - although me, I have mixed feelings about it ;-)
http://blogs.msdn.com/ericgu/archive/2004/10/15/242931.aspx
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
|
by: Lee Benfield |
last post by:
Anyone seen the following odd behaviour? (not found it in FAQs etc)
Create a simple project, two forms, first is MDI parent
with a MenuStrip, (File->New and Windows menu items).
Set MdiWindowListItem for the MenuStrip to be WindowsToolStripMenuItem,
(or whatever you called the 'Windows' item above).
Form1 code is just vanilla:
|
by: Moshazu |
last post by:
Alright, I am having issues. I have a program that I want to display a
grid of information and in this grid, each row will have children. It
is telling me that there are children, but I have no idea how to
display them. In the past, I used a dataGrid and set the
allowNavigation property to true and it would put a plus next to each
row. This is the same behavior that I would like with the DataGridView.
Is this possible?
Also, if it is...
|
by: Vinny_Davis |
last post by:
Hello -
I have a complex object which I am exposing over a webservice on our
intranet. In Visual studio 2003 I had to add
"" just above my complex object in Reference.CS under
Reference.map area. After I did this on the client side, I was able to
load the full object including children also.
Now I am consuming the same webservice in VS 2005 developed asp.net
application. And it looks like VS 2005 still did not fix the issue of...
| |
by: Vinny_Davis |
last post by:
Hello -
I have a complex object which I am exposing over a webservice on our
intranet. In Visual studio 2003 I had to add
"" just above my complex object in Reference.CS under
Reference.map area. After I did this on the client side, I was able to
load the full object including children also.
Now I am consuming the same webservice in VS 2005 developed asp.net
|
by: Fir5tSight |
last post by:
Hi,
I'm experimenting sample code created in Visual Studio 2002 (or 2003)
in my Visual Studio 2005.
However, I can't find the following in VS 2005:
- MainMenu control in Toolbox;
- MergeOrder property for a menu;
- MdiList property for a menu.
|
by: JRSofty |
last post by:
Hi everyone,
I've gotten myself is bit of a mess where I'm loading a treeview. Basically I initialize the treeview control with a single root node we'll call it root. I do this by using the following syntax:
Dim tNode as TreeNode = New TreeNode("root")
tNode.name = "root"
TreeView1.Nodes.Add(tNode)
Now that I've gotten my root node set, I proceed to pass this node to another sub where some children are loaded to the node. The node is...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |