VS 2010 : MDI Child Set Other Child Property?

Jun 9, 2012

I have 1 form as parent MDI (frmParent.vb) and have 2 child form (frmChild01.vb & frmChild02.vb).the code for parent form as per below.

Public Class frmParent
Private Sub OpenChild01ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenChild01ToolStripMenuItem.Click
Dim child01 As frmChild01

[code]....

My problem is how can I set label1.text in frmChild02.vb when user click button1 in frmChild01.vb

View 3 Replies


ADVERTISEMENT

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

MDI Child Set Other Child Property

Jun 9, 2012

I have 1 form as parent MDI (frmParent.vb) and have 2 child form (frmChild01.vb & frmChild02.vb).[code]My problem is how can I set label1.text when user click button1.

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

Syntax Checker - Populating My Combo Box With All Of A Root-child's Child Element's Names?

Mar 10, 2009

My program handles XML files that have certain elements within a root-child node that are identical expect for their inner text value. So while populating my combo box with all of a root-child's child element's names I get like five identical items listed. Which brought about the problem of selecting say the third item and getting the value of the first displayed. So I came up with a loop function that determines if the selected combo box item is preceded by one of the same name, if it is, then it adds +1 to a counter variable and keeps checking farther and farther up the list. Once it loops to an item that doesn't have the same name it exits and it reads the Xth (X = counter mentioned earlier) element's inner text from the file. This works great for elements 1, 3, 4, and 5. But not for 2. A while back when I was focused on this problem I discovered the root of the problem but I was unable to circumvent it. I'll put the loop below so you can see the problem in action instead of trying to follow my verbose explanation:

[code]...

View 3 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

FindwindowEX Send Message In Child Of A Child Of An Application?

Apr 29, 2009

findwindowEX Send Message in Child of a Child of an ApplicationFirst:- my english is very ad (german)- i am a newby of Visual BasicMy Form with SQL-Integration is sending Data per Button to Notepad sucessfull. Unfortunately, the purpose application has interlocking children.But the application don become the data. to found a solution / or a Idear. i think i put in screenshots an my

Public Class Form1
'Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[code].....

View 5 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

Array Property In Mdi Child Form

Apr 21, 2009

I have two forms, an mdi parent and an mdi child. Each instance of the mdi child has an array of graphicspaths. I create the first instance of the mdi child form and add several graphicspaths to the array. I create another instance of the mdi child form and add several different graphicspaths to that array.

[Code]...

View 7 Replies

MainMenu Child Image Property?

Feb 8, 2012

Is there a way I can customly add to the MainMenu control to give the child image property like you would see in a menuStrip? Where you can have drop down's with images next to the text?

View 4 Replies

Forms :: Set Property Of Parent Class From Child

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

Showing Properties Of Child Objects In The Property Grid?

Mar 9, 2010

I have a custom class (Class1) with a bunch of properties. One of the properties of this class is another custom class (Class2) with its own properties.I have a property grid with the selected object set to Class 1. I can see Class 2 as a property, but i would like to expand Class 2 to show its properties in the same property grid.

Im basically trying to do the exact same thing as the Font Class on a form. If you look at the properties of a form in the designer, you can see the font property. You can then expand that to show the properties of the font class.

View 1 Replies

Order A Collection Based On A Child Property Using LINQ Or A Lambda?

Jan 26, 2012

I get the following string expression provided:"ChildObject.FullName" ...where ChildObject is an instance property on the MyObject1 type.ChildObject has a property named "FullName" and I want to sort a collection of type "MyObject1" based on this child properties "FullName" value.

I can do this all day long on properties directly on MyObject1 but I run into 2 challanges when doing it on a child instance and I can't get all the pieces working. The main 2 challanges are:

MyObject1 has a few different child property types so I can't hardcode the type for ChildObject. The string could be of any type.The sort expression is a String and not a known type.Above the value returned from the last line in the expression (if I run the code outsode the OrderBy method, does provide me the 'FullName' information I need. So the code must be close, but it still does not work.

Any ideas on how I can accomplish this? What I am trying to prevent is hardcoding a series of 'If' blocks on the child's type to then hardcode in its type to the sort or OrderBy method.

View 2 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

Fluent NHibernate Not Mapping Child Rows To A Collection Property (DB2 Database)

Nov 4, 2011

The tables described herein both utilize composite keys. I have a parent table that stores eligibility information per "case". The child table stores eligibility information regarding each individual associated with the case. The child records are differentiated by pin number to make them unique in the child table only.

I am using NHibernate v3.1 with Fluent NHibernate v1.2, both acquired via NuGet packages. The entities are mapped in using the Fluent NHibernate auto-mapper functionality. Any custom mapping is done in the mapping override method for each entity.

Another thing to know is that these tables do not have a "primary key" defined in DB2. They only have "unique keys", which are what you see in the composite key definition below (see code).

T0026_AG_ELIG is the name of the parent table and the corresponding POCO class.
T0265_AG_IN_ELIG is the name of the child table and the corresponding POCO class.

Problem:

The problem is that when I execute the query, all the data is queried, the parent record is successfully mapped to the class, but the returned child rows do not map into the collection on the parent class. NHibernate does generate the queries for the parent and child data. When I execute my own query against the database, the correct data for the conditions does come back. For some reason, the child records are just not being bound to the property on the parent (T0026) class.

Question:

What do I need to do to get the multiple rows coming back from T0265_AG_IN_ELIG to map to their corresponding class and load properly into the specified collection property on the parent class (T0026_AG_ELIG)?

Collection Property of Parent (T0026_AG_ELIG):

Public Overridable Property IndividualEligibilityRecords As IList(Of T0265_AG_IN_ELIG)
Mapping Override for Parent (T0026_AG_ELIG):
mapping.CompositeId() _

[Code].....

View 2 Replies

Array Of Child Objects In Nested Classes And Accessing Child Objects In .Net

Jan 3, 2012

I have a nested class, let's call it class1 and it has class2 inside it; VB.Net eg:[code]

1) How can I define X number of Class2 objects[let's call it: Node(x) array]** with NEW() subroutine called?' this raises error: dim cls2(n) as new class2 end sub.

2) How can I return actual number of Node() array? [code]Outside my class in main project I define cls1 object:[code]Now an array of class2 is created inside cls1.

3) Now,How can I access All of them[node(x) array which is created inside cls1] with all properties and methods available?

I remember I wrote a ProcessManager class with this functionality in .net 2003, nearly 4 years age, I don't have the code now.

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

File To Open As Mdi Child Form / Save From Child Form

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

VS 2010 EXE As MDI Child?

Oct 19, 2010

I'm trying to load an exe made in another language for a project I'm doing into my VB.net MDI parent form, but I can't seem to find anything. I've tried using the SetParent API and the like to try and achieve it, but nothing seems to work. SetParent freezes the parent form completely and makes it non-responsive.

View 2 Replies

VS 2008 MDI And Child Within A Child?

Feb 13, 2010

I have an MDI application where a child form (A) opens a second form as a Dialog (B), which works great but you can't do anything in the MDI until you close the Dialog form.I've now changed the Dialog form (B) so it just calls as a Show and I have disabled the parent form (A). This works better and allows you to click anywhere in the MDI (except the parent form (A)) which is ideal and works much better.

The problem comes if you maximize the parent form (A) and then open form (B), this is then also maximised but I need it to be a fixed.I've done some research and I've tried using the API SetParent which gets round the problem of the form being maximized but this makes the form TopMost in the MDI.

All I need is form B to be topmost of form A and to be a fixed size. Is there any solution?

View 2 Replies

VS 2010 Calling MDI Child Sub?

Jun 5, 2012

I have a MDIParent Form named "frm_discipulus.vb" which opens a MDIChild Form named "frm_gestionare_cursanti.vb"

Private Sub tsm_cursanti_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsm_cursanti.Click
Me.Cursor = Cursors.WaitCursor
Dim frm_mdi_gestionare_cursanti As New frm_gestionare_cursanti
frm_mdi_gestionare_cursanti.MdiParent = Me

[code].....

I have tried to call the "Public Sub frm_gestionare_cursanti()" by using the code

frm_gestionare_cursanti.afisare_note_obtinute()

And nothing hapends.Why ?What should i do to refresh the DGV on MDIChild?

View 2 Replies

VS 2010 : XML Child Nodes 'loops'?

Jun 1, 2011

I have a bunch of XML's that need to be put into an SQL database. One XML represents all orders for a certain department of a store. The problem (for me) is that in one XML there can be (and are) multiple orders (called distributions in my case.) The XML looks as follows (truncated):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<order><process_id>322867</process_id>
<key1>RET</key1>
<key2>40_134985</key2>

[code]....

So in this example I have two 'distributions'. Now I can get all data out of the XML fine, which I do like this:

get xml data
awsFeed = XDocument.Load(fileName)
Dim orders = From order In awsFeed...<order> _

[code]....

However, in this case my SQL input would have to result in 2 entries, because there are 2 orders. Both entries would have the same data, except for different entries. I know how to post to SQL, that's not the problem. My real problem is, how do I 'loop' it through the XML. I think i'm looking for something like:For each 'distribution' in orders -> put into array.Or something like that. After that I could query the array and put it in the database.

View 5 Replies

VS 2010 All Child Controls Disappeared?

May 17, 2011

In the project I'm working on, I was editing a class and when I got done, I clicked save all. I moved on to my main form's designer. When it came up, the custom tab control I have on the form was blank. There used to be a ton of controls in it, so I am extremely confused about where everything went.I checked the properties window and it thinks everything is still there:ut when I check the Document Outline window, everything is gone. The tab control is still there, "AVERT Wizard", but all of it's child controls and tab pages are gone.

View 2 Replies

VS 2010 MDI Child Form Focus?

Jul 22, 2011

I have MDI application and couple of child windows...This is how I'm opening one child window

Private Sub Membe*******tripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles Membe*******tripMenuItem.Click
Dim members As New members
members.MdiParent = Me

[code]....

My problem is that I dont have an idea how to check is that form already opened and if it is simply to focus it... Now I can open as many as I want same forms (on the picture this are couple same child forms, what I don't want...So I need simple check is this child form opened and if yes focus it?

View 3 Replies

VS 2010 Open A Child Form?

Dec 7, 2011

I have a form that opens in full screen, like this:

Public Function setFullScreen()
With Form1
.MaximizeBox = False
.MinimizeBox = False
.TopMost = True

[Code]...

I want to make a button that will open a form (show it), but show it on the current Form1, and that it wont be able to elave the borders. When I open it, It doesn't show it ON the form1. How do I do it?Another question is ... How can I prevent users from quitting the application by ALT F4, And also prevent them from using the computers functions like Task Manager, ALT Tab,

View 1 Replies

VS 2010 Using The Same Event For All Child Panel?

Nov 9, 2011

I'm a bit confounded about how to proceed. I'm creating some kind of gameboard for a friend of mine. I have a splitpanel and the game grid will appear in the 1st panel. I put a panel with a 100x100 square in tile background format. called it gridpanel.i want that when I double click on gridpanel, a semi-transparant picture box frame (called Target) appears on your grid-square. I handled it like this :

Private Sub Targetting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles gridPanel.MouseDoubleClick
If yourTurn Then

[code].....

View 2 Replies

VS 2010 Borderless Child Maximized Still Has Controlbox

Aug 11, 2011

I have an MDI parent form and multiple child forms. Child forms are borderless and set to start in the maximized position because I want the forms to completely fill/resize within the parent form and only display the selected form, one form at a time.

Problem I have is whenever I load a form it puts another bar at the top of the screen and another control box. Is there any way to get the child forms to load in maximized state without this bar? I tried .controlbox = false and it gets rid of the control box but the bar is still there.

View 2 Replies

VS 2010 Nested MDI Parent/Child Forms?

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

VS 2010 Parent-Child Form Using DataGrids

Aug 5, 2011

I am trying to create a simple parent-child form in VB2010. I use a datagridview for each table/datasource and each is bound to the parent/child table and each table grid fills correctly. What I want is the parent-child relation to enforce filling the child table with only rows that fulfill the current row on the parent. I have created a DataRelation in the form load, but it will not permit a relation between tables in 2 different datasets. If I attempt to place both tables in a single dataset and define the PK-FK relation in the SQL Server I cannot create 2 separate datagrids from the same dataset.

View 2 Replies







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