VS 2008 How To Static Mdi Child Form Location

Nov 6, 2009

i create StudentForm as my mdi child form, what i suppose to do to let user unable to move my mdi child form to other location? how to make it in static location? Private Sub StudentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentToolStripMenuItem.Click

StudentForm.Show()
StudentForm.MdiParent = Me
End Sub

View 2 Replies


ADVERTISEMENT

Make Static Mdi Child Form To Not Movable?

Nov 6, 2009

i create StudentForm as my mdi child form, what i suppose to do to let user unable to move my mdi child form to other location? i want it to be static location

Private Sub StudentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentToolStripMenuItem.Click
StudentForm.Show()
StudentForm.MdiParent = Me
End Sub

View 1 Replies

MDI Child Form Not Opening In Specified Location?

Jun 25, 2011

I have an MDI form with child forms which I open on it. The following statement in each form's load event places a child form in the location I want:

Me.Location = New Point(0, 136) I have several of these working. However, I have one form for which this statement does not work. It opens spread out over the entire parent form. Also, there is a border at the top with min, max, and close buttons even though the form has no border. This form has a picture box on it, if that means anything. why this child form does not open in the specified location?

View 1 Replies

Set Location Of Child Form To A Specified Point Of Parent Form

Nov 11, 2010

how to set location of child form to a specified point of parent form.Below is my code but it is not working for setting the location.[code]

View 1 Replies

Lock Child Form Location To Parents?

Jun 8, 2010

I have a Dialog which I'm calling via Loading.Show()Can I lock the position and location to the parent form? In such a way so if the parent is minimised or moved, the child will stay centred to the parent?

I was using ShowDialog() but this obviously stops the parent from being accessible. This is being used to display a progress gif. (Child is 50% opacity)

View 3 Replies

VS 2008 Getting The MDI Child Location?

Aug 8, 2009

In one of my apps I'm using MDI childs so the user only has one screen. There's only one MDI child open at any time, it is maximized and all control option (controlbox, minimize and maximize buttons) are turned off, so to the user it seems there is one program with one screen.In the parentform I'm using devexpress' RibbonBar for the menu.

When I open a new child, the uppermost part of the childform (about 15px) is not shown, it's put under the Ribbonbar. If I resize the parentform however, the childform ofcourse changes dimensions as well because it is maximized and this somehow causes it to shows like it's supposed to.Is there any way to invoke this behaviour programmatically so the location of the child form is correct from the beginning?

View 2 Replies

VS 2008 Location Of Child Forms?

Aug 11, 2011

I have a Midi form with controls I always want to be displayed even when child forms are open. I can position the location of the child forms when the project is first opened with no issues. The problem I have is if more than 3 child forms are open and I enter the middle form one of the others is no longer visible. Me.LayoutMdi(MdiLayout.Cascade) will reorder all the forms but it starts at location(0,0). Have tried the other options available with midilayout and they all do the same thing

View 6 Replies

Unable To Place A Label Box In The MDI Parent Form And Then Open A Child Form The Label Box Highlighted In Child Form?

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

VB 2008 - Change Child Form Combo Box From MdiParent Form

Feb 23, 2010

In 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.

View 5 Replies

VS 2008 Populating Cbobox On Form Load For A Child Form?

May 14, 2009

i am having an issue populating two combo boxes on form load. The program will connect to an access database and pull data as instructed. Then as it pulls each record it puts it into the combo box.

This was working.. atleast i think it was. i dont recall it ever not working, however i wasn't looking for it.

My problem is that if when i load the MDI parent form and have it skip the selection form and the login form and load the next form in the sequence, it loads everything perfectly. However if the select form is loaded first, then the login form and then the form i need loaded, it will not populate. The only difference between the two different loads is that the login form calls a function that loads the form as a new project.form

I did this so that I can have multiple forms open at a time. I am assuming my problem is that I need to get the child forms handle then populating controls using that handle? but i think if I had to do that then I would beable to populate the comboboxes on the first form load using the login method of opening the form.

Here's my code.

vb.net
Private Sub frmLine1t5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Text = "Line " & LineNumber & " Test Form"

[Code].....

View 20 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 2008 Making A Form To Child Form

Sep 28, 2010

1) I m very new to VB.NEt 2008. I have placed a MDI Form in my project and a Form too. I want to make the form to a Child Form of MDI. is there any property or how can it possible.

2) I want to set the lable back color to Transparent but found no property.

View 6 Replies

VS 2008 A Child Form On Top Of The Other?

Apr 3, 2010

I've got an MDI vb project with several child forms. Now I want each child to be placed on top of the other open childs when I create it. In simple words, I don't want it to hide behind the other open childs.

View 6 Replies

Get The Index Location Of A Child Node Using The Key String On TreeView .NET?

Oct 27, 2009

trying to determine the index of a child node using the key string so I can add a new child node to it.I am using this code:

vNodesIndex = TreeView1.Nodes.IndexOfKey(Key)

But only works for the root node when I try to find an exiting child node the code returns -1 (Not Found)

View 10 Replies

VS 2008 Check Form Border Location

Apr 23, 2009

I need a check that will see the location of the edge of the form. An example would be (for what I am trying to do) is, when a form is moved, the main form will get bigger depending which border and which way the second form is going.So basically I need some way to make Form1 get bigger if Form2 is near the left border or near the bottom border.

*I have a mini system for making it grow(LocationChanged) on the form I want it to work for.

*I also know about ".left" and ".top",

View 2 Replies

VS 2008 Set The Location And Size Of A Form In The Same Line

Aug 24, 2009

Was just wondering if there is a way to set the location and size of a form in the same line ... as i have a form that takes a little while to resize all components ... and when u tween the form's location and size at the same time it chunks as it sizes.

View 1 Replies

[2008] Setting Picturebox Location On Form?

Feb 14, 2009

i need a picturebox to, when an event has happened to either revert back to its original place.or set a location for it to go after the event has taken place.ive tried lots of different code but its not working?

View 3 Replies

VS 2008 DataGridViewComboBoxColumn In MDI Child Form

Apr 23, 2012

I have a main form having the MDI Parent Control. I have a menu toolstrip menu "set status" which opens a Child Form having a DataGridView. The DataGridView has a

[Code]...

View 4 Replies

VS 2008 MDI Child And A Dialog Form?

Jan 19, 2010

I'm having trouble with MDI child and a dialog form. The problem details are listed below:

1. One MDI Parent form (Form1) with a button on it (Button1).

2. One Child form of Form1 (name = Form2) with a button (Button2) and a textbox (text_box1).

3. Another form in the project (not child of Form1 and not MDI Parent) with name Form3. This form has also a button on it (Button3).

The application behaviour is as follows: the application starts with Form1. Clicking the Button1 will show Form2. Form2 correctly opened as a MDI child. Clicking the Button2 on the Form2 will show Form3 as dialog (Form3.ShowDialog() ). Clicking the Button3 on the Form3 need to do the magical thing - to set/change the text in the Form2's text_box1.

Tried various examples from this forum. Also followed a lot of examples from net. Nothing works. Tried to create a writable property in the Form2 class but calling it from the Form3 does nothing.

I tried to access the MDIchildren(ss) while ss loops in MDIchildrens array but I don't know how to access the label control inside the Form2 using this technique. Successfully changed the Form2 caption but no controls are available in VB intellisense - practically correct because VB don't know which form from array I'm referring to.

View 7 Replies

VS 2008 Scrollbar Child Form?

Jul 2, 2009

I have a huge image which I loaded into a picturebox on a Child Form. The problem is that I can't seem to create scrollbars on the Child Form. So... I tried the Webbrowser control. The code I used:

WebBrowser1.Navigate("file:///" & Application.StartupPath.ToString() & "libmap.jpg")Doesn't work somehow. But then again... I'm not sure where to place that particular folder. I tried all the C:UsersRadjeshDocumentsVisual Studio 2008Projectsproject_name.... and subfolders, but I ca't seem to get it right.

View 2 Replies

VS 2008 - Setting Location And Making Form Unmovable

Oct 28, 2011

How would I make my form unmovable so you cannot drag it to move it? I also need to know how to make it always start in the same exact spot. I don't know why but it changes spots even thought the location is set: 0,0

View 3 Replies

VS 2008 Location - Make A Form Pop-up At Random Place

Jun 25, 2009

I'm trying to make a Form pop up at an random place (given in a textbox). Here is my code so far:

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Form2.Location = Textbox1.text
Form2.Visible = True End Sub

Yes i know it doesn't work. What I really need to know is how to make the txt understandable for the system.drawing.point.

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

VS 2008 - MDI Child - Controls Move Up The Form At Runtime

Jul 29, 2009

I have an MDI application which uses fixed sized forms. I've started to change the forms to sizeable and anchored the controls so they move when the form is resized. If the child form has a menu this jumps onto the parent menu (as it always has done) but all the controls move up the form at runtime and leave a space at the bottom of the child. If I change the form in design mode to cut through the bottom controls i.e. so the form doesn't appear tall enough, it corrects itself at runtime. Is there another workaround as it looks misleading in the designer.

View 3 Replies

VS 2008 - Passing Data From WPF Parent To Child Form

Jan 27, 2010

In my WPF Form1 I have TextBlock1 that fill from AddressTableAdapter. To edit address user must click EditButton to open Form2 to perform changes. My problem is passing data to Form2 from Form1. In Form2 I have 3 TextBoxes Street, City, Zip, and StateComboBox. I try to code in Loaded procedure of Form2 like this and got error message:

Private Sub Form2Detail_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
Me.AddressTableAdapter.Fill(Me.AbcDataSet.Address)
Me.StreetTextBox = IIf(IsDBNull(AbcDataSet.Address.StreetColumn), "", AbcDataSet.Address.StreetColumn))
Me.StateComboBox = IIf(IsDBNull(AbcDataSet.Address.StateColumn), 0, AbcDataSet.Address.StateColumn))
End Sub

View 1 Replies

VS 2008 - Show Child Form In MDI Parent Taskbar?

Mar 30, 2012

I have developed vb.net application and have one main form with isMdiContainer property true. It has one Menustrip control docking on top of the form and StatusStrip docking on bottom of the scrren. When User click on any menu item it opens new form or if already opened, show it. My application allow to open multiple child forms opened at same time and all forms StartPosition is set to CenterScreen. My problem is becuase all forms are in cetenr it ovelaps each other and user wouldn't know which form(menu option) is opend. I would like to see all opened forms in different tabs (like in windows taskbar) in bottom of MDI parent form.

View 2 Replies

VS 2008 .NET Child Form Controls Method Calls?

Sep 14, 2010

I have a MDI Form that has a child form containing a text box. I want to be able to make a call to the TextBox's cut() method on the currentlly active child form. Here's what I have so far, but it is complaining about using ctrl.cut()

[Code]...

View 3 Replies

VS 2008 Mdi Form Controls Are Visible In Child Forms

Feb 12, 2010

i use a picture control in mdi form .. but when i load child froms then mdi form picture are also show in front of child form...

View 7 Replies

[2008] Make Sure The Mdiform Will Not Consist The Same Child Form?

Mar 1, 2009

how to make sure the mdiform will not consist the same child form?

View 7 Replies







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