Forms Covering Parent Form Topbar?
Jan 29, 2012
I have a main form that stays in the background of my program. Other windows open and are owned by the main form. Think of it as your desktop.It's not a MDI form; I can't use a MDI form for this project because it's too limited for me.
View 2 Replies
ADVERTISEMENT
Aug 10, 2010
Using Visual Studio 2008 and VB.NET ...
I've created a form (OpaqueForm), which is an intermediary form between other forms which I will open with ShowDialog. The idea is that when I want to show a form using .ShowDialog, this OpaqueForm, with an opacity other than 100%, sits in between the main form and the dialog form, effectively "greying out" the underlying main form.
The OpaqueForm has the FormBorderStyle property set to None, and accepts in the constructor a Form object on which it invokes .ShowDialog. The effect works fine, but there is one caveat. The task bar is also covered by the OpaqueForm; I am assuming because it has a FormBorderStyle of None and a WindowState of Maximized.
I don't want the OpaqueForm to cover the Task Bar, because it would be impolite to have my modal form lock out a user from switching between tasks. How could I go about preventing OpaqueForm from covering the Task Bar, too, while still using a FormBorderStyle of None?
View 3 Replies
Aug 26, 2010
I would like to know if its possible to start up a second windows forms inside the parent form. Ex: A button is pressed and a new form is showed. I would like to keep that new form inside the parent form, and have it not be able to go outside the parent form.
View 2 Replies
Jun 21, 2010
How will i close all the forms within my main form? Everytime I click on the menus of my main form,I'm setting my main form as MDI-Parent form and then loading a new form as it it is the child form if I'm not mistaken. I have a log-out menu, and what I want to happen is everytime I log-out all the forms within my parent form will be closed. How will I do it? Here are some of my codes.
[Code]...
View 3 Replies
May 30, 2009
im making a 'program' and its a Head form. with 3 Subforms in it. Well. i added a Menustrip.As soon as the forum starts i have a Load timer. (see Image 1)
1.Thats how it needs to be. Also when the Subforms are loaded.But, Now the problem. When the forms are loaded. The Menustrip ends up wrong placed and Resized?
2.How to work this away? The menu strip needs to stay On top of all the others. and the Menustrip goes back to normal as soon as i click one of the Title bars of the Subforms?
View 2 Replies
Apr 7, 2011
When I click on Borrow Book(s) from Transaction menu it should open frmborrow.vb
Also to it should do the same to rest of the menu(s)......
What should i write in the click event for Borrow Books from Menustrip menu
View 7 Replies
Mar 8, 2009
hey I have a piece of code which gives fade effect to a form at load eventBut it works only with normal forms and doesnt work for the forms which gets loaded into a mdi parent form
View 13 Replies
Nov 17, 2009
I'm trying to make an MDI parent form to call other forms. I have put this code which I found in a post here into the main form which I added to my project as an MDI parent form:
[Code]...
I get an error message which say FrmEmbed is not defined. How can I correct this?
View 4 Replies
Dec 22, 2010
When my application first loads the parent opens and I select my child form from toolstrip:
'In parent open the form when option is clicked
Public Sub Showfrmitemreview(ByVal sender As Object, ByVal e As EventArgs) Handles itemreivewStripMenuItemA.Click, itemreviewStripMenuItemB.Click
[Code]....
Nothing happens I don't even get an error message. I've played around with the code numerous times and the only thing that worked was to have it open outside of the parent which I do not want to happen.
View 1 Replies
Feb 15, 2011
I have a MDI Parent Form and some Child forms.I have some controls on MDI Parent form but as i open child form all the controls of MDI Parent form display in child forms...I m stuck with my application
View 1 Replies
Jan 5, 2012
I'm writing an MDI app in vb.net vs2010. The MDI form has the default MDIMenustrip menu with several menu items. Each has some subitems. None of the child forms have a menustrip defined. I thought it would be easy to call a public subroutine in the MDI that would disable or enable the MDIMenustrip items. If I execute the routine from the MDI form, the menu items disable/enable just fine. THe problem I have is when I call the routine from a child form. How can I control the MDI menu from a child form?
View 3 Replies
Feb 13, 2009
I have created a parent form and 2 child forms. Each of the forms have menustrips. When i run the application the menu strip appears on the parent form but not on the child forms. I have the menu strip set to visable.
View 4 Replies
Jun 24, 2009
I have a main form, and some sub forms, and each sub form can have some sub forms. When I have multiple sub forms open, and I try to get data from the parent form, it returns the data from the wrong parent form.For example I have two instances of Mainform.subform running. If I do something like this in a child form of one instance of the subform. It returns data from the other subform.
dim l = Mainform.subform.listofdata
Edit:I am using visual Studio 2008. Winforms, form designed using designer. In my mainform I am doing this
Protected Friend frmMain as Mainform
frmmain = new mainform
In frmMain I am doing this
Protected Friend frmsub as new Subform'
frmsub = new subform
[code]....
View 1 Replies
Sep 17, 2010
I want a set of child forms to keep their relative sizes and locations to their parent form when parent form is resized. So if one child form is opened and covers the lower right quadrant.. it will remain a quadrant for whatever resize is done on parent form.
View 3 Replies
May 2, 2012
WinForms. VB.NET VS 2010 Professional. So I am building a form that has 3 radio buttons on one side of it.Then on the left side I have 2 group boxes named Group1 and Group2 for this question that I have placed in the designer so that the one covers the other one and have set both of the groupboxes visible property to false.. When a user click on the second radio box group1.visible changes to true and group2.Visible changes to false.. When a user clicks on the third radio group1.visible changes to false and group2.visible changes to true. If the user clicks the first radio button both group1 and group2 visible changes to false.Only one of the group boxes shows.If I open the designer and ONLY change which one is on the bottom then it will show and not the other.[code]
View 2 Replies
Jul 1, 2009
I know I can set IsMidContainer in forms for parent-child relationship forms. I just want to know if the parent form could be a panel. If so, how can i do it?
View 1 Replies
Apr 8, 2011
I have made a project on Library management system using Microsoft Visual Studio 2008 and Sql server 2005 .I have used MDiParent form in this project, from where I can click on the menu item to open the desired form.
I am now able to open the child forms in the main window background.Now what happens is When I click on one menu Item it open in the parent form background.I am able to open all child forms corresponding to the click event in the MenuToolStrip ...all in the Parent form Now the problem is that I cannot minimize child forms when I minimize Parent form..I want child forms also to minimize along with the Parent form.. Also are child forms still not attached to the parent Form is also my question here.....
View 2 Replies
Jul 2, 2011
I put a button in my MDI Parent Form and then when I call my form inside the MDI form, the button is always on top of my Form1.
myForm= New Form1(idNumber)
myForm.MdiParent = Me
myForm.Show()
View 2 Replies
Feb 11, 2010
I'm just getting started in VBE 2008 porting a VB6 program and have created the MDI Parent form. I've added a form called frmNav and need to designate this and all subsequent forms as MDI child forms. Is there somewhere in each form's properties where I designate this? It used to be in VB6 there was a property called "MDIChild = True." input id="gwProxy" type="hidden"><!-- Session data--></input> <input id="jsProxy" onclick="jsCall();" type="hidden" />
View 1 Replies
Oct 5, 2009
I have been looking around at how I can close my parent form and my child form. This article: [URL] has some information but it either doesn't work for me or I am putting the wrong information it. What I want to happen is when a button is pressed I want to close both parent and child forms and then go to another form (frmResults). Then there will be a button on frmResults that will take me to the beginning form (frmPTCalculator). With this code below when I click the button on frmCalculator it goes to the MDI form and both parent and child forms are there.
my Parent form is called: frmGender
my Child form is call: frmMale & frmFemale
Below is what I have tried from the example in my Child form frmMale:
Private Sub btnResults_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnResults.Click
Dim frm2 As frmMale = New frmMale()
AddHandler frm2.FormClosed, AddressOf frm2_FormClosed
[code]....
View 3 Replies
Oct 25, 2010
VB.NET 2003 makes it difficult to have a child button create an event on a Parent form control. I would like to change the state of a control on the parent form by using a button on the child form.
View 6 Replies
Dec 15, 2009
Is there any chance to pass values from mdi parent to mdi child.
View 1 Replies
Nov 30, 2011
In all my post I have explained I am a total novice so a little more elementary explanation is normally required in my case. I have tried reading the explanations about Parent and child binding but just cant get it to work.This is what I have:
A parent form called Sites Primary key is pkSitesID Various other fields On that form I have placed a tab control and in page one I dragged SitesInstallation to it there is a relation created in the DBDiagram to link fkSitesID (in the sitesinstallation table) and pkSitesID
All I want to do is when I navigate through the Sites records the data in the tab page changes according the values I have selected for that given site.
For example: The Siteinstallation maybe Pending or on air.
View 6 Replies
Feb 28, 2011
I am using a parent for with child forms and i have made the option to "Float" the child windows outside of the parent form and "dock" them back in if you want.I'm doing this with a button on the child form to float/dock it. On the other hand I'd like to use a checkable item on the menu to choose if they are docked or floated from the opening point.
View 6 Replies
Mar 29, 2009
ive been trying to get statusstrips merging so i can click a label to bring the child form to the front when i have multiple childforms open. I have this code which does work but on closing it leaves the label on the mdiparent and also im struggling with the bring back to front code. i dont want it to open another form just bring it back to front. I have statusstrip set to visible false on my childform. heres some code for merging, this is in mdi parent:-
Private Sub Form1ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Form1ToolStripMenuItem.Click
Dim NewMDIChild As New Form1
NewMDIChild.MdiParent = Me
[code].....
and some for bring back to front, this is in form1:-
Private Sub ToolStripStatusLabel1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripStatusLabel1.Click
Dim MDIChild As New Form1
[code]....
View 2 Replies
Apr 30, 2009
I want to use the same menu shortcut keys in a MDI child as in the parent...the problem is that the parent seems to receive the Event first and is calling his menu entry. The child (though it does have the focus) does never receive any event whatsoever...I can bypass this behaviour by adding a Textbox to the Menu, and the moment that one has the focus the menu shortcuts are working as expected (child gets it first, after that it's passed through to the parent).
View 1 Replies
May 14, 2009
I would like to have a form class that is called from a button on a parent form and would like a button on the child form to set a property on the parent form. Can anyone explain the best way to go about this or direct me to a good article?
[Code]...
View 3 Replies
Mar 6, 2012
I'm trying to add a new row to a DataGridView from FORM 2 but I can not succeed, the code I tried is as follows:
[Code]...
Looking like it took time but can not find a solution,
View 1 Replies
Mar 3, 2012
I have a MDI project that has a parent and several children forms. In some of the children forms I would like to make one of the forms to be a parent form with children. On this child form I wanted to make a tabbed MDI, which I can do, but I have found out that I can't make a child form a parent, from what I have found.
Is there any way to get around this? (As in nested MDI forms.)
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