Disable Mdi Parent Button From Mdi Child?

Aug 14, 2009

ok i have a button named (cmdmenu) and i want to disable it while closing a mdi child form.

View 9 Replies


ADVERTISEMENT

Forms :: Disable Parent Window While Child Is Open?

Dec 6, 2009

how to disable parent window while child is open so the user cannot click any object in the parent window and to Force the user to interactive only with the child

View 2 Replies

Forms :: Enable/Disable MDI Parent Menu From Child Form?

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

Asp.net - Enable/disable Web Elements Of A Parent Aspx Page From The Child Ascx Page?

Jul 20, 2009

I have an aspx page with three web controls: one to control the List Users page, one to control the Edit Users page, and one to control the Add User page. I have discovered a method for accessing these elements, but it seems to be limited. Here is what I have done:

Protected Sub editUser(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs)
'set selected user from gridview.

[Code].....

This works in most cases. However, I am unable to access the "enabled" attribute of these web controls. Why is this, and how might I access that attribute?

View 2 Replies

Winforms - Disable The Parent Form When Call A Child Form?

May 14, 2010

How can I disable the parent form when I call a child form?This code doesn't disable the parent form like I thought it would:

frmChild.ShowDialog()

View 2 Replies

MDI Parent Forms Button Becomes Transparent In Child Form?

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

Disable Parent Form When A Child Form Is On Display

Mar 15, 2012

my application have a main form. i have set the isMDIcontainer to true on the form properties. How do i set other forms to child form of the parent. i need to do this because the other forms start position is CenterParent.but as it is now when i run the program the other forms start position is not the parent form centre.Secondly, how do i disable the parent form when a child form is on display. so that user cannot click on the parent form until the child form is closed.

View 1 Replies

VS 2005 : Disable Restore Button In MDI Child Form?

Aug 20, 2009

Is there anyway to disable/remove "Restore" button in MDI Child form while child form is in Maximized state?I have set "ControlBox = False". Although this remove the whole control box including "Close".Case is I want this "Close" button but not "Minimize" or "Maximize/Restore" button.Is there anyway to do this without using API?

View 4 Replies

Interface And Graphics :: MDI Parent / Child - Child To Check To See If It Is The Last Child Object Before Closing

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

.net - Parent/Child Relationships Failing When Getting Data From Parent Class With Multiple Forms Open?

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

Releasing A Child From A Parent Control Without Knowing The Parent(WPF)

Apr 10, 2010

I would like to know if there is some simple code to release a child control from it's parent control, without having to name the parent control. In pseudocode, I'm looking for something like this:

[Code]...

View 2 Replies

Creating DataRelation With Parent And Child Tables And Generating Xml With Subnodes For Child Table?

May 21, 2012

Dim obj_DataTable As New System.Data.DataTable("Category")
Dim obj_DataSet As New DataSet()
'Declaring the array of DataColum to hold the Primary Key Columns

[code].....

View 1 Replies

Bind Child/Parent Instead Of Parent/Child?

Apr 28, 2009

Applications_Type is a lookup table for Applications.What I am trying to do is provide a drop down list of applications and a label that displays the selected application type.[code]...

View 1 Replies

How To Work On Both Parent And Child Form Without Closing Child

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

Passing Data From Child To Parent Form Which Is A Child Of Another One

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

Filter Parent / Child Table In Linq Query Based On Entities In Child Table?

Jul 9, 2010

I have a table (Projects) which is linked to projectVersions on projectID..projectVersions contains several columns on which I'd like to filter a returned project (and associated projectVersions) list. For example there is a "capacity" column and a "country" column. I am doing a filtered list of projects on one page and I'd like to include all projects where any one of the associated projectVersions has a capacity of 750ml and a country of "France" for example.It may be that a particular parameter is not set and so I pass a zero to indicate not to filter on that.I guess this needs some kind of subquery as when I try and do something like this: [code] it doesn't work as the "xxx" bit, being one-to-many, expects me to specify an item to get at the entities within and yet I want to query where ANY of the associated versions match one of the criteria.

View 1 Replies

Asp.net - How To Pass An ID From Parent ListView To A Child Repeater Inside The Parent ListView

Oct 12, 2011

I have a listview "CategoriesList" and i have a repeater "NewsRepeater" inside the listview "CategoriesList"

<asp:ListView ID="CategoriesList" runat="server" DataKeyNames="CatID" DataSourceID="CategoriesListODS"
EnableModelValidation="True">

[Code]....

how to pass the catID from the listview and make it as SelectParameters in ObjectDataSource "NewsRepeaterODS"?

View 1 Replies

MDI Child Maximized - The Child Form Shows Maximized In The MDI Parent But Behind The UserControl

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

MDI Parent & MDI Child

Dec 17, 2009

I have created a simple application. It contains one MDI parent and one child of its. At load of MDI parent i have also loaded its Child. but problem is with its display. the images of output is attached. Form2 is MDI Parent and Form1 is child.

The code at load of Form2 is:[code...]

View 1 Replies

Disable Right Click And To Disable The Start Button And Task Bar?

May 16, 2009

to disable right click and to disable the start button and task bar?

View 4 Replies

Jquery - Colorbox- Get Value From Popup (Child.aspx) Page To The Parent (parent.aspx) Page?

Jun 27, 2012

I have 2 pages. parent.aspx and child.aspx. In parent.aspx, i use colorbox and send some value for the child.aspx to popup.

[code]...

child.aspx will popup and shows ASPxGridView base on the value passing from parent.aspx. User will select the data from ASPxGridView. the selected data need to send back to the parent page. I code it in child.aspx.vb page.My problem is how can i get the value from child.aspx.vb and pass it to parent.aspx ?

View 1 Replies

.net - Passing Value From Child To Mdi Parent

Feb 19, 2009

I have a simple contact book. The application has a main window that's an mdi form. When a contact is added using the "add a contact" form, I want to show a simple feedback message in the parent window status bar saying that the contact was added successfully. Here's the child loading:

[Code]....

View 5 Replies

Can't Fit Child Form Into Mdi Parent

Jul 28, 2010

I am trying to size an MDI form to fit its 2 children perfectly within itself but when I use simple sizing it doesn't work - the MDI form always introduces scroll bars and the children seem to be too big for the parent. My three mDI form methods where this occurs is below.

Private Sub positionSyncForm()<br/>
With m_SyncManager<br/>
.Top = 0<br/>

[Code].....

View 2 Replies

DataBinding Child To Parent?

Nov 2, 2010

I have 2 tables with relation from parent table (customers) and child table (orders) and i have all inside typed dataset.

Now i want a field of customers by datarelation from field child table.

Inside child table i have IDCustomers and i want Customers.FirstName

I think so, inside databinding form designer, inside Text i write

dsMaster.Orders.CustomersOrders.FirstName

View 4 Replies

Databinding Through Child To Parent?

Feb 24, 2009

I have two datatables inside a single dataset (all are typed). dtOriginalData contains roughly 25 or so fields, which included IDs, descriptions and other bits of data. The ID is the PKey in this case. dtEditData contains almost the same columns as the first,with a couple of extras thrown in. One of the fields in dtEditData is the ID from dtOriginalDatafter the two tables are loaded, I create a datarelation between the two using this ID field. I then update some of the fields in the dtEditData and set their expression to pull data from the Parent table (dtOriginalData) ... this is then fed to a grid. So far everythign works fineNow I need to add some functionality, displaying the Original Data, the Edited Data and the variances between the two.

The bindingContext is set cocrrectly. I've successfully bound all of the edited fields to their appropriate labels, and everything updates as I scroll through the data in the grid.It's all fine and dandy... except.... for the Original Data fields... I bound them to dtOriginalData.... and all I get is the first record displaying. It's not taking into consideration the relation between the two databases and advancing the index on it. So, what I need to find out, is if there is a way to do the databindings so that the two data tables will move in synch with each other, keeping the displayed values updated with the correct information. If, for some reason I can't find a way, I may have to resort to a gawd awful datatable with 30+ fields in it.

View 2 Replies

MDI Child And MDI Parent Both Are MDI Form?

Dec 13, 2011

May I know is there any solution for both MDI parent and MDI child is MDI form?I am trying to set like this.
uiAdjustment.MDIParent = Me uiAdjustment and "Me" is both MDI form and it show error when I am trying to do like this.

View 1 Replies

MDI Parent And MDI Child Forms?

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

Not MDI Parent But Need A Child In A Panel

Jan 23, 2010

I have a regular form that I have a SplitContainer on and I would like to launch an external program (not mine) in Panel2, maximize it to fill the whole panel, and hide it's toolbar if possible. The program I am launching is a monitoring program of network activity. To be even more detailed, it is a puTTy window that opens a telnet connection to a server. I need to launch this putty window in Panel2, and then maximize it so that it cannot be resized/dragged.

[Code]...

View 17 Replies

Access A Button Through Code There Is On A Panel There Is A Child On Several Other Child-panels?

Aug 18, 2011

I'm from denmark and hope I can explain my question for you. This is just a example: I have a panel, let's say panel1 and another panel on that panel (panel2) and so on until for example panel5 - on panel5 I have a button (button1). Now I would like to change button1's backcolor property through code how do I then get access to button1, now it's a child-control on panel5 that is a child control on panel4 etc. ??

View 3 Replies

Accessing MDI Parent From Child Form?

Jan 31, 2011

I am trying to access a control (statusbar panel) on my MDI parent form from a child form.

Here's my
(located in child form)
Dim frmParent As frmMain
frmParent = DirectCast(Me.MdiParent, frmMain)

[Code]....

Object reference not set to an instance of an object.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved