Interface And Graphics :: Cancel Close On An MDI Child Form?
May 19, 2012
what I want to do is cancel a MDI child form closing when the 'X' at the top right hand side of the form is clicked.So, I use e.Cancel = True in the MDIchild_FormClosing event.However, the parent will not close if the 'X' button is clicked, and I noticed that the FormClosing event of the child handles 'Me', which I assume is the parent.Changing the handles 'Me' to handles 'nameOfChildForm' only generates an error Error: Handles clause requires a WithEvents variable defined in the containing type or one of its base types
View 2 Replies
ADVERTISEMENT
Mar 24, 2011
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]...
View 7 Replies
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
Oct 23, 2008
Is there a way to have a form within a program that doesn't dispose when you close it? I have a form in my project and a menu item to show it. When I declare the form globally and show in menuItem.click, then the click event breaks because the form no longer exists. When I declare the form within menuItem.click, then this creates a new form every time I click and that's not what I want.
View 1 Replies
Aug 21, 2008
I have an application containing parent and child frame. Child frame is accessed by parents. I want to limit moving of childs frame only in parent frame.
View 2 Replies
Jan 23, 2010
I'm having a small problem concerning displaying maximized child-forms in a MDI-application. Everything works fine on Win. Vista but when I start the program on a PC with Win. XP it doesn't look very nice. I found some similar threads on the internet but no answers. Does anyone know how to display maximized windows in MDI properly? [Code] On Vista the child-form switch/appear really smoothly. On XP you can see as they are being maximized.
View 7 Replies
Oct 19, 2008
I'm working on a design project where I have to use a Graphical User Interface that contains a drag and drop form. It consists of having a window dropped on a wall. Both of them are images to scale. I would like to know what kind of code I would have to use to show the x and y coordinates of one of the points of my window when dragged so when I drop it, I'm dropping in it on the desired coordinate of the wall.
View 2 Replies
Apr 13, 2009
When the end user cancel the FileCopy, i want him to see a message and then i want the form to close. Is this possible?
[Code]....
View 4 Replies
Apr 5, 2010
Is there an way to supress the validating event of textbox when the forms close button(X) is pressed. In the textbox validating event , if the condition fails then i am displaying an messagebox. Now suppose if the textbox has the focus and user directly presses the forms X button , then the messagebox is displayed
View 7 Replies
Jan 1, 2010
I have the following code which closes a child form which is named "frmJobheader"[code].
View 8 Replies
Jun 5, 2012
i am having some trouble in my Windows form application. i have 2 forms1st Main / Parent Form2nd Sub / Child Form (Menu)
View 7 Replies
Aug 12, 2009
How can I add a scrollbar to my form I tried the auto scrollbar option but is not working ??
How can I validate the user inpute inside a textbox to check that he type the desired word?? for Example validate if the user typed the word ( Bob)?
View 2 Replies
Aug 20, 2009
how to maximize my form window and for example my list view, tool strip container etc etc, maximize with the form window. I would just create the form to my monitor 1440x900 but this will be used on several computers all with different monitor size. What I'm looking for is a quick easy way of doing instead of setting each one up separately.
View 1 Replies
May 31, 2011
I just starting to use MDI form. I can show the child MDI form, without any problem. My problem is that I want to close the child form also from the parent menu bar. This is my code:
Private Sub CloseToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseToolStripMenuItem.Click
Dim frmActive As Form = Me.ActivateMdiChild
[code].....
View 3 Replies
May 16, 2010
I am using Visual Studio 2005. What I am trying to achieve is the following: I have a login form (form1) for the user. On successful login, a new form (form2) pops up which allows the user to add details of a student (name, age, address, courses taken, etc).
Following is what I tried to achieve the above said:
1) File>New>Project>VB Windows Application ................for form1
2) Project>Add Windows Form>Windows Form ...............for form2
What is happening is when I close form2, the application is not getting closed, form1 still exists. What i wish is that when I close any form (form1 or form2 or form3 etc ), the entire application must close.
View 6 Replies
Jan 10, 2010
I want to execute some code in the MDI Parent Form when an MDI Child Form has been closed. What Parent Form Event would be best.
View 6 Replies
Jun 5, 2012
I am having some trouble in my Windows form application. I have 2 forms:
1st Main / Parent Form
2nd Sub / Child Form (Menu)
Problem:
I want to close my 2nd form (which opens on top of 1st form) when I click on the 1st form.
View 3 Replies
Oct 14, 2009
How would you add a Dynamic Contextmenustrip to your form and how would you add the items to the contextmenustrip. Also when adding the items to the menustrip is it possible to give them names and text dynamically if so how?
View 5 Replies
Jun 22, 2010
know that there is library which can change the theme of the form but i do not
View 1 Replies
Nov 17, 2011
I'm looking for a tool that will allow me to display, and change forms, inside my original form.
View 5 Replies
Jun 29, 2012
I have following code to resize the form at run-time but it does not work. Form size remains same. What could be the possible reason?
frmErrMsg.btnNo_Err.Visible = True
frmErrMsg.btnOK_Err.Text = "Yes"
frmErrMsg.Height = 800
[Code].....
View 2 Replies
Feb 5, 2009
I am using a MDI form and child forms. Now I don't like the standard back colour of mdi form so I got code on the net which paints a gradient colour to the mdi. So far it is working okay.Now the problem is when I load a child form or close it or do a similar activity then it causes flicker in the mdi background. This gets pretty annoying at times and you see the background flicker.
View 2 Replies
Aug 24, 2008
I've got a form with no borders, and I am wondering how a user would be able to move this form around. I would like it to be moved the same way a form would move by left-clicking and holding the top border. I know that's a little vague, so if you need any more info feel free to ask...
View 1 Replies
Mar 4, 2009
Ok, i know the simple media controls to play a video file on the control screen, but is there a way to play the video on the form background?
View 2 Replies
Mar 17, 2010
I have a Visual Studio 2005 VB project that creates a fairly simple form containing three text boxes with corresponding labels. In terms of property settings I have AutoSize set to True, AutoSizeMode set to GrowAndShrink, SizeGripStyle set to Show, and WindowState set to Maximized.
I'd like the user to be able to grow and shrink this form using the resize grip that appears in the bottom right corner. When the application starts, it starts maximized, which is what I want, and it has the typical minimize, restore down, and close buttons in the upper right corner.
I can use restore down to reduce its size, and once that's done I can use the resize grip to make the form larger, but the resize grip will not allow me to make the form smaller. Changing WindowState to Normal doesn't change this behavior.
View 2 Replies
Jan 15, 2012
I just want to know how to close current child form and opens another? In vb.net.
View 2 Replies
Jul 12, 2011
I've got an app that I want to have an MDI with. It functions fine, but there needs to be a control panel off to the side of it to drive the child documents' creation. I have two problems with this.
First, if I add the control panel to the side of the form, it just overlays the MDI portion of the form and the children will spawn behind it. I can more or less manage the positions of these children, but the problem comes when I want to minimize the children, they minimize behind the control panel and I don't know how to move them. So I need to shrink the area they can move around in. I've read in places that you can use the splitter object, but that never seems to cooperate with me and only wants to move to the extreme left or right of the parent form. How can I reduce the area the children get to interact with? I've tried creating a MDI Panel, but VS has a fit with that.
Second, I've got a datagridview holding the data that will spawn the child forms. This is working well, but even though I've set the rows to be not resizeable, I can still make them grow or shrink during run-time (not programmatically). How do I stop this?
View 2 Replies
Jan 4, 2009
I am trying to put an image selected by the user into the form background. This means that an image from a specified file destination to be set as background.
View 2 Replies
Jun 27, 2009
Im quite new to VB actually and i've run my web application using VB .net. My problem here is to change the standard border color so that it would not look dull and just to make it look custom from other application. How can i change it? ive search all the properties but havent solved it.
[Code]...
View 2 Replies
Nov 18, 2010
i make a Form transparant where i dont want form background. So say like i got a round form and i can transparant the white background of the round even possible?
View 6 Replies