Change Existing Form To An MDI Child?
Aug 24, 2011I have a form already created, but now want to expand the application.I created a MDIParent, but cant seem to find how to change the existing form to an MDI child.
View 3 RepliesI have a form already created, but now want to expand the application.I created a MDIParent, but cant seem to find how to change the existing form to an MDI child.
View 3 RepliesIn VB 2008, I have a Parent form with a combo box on it. There is a child form also with a combo box on it. I want to be able to change the values on the child form based on what the user selected from the main form. The user launches the child form from a toolbar on the Parent form. The following code is run:
[Code]...
What I want to do is if the Parent's combo box has "Red", "Blue", "Green" values and the user selects "Green", the child form's combo box(With the same values) will also change to "Green". (I do not need to change the Parent form if the child form changes.) I've tried changing the Child's combobox from the combobox's change event on the Parent form, and the code runs, but nothing changes on the child form.
how to change the window title of a child form in an MDI structure to the name of the file opened?
View 1 RepliesI have an outlook application, whenever the user receive a new mail I show him a form and some controls
The user needs to insert information and close the form. Sometimes the user is not near his machine so whenever there is a new mail I am adding new controls and modify the child size.
It has been successful using the Form.show() method but not in showdialog() i cant add controls and change the form size can someone please help on the subject?
[Code]...
I'm having trouble adding child elements to the below
<securities>
<security id="040104JC6">
[code]....
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 RepliesI 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 Repliesi 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 Repliesi 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].....
Is it possible to change an Icon of an existing application? I mean script in vb an application that allow to change any icon of apps. If its not , create a shortcut with the icon we want of any apps.
View 1 RepliesI want to create VB.NET code that will change the filename of selected image files that are already stored on my ISP's web server. I know how to do this by reading the image into memory and then saving it as a new file. However, I would prefer not to regenerate the image. I just want to change the filename. Is this possible?
View 2 RepliesI would like to add a XElement into an existing XElement as a child
Dim myDocument As New XDocument
myDocument.Declaration = New XDeclaration("1.0", "utf-8", "no")
myDocument.Add(New XComment("XComment"))
[Code]....
What is the best way? There will be at least one rule but there could be as many as 4 total.
I am working with some prewritten VB code ,and this portion of code opens a new excel spreadsheet . I would like to instead , open a existing excel spreadsheet that I would like to have a template that explains my data that is loading into it. Could you please give me an idea what I would need to do with this portion of code?
[Code]...
How can I change a Icon of a EXE that is already build with .Net. I know I can change it with ResHacker but is it possible to change the Icon with .Net Code.
View 20 RepliesI'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 RepliesNote: 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]...
I am writing an app to be a single button failover of a set of mirrored SQL servers. The app has to handle several other functions (enable/disable and start/stop of services, writing to local registry, copying files from server A to server B, initiating stored procedures, etc.)I have a collection of labels that indicate the status of 4 services on 2 servers, I wrote a function to check the services when passed the machine name, and the service name. Originally I just called the function 8 times (4 services, 2 machines) and populated the labels 'manually'. I have all of this within a timer so that the service status is refreshed every couple seconds. Id like to clean up the code to a single for/next loop that operates on 2 arrays (an array of service names, and an array of labels) such as:
'**Fetch_Status is the function that gets service status, it accepts 2 strings, machine name
'**and service name and returns status "running", "Stopped", as my_status
Dim Services() As String = {"Service1", "Service2", "Service3", etc.}
[code]....
The only reason I want the control array is to be able to use the .Text and .BackColor properties of the labels in the loop. If I make an array of strings with the label names it doesnt seem to pick that up.
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]...
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?
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 RepliesIf I want to chand the background color of all the child windows opened i would use this:
For Each chld As Form In Me.MdiChildren
chld.BackColor = Color.LightGray
Next chld
I have an MDI child window that the title text can be changed, depending on some user interaction. How can I update the 'Window' menu in the MDI parent to reflect the updated window title?
View 3 RepliesIf I want to chand the background color of all the child windows opened i would use this:
For Each chld As Form In Me.MdiChildren
chld.BackColor = Color.LightGray
Next chld
But how can I modify the color of a textbox found on the child forms?
OK I have a problem, the issue is: i have my project using one MDI and other normal forms. I have set my other forms to open inside the MDI. like
form1.MDIParent = me form1.show() but if I resize the MDI form1 does not change to accomodate in the new size!???
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 RepliesHere 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].....
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]...
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]...
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 Repliesi am having some trouble in my Windows form application. i have 2 forms1st Main / Parent Form2nd Sub / Child Form (Menu)
View 7 Replies