Get The Contents Of The Active Child MDI Form?
Jul 20, 2010
I want to get the contents of the active child MDI form, how do you do that? Here's what I did to create a child form.
childForm += 1
If childForm > UBound(childForms) Then
ReDim childForms(childForm)
[Code].....
So say I want to get the text from an active form. How can I get the active form id so I can just do this?
childforms(childform).textbox1.text
View 1 Replies
ADVERTISEMENT
Jan 28, 2012
It has to be a simple line of code but I do not know how to construct it. Using VB 2010 Express, I have a MDI parent form and many child forms. I want the parent form to determine what child form is active and load data into the RichTextBox1 on the child form. Each Child form has a RichTextBox1. The parent form gets its data by loading a file.
I am close to a solution but just can't get there. You will see in the code below, if I make a direct reference to a specific child form, it works great. What I want to do is to use the Active Form function to determine which form to write to. I have looked at the MS tutorial which gets me close.
Private
Sub OpenToolStripMenuItem_Click(ByVal sender
As System.Object,
[Code].....
View 6 Replies
May 31, 2011
I just starting to use MDI form. I can show the child MDI form, without any problem. My problem is that I want to close the child form also from the parent menu bar. This is my code:
Private Sub CloseToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseToolStripMenuItem.Click
Dim frmActive As Form = Me.ActivateMdiChild
[code].....
View 3 Replies
May 28, 2011
how to get all the active mdi child in an application..it is possible to work? me.ActiveMdiChild.Name
View 1 Replies
Jul 8, 2009
When I have two MDI Child forms opened, it is difficult to visually see the active form versus the non-active form.I would like to have the Active Form stand out more, say a yellow border.
View 3 Replies
Aug 20, 2009
I'm trying to call a method defined within a child form from the menu strip of the parent form when the child form is active.
View 1 Replies
Feb 23, 2010
After getting the current mdi active child form, how can I get it's control collection so I can access their data?
View 8 Replies
Nov 7, 2009
How could I get information from the active MDI child? And another thing I'm wanting to know, is it possible to run another program as an MDI child within your MDI parent form?
View 5 Replies
Apr 7, 2010
I have got a project that i am currently creating that is a basic word processing application. There is the capability to have unlimited MDI child forms open however when you click on change font colour of something similar i only want it to do it in the currently active MDIChild. I have found the Me.activemdichild however i cant then access controls on that form.
View 4 Replies
Aug 29, 2010
I am having trouble catching getting the currently active text input on a 3rd party window.
If I use GetForegroundWindow it returns the handle of the main process of that window.
View 1 Replies
Dec 15, 2011
I have an issue when I place a label box in the MDI Parent form and then open a child form the label box highlighted in child form?
View 6 Replies
Mar 30, 2009
I want to get the active control (control which has the focus or where the cursor is on) each time the cursor moves to another control or each time a control receives a focus.
View 5 Replies
Jan 20, 2012
I am new to WPF but what i am trying to to do is i have a parentGrid with 3 rows, the first two are a menu strip and a toolbar, the third row is a child grid that is populated with the choices that are selected from the tool bar. the problem is that i want the forms that load in the child grid to not have their height surpass what i have set that row equal to in the parentGrid.[code]
View 6 Replies
Jan 20, 2012
I dont know if this has been answered but what i am trying to to do is i have a parentGrid with 3 rows, the first two are a menu strip and a toolbar, the third row is a child grid that is populated with the choices that are selected from the tool bar. the problem is that i want the forms that load in the child grid to not have their height surpass what i have set that row equal to in the parentGrid.is there an effective way to do this?
here is basically what i have for code
<Grid x:Name="ParentGrid" Margin="0" >
<Grid.RowDefinitions>
[code]....
View 2 Replies
Nov 17, 2011
I have a MenuStrip with File > New, Open, Save, Exit located in a parent form, and a RichTextBox located in a child form.The problem I'm running into is concerned with the destination of the file elected from "Open" and the save.When a user selects their file from "Open", I need it to open the child form and put the text into the RichTextBox.I also need the program to be able to "Save" from a child form, whether it's been brought up via "New" or "Open".
View 3 Replies
Dec 11, 2011
how to put this on a background worker without getting cross thread errors??? trying to upload a childform object values to an access db.I don't work in IT,Our company's LAN so slow that it takes around 3~5 seconds trying to update/insert values in access using the code below so putting it on a background worker i think makes the app immediately usable once save/upload's called unless otherwise somebody could suggest a faster way to speed things up.[code]
View 2 Replies
Apr 10, 2011
i have created two forms A and B when button in form A is clicked B is invoked when B is running its not possible to work on A until i close form B. How can i work on A without closing B
View 5 Replies
Apr 17, 2012
i have three forms
when i click button1 on form1=====> form2.showdialog()
then click button 1 on form2 =====> form3.showdialog
then click button 1 on form 3 =====>
[code].....
View 7 Replies
Feb 25, 2009
I'm creating an application that uses an MDI container to create a sort of desktop style for my form with a group of icons docked to the left hand side. The rest of the form is the desktop area that I want all windows to open in.If I use the standard File-New option that is provided by VB as a default for the MDI container this works fine and a child window is loaded.If I use similar code from one of the icons this also works fine.y problem is that one of my child forms is a search panel and when I double click on one of the results I want a window to open, but as an MDI child. However, this doesnt happen. When I open the window it opens as a completely separate window and isn't docked within the MDI parent. It also appears on the task bar as a separate application.
View 4 Replies
Nov 12, 2010
Note: I am working with Visual Studio 2010 Professional. Note: There are a lot of MDI Child posts, but none (that I have found) that apply to my scenario... Scenario I have an MDI form with a UserControl docked at the top. The UserControl is for navigation and is ~50 pixels in height. When I show a child form with its WindowState property already set to 'Maximized', the child form shows maximized in the MDI parent, but behind the UserControl.
[Code]...
View 3 Replies
Dec 23, 2008
The following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does workŠ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.
[Code]...
View 8 Replies
Aug 5, 2010
i have my main child form open. then i show the new form:
[Code]...
but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?
View 12 Replies
Feb 18, 2011
Im working with MDI parent/child objects. when closing the child objects i need the child to check to see if it is the last child object before closing. i couldn't find anything on google, maybe im searching for the wrong thing.
View 2 Replies
Jul 14, 2009
I am trying to have any only one form type eg Countries, Projects, or Vendors etc. open at the same time. So, if a user has the Country form open and goes to open it again from the menu I would like the applaication to bring the form to the Front of the MDI container. I have tried a number of things like BringToFront, ActivateMdiChild, etc.
[Code]....
View 3 Replies
Sep 16, 2011
How to display contents of ms access database form on a form using vb .net...in visual studio
View 7 Replies
Sep 16, 2009
i am asking about using the progress bar into the status bar to move when i load any child form inside the MDIParent form.
View 1 Replies
Oct 28, 2010
Here is the pertinent part of my code:
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
[code].....
View 3 Replies
Mar 24, 2011
As Autodesk is going to discontinue VBA for their Inventor product in the near future I have been looking at other ways to run VB.NET in Inventor. To date it doesn't look like VSTA will be the replacement. Automation from an External VB.NET app is certainly possible, but leaves something to be desired for speed and integration. Compiled Add Ins are the Cadillac of choice but can be a royal pain to debug and develop. Autodesk now provides a lightweight VB.NET script interface called iLogic. It's main purpose is to allow extreme customization of Solid Modeling parts. The code actually resides inside the Part Model file.
[Code]...
View 7 Replies
Mar 15, 2012
I am developing a application where I have 1 parent from (windowstate of Parent from is set to Maximized) and 2 child forms. In my Parent form I have a menustrip with following code to activate child -
[Code]...
View 1 Replies
Oct 28, 2010
I have a VB. Net App where I want the user to open a modeless form which contains reference information about items in a select box. If the user double clicks the item selected in the list box a modal form is opened to edit the item.I want the previously opened reference form to remain active/enabled, that is, I want the user to be able to click on it, move it, etc.I was able to get the form to at least show up on the task bar by setting it's "ShowInTaskBar" property to true, however, when it comes to the front the user can still not move it to the side to view all of the Edit Forms information.
View 7 Replies