473,765 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MDI ToolStripMenuIt em Problem

54 New Member
Please, I'm using Vb.Net 2008 and I have this MDI form as the main one and its child in the following code.

Expand|Select|Wrap|Line Numbers
  1. Dim frm As New frmMovement
  2.       frm.MdiParent = Me
  3.       frm.Show()
  4.       frm.BringToFront()
The first time I run the code, the frmMovement form was showing, but sometime later it failed to show again and I'm just confused! When I run the code the first time and it showed, it was displaying so many times before it stopped.

What could possibly be the cause of the child of the MDI form showing so many times and later failed to display? Thanks
Feb 8 '13 #1
1 1308
Rabbit
12,516 Recognized Expert Moderator MVP
Please use code tags when posting code.

It would help to know when the code is called. IE, the events that trigger the code.
Feb 9 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
6128
by: Maileen | last post by:
Hi, I've create an application which includes : - a toolstrip - a toolstripmenu - several toolstripmenuitem(s) so, now i have a menu like that : -File
2
5678
by: genojoe | last post by:
I have a VB 2003 project that I have updated to 2005. I notice that MenuItem is being phased out and replaced by ToolStripMenuItem. I want to investigate the new capabilities of this new control because the existing control causes me some problems. Specifically I nothice that ToolStripMenuItem does not have a PopUp event or the OwnerDraw property. My 2003 project utilizes these elements I suspect that somewhere on the Internet (but...
0
1856
by: genojoe | last post by:
I have a menu structure that formats that left aligns string1 and right aligns string2. To do this, I use the OwnerDraw, Popup, DrawItem and MeasureItem properties or events of the MenuItem class. None of these exist for the ToolStripMenuItem. Can someone point me to a Web reference that explains how to emulate the functionality of these properties and events in the ToolStripMenuItem. I can't find any useful references for this task. ...
1
3314
by: =?Utf-8?B?RjVGNUY1?= | last post by:
I have created a control by inheriting ToolStripMenuItem that has an image property called LargeImage. ------ public class EventSubMenuItem : ToolStripMenuItem { private Image _largeImage = null;
1
2822
by: Justin Cherniak | last post by:
I have a ToolStrip item which fires a function when clicked. The function will run to completion without any problems (if I set a breakpoint at the closing brace, no exception has been fired), but once it returns, I get a TargetParameterCountException in mscorlib. I cannot for the life of me figure out why and I'm hoping someone here might be able to help. Here is the relevant code (although I don't think it has any effect)
0
2347
by: Dean Slindee | last post by:
I need to be able to separate toolstripmenuitems from toolstripseparators, both of which are children of a toolstripdropdropbutton. The last statement does not pass validation. Is there any way to cast a control to a toolstripmenuitem? Dim ctl As Control For Each itm In mni.DropDownItems If ctl.GetType() Is Type.GetType("ToolStripMenuItem") Then
3
9185
by: Martijn Mulder | last post by:
My application has a standard MenuStrip on top of the window and a ContextMenuStrip that pops up when the user clicks the right mouse button. I have defined a ToolStripMenuItem that I want to appear on both the MenuStrip and the ContextMenuStrip, but any attempt to do so makes the ToolStripMenuItem silently disappear from the other menu. See this little program:
0
5058
by: kyungdongkim | last post by:
Hi, I have a dynamically generated MenuStrip following this example: http://www.codeproject.com/useritems/Dynamic_MenuStrip.asp Basically the menu strip allows users to save and load reports. The Load menu is to list all the saved reports. I need to refresh the Load menu after a new report is saved. Any help is much appreciated! Code:
0
1392
by: =?Utf-8?B?Um9nw6lyaW8gRmVycmVpcmE=?= | last post by:
First of all, I'd like to say that it's not easy to figure out the behavior of ToolStripMenuItem Visible property. I have replaced my Windows Forms 1.1 MainMenus with the new MainMenuStrip when I've converted my application to .Net 2.0. Even after changing the Visible property usage to Activate I still have a layout problem. Just a simple example:
0
894
by: SetonSoftware | last post by:
I have a MenuStrip item on a form and am trying to disable a ToolStripMenuItem on the dropdown portion. I'm using the following code to test and when I run it in Form_load the caption changes to Disabled, the item is disabled, but the color does not change to light gray so as to indicate to a user that the item is unavailable. mnuOpen.Text = "Disabled" mnuOpen.Enabled = False When I go to my display properties and change the Windows...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9835
tracyyun
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...
0
8833
agi2029
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...
1
7379
isladogs
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...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
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...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
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 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.