MDI Parent Save The Open Childs At Shutdown?

Jan 3, 2009

I have an MDI web browser and it would be handy if it could save the open MDI childs at shut-down so that the next time the user would open the web browser the MDI childs would be still there...

Is that even possible?Private Sub frmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code]...

View 5 Replies


ADVERTISEMENT

Forms :: Detecting Open MDI Childs When MDI Parent Is Closed

Dec 16, 2010

I'm new to VB 2010 but have be using VB6 for many years.I'm currently stuck trying to store the state of open MDI childs at the moment the MDI parent is closed. Clicking the parent upper right close button appears to close all open MDI childs before running the parent 'Closing' or 'Disposed' events.I am therefore unable to detect which MDI childs are open and cannot restore them next time the application is run.Is there any other event for the MDI parent I can detect the start of the closing process before the children are closed?

View 2 Replies

Hide All MDI Childs From Parent?

Dec 2, 2010

Been searching the web for about an hour now and not having a lot of luck. Got my MDI Parent with some buttons on and one of the buttons I want to hide all open MDI Children forms but I don't want to close them.

View 2 Replies

C# - LINQ To SQL To Query Parent And Count Childs In Hierarchy?

Dec 8, 2010

I'd take both C# and VB.NET suggestion.I'm using LINQ to query data. I'm trying to query the parent and count the child tags.Here's my Tags table column:

TagId (int primary)
TagName
ParentId (int Allow NULL referred to TagId column)

Here's some sample data:

[Code]...

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

Forms :: Save Data Before Shutdown / Reboot?

Nov 5, 2009

I've got a small reminder application I wrote in VB Express 2008. The main app autostarts with Windows and sits in the system tray all the time. Now, I need to save the time (sorta timestamp) it closes/terminates to a file. It works fine when the app is terminated by myself but doesn't when when I shutdown/reboot Windows. The code that saves the timestamp to a file resides in FormClosing event. But for some reason it doesn't fire or the code to save the file doesn't get executed when I shut down/reboot windows.

Is there a way, probably thru' Win API to register my app with Windows, so that windows actually waits for my app to terminate in a sane way after saving the data. I remember of reading about this possibility somewhere, I don't remember now.

View 4 Replies

Use The Win32 Hooks To Allow To Add Extra Save Locations To The Save And Open Dialog Box?

Oct 23, 2011

I am wanting to find out how to use the Win32 hooks to allow me to add extra save locations to the save and open dialog box so as to allow as an option for files to be saved directly to a database rather than a file system.I have tried looking online but can't find anything remotely usable for this, the only data on hooks that I can find involves Window operation hooks, mouse, leyboard, and shell hooks, nothing to do with files.

View 2 Replies

Progressbars - App Open A Save Confirm Message Box Open

Jul 7, 2009

Questions regarding progress bars. to start i would like to say what i am trying to do: i am trying to have my app open a save confirm message box open. at this point if the user presses ok then a seperate form will open containing a progress bar to visually represent the status of the file saving. the following code is written in VB 2008

The following code says that if the ok button was clicked then show the form with the progress bar

CODE:

Now this is the code that performs the actions of save... but i am getting an "IOException handler error" saying that the proccess is in use

CODE:

View 4 Replies

Mdi Parent Menu Save Child Text?

Jun 9, 2011

Ok So I am trying to save text from a textbox to a rtf file. The Saves Text would come from the active mdi Child. However I can not figure out how to Save using active child just calling the actual form name. Below is my code so far.

Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click
Try

[code].....

View 4 Replies

Treeview Checkboxes On Childs Only

Jan 19, 2012

I am working on a project and now I need to know how to have checkboxes on children nodes and not on parent nodes.

View 5 Replies

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

TreeView - Clicking Node Inside Parent To Open URL?

Aug 24, 2009

I am quite new to VB so I have a tree view and I want to know how to make it when i click a node inside a parent node it opens a URL. And on top off that I want to be able to make the nodes you click on and URL's they open while the application is open. I want it so that I made Node0 in a options form and when I click it it will open a URL witch I also set on a options form.

View 10 Replies

IDE :: Docking MDI-Childs Into The SplitContainers Panel?

Jan 25, 2009

I use a splitcontainer in my programme, along with a couple of mdi-childs. I've got a problem now: The splitcontainer is actually in my main form, which is a mdi-container itself. Whenever I try to use mdi-childs, the panel of the splitcontainer is in front of it. Also I have problems with docking the mdi-child into the panel of the splitcontainer.

View 2 Replies

VS 2010 Treeview - Checkboxes On Childs Only?

Jan 20, 2012

I am working on a project and need checkboxes on childs only.Now I have this

Public Const TVIF_STATE As Integer = &H8
Public Const TVIS_STATEIMAGEMASK As Integer = &HF000
Public Const TV_FIRST As Integer = &H1100
Public Const TVM_SETITEM As Integer = TV_FIRST + 63

[Code]...

View 2 Replies

Visual Basic (Coding) - Child Form To Open Within A Panel On Its Parent?

Mar 2, 2012

I have created a (kind of) 'Desktop' Form for the main basis of my program. Basically it is made up of 3 panel controls.

1. Holds all buttons which load the different forms (Like the windows start menu when expanded). name: StartMenuPanel

2. Holds Information on log in deatails. name: LogCheckPanel (very thin panel at top of screen)

3. Main panel which takes up the majority of the screen (where I want the forms to load). name: MainPanel

My aim is: When a button is clicked from the 'StartMenuPanel' the form will load with-in the 'MainPanel'.

I tried changing the start position to 'centre parent', but the panels are in the way so some of the childform is overlayed by the panels.

[Code]...

When I run this I get the following error: 'Top-level control cannot be added to a control'.

I hope I've explained this well enough.

View 7 Replies

VS 2008 Removing My.Settings - Uncheck The "save My.settings" On Shutdown?

Sep 27, 2009

I set up some application settings for checkboxes on an app and then decided to remove them. When I set the Application Settings to (none) in the designer and restarted the app, the checkbox constantly checks and unchecks itself. I completely remade the app and removed the file that is used to store my.settings in the Local folder of the user's appdata profile. I also made sure to uncheck the "save my.settings" on shutdown.

View 6 Replies

.net - Finding A Childs Row And Column In UniformGrid Based On Index In WPF?

Apr 10, 2012

In WPF, I have a Uniform Grid and would like to be able to find the row and column based on the index of a child element.

I know there is a mathematical way of doing this and would rather not use a normal Grid.

If it helps, I can get the total number of rows and columns by using:

Math.Sqrt([*uniformgrid*].Children.Count)

View 1 Replies

Open A MDI Child Form Using A MenuList On The Main MDI Parent Form?

Feb 6, 2011

I have a MDI Parent form created with a MenuList, I also have the MDI child form created.ow do I go about using the MenuList to open the MDI child form within the parent form?

View 1 Replies

Update Open Child Mdi Form Textbox From Parent Form?

Feb 3, 2012

I have a date selector on mdi parent that updates a property when date is changed. When I open a child form, it grabs the property just fine. However if I change the date again after the child is open the date does not change on the child unless I close and reopen the form as expected. What would be the best way to automatically update all open child forms when the date is changed on the parent at anytime? running a timer to parse the date property is impractical.

View 2 Replies

Save File Extensions - Save/open Dialog Wont Show .GDL Files Unless Select "all Files"?

Mar 22, 2011

im used to C programming.

Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click
timedate.Stop()[code]......

The problem is that if I save a file I get "myfile.GDL" if I overwrite that I get a new file "myfile.GDL.GDL" ect.the other problem being that the filtering in the windows save/open dialog wont show .GDL files unless I select "all files".

View 6 Replies

Disabling The Parent Form When Child Form Is Open

Jul 18, 2012

disable the parent window form as soon as the user will open the child form....

for eg...consider daniweb...when we click on member login the background form gets grayed out....

Disabling the form is not the option cause it will just disable all the controls of the form....but I need a grayed out screen between the current child form and the parent form....

note - the parent form is not the MDI form...it is just a normal window form and when the child form is open and if the user clicks on the main form without closing the child form then the screen should show some movement...

I tried disabling the form...changing the background of the form to opaque....but could not get through it....

View 5 Replies

Call A Member Through Its Parent's Type That Shadowed A Parent Class Implementation?

Aug 3, 2011

This is a challenging one that got me stumped while I was coding today. Suppose I am running the Sub Test1() and Test2() and would like to print out the value of the Shadows method of the instance of the object I am passing in to TestCall() (see below - it is clearer) using the following restrictions:

Can't change the contents of Class A, B, and C
Can't change Sub Test1() and Sub Test2()
TestCall() can't have an if, select case etc. statement that tries to figure out the type

[code].....

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

Forms File Save Open

Jun 18, 2009

I am doing windows application project in vb.net ,code for how to save ,open and print a file /document.i have used the below code for save but its not working fine. [[code]

View 1 Replies

How To Create Save And Open Buttons

Aug 3, 2009

I have looked everywhere for some info on how to code save and open buttons. In my program, there are textboxes and labels that will have info entered into them by the user. I need to be able save whatever is in the labels and textboxes. Then, I need to be able to open the file and have all values in the labels and textboxes to be restored to wherever they were. I want to be able to save and open just like in excel, word, and whatnot with a file that is saved onto the computer.

View 14 Replies

How To Open And Save Data In Excel

Nov 27, 2010

how to open and save data in excel using vb2008.

View 2 Replies

How To Save And Open Rich Text

Feb 2, 2010

How in the world do i save/open a rich text file (.doc .txt or other) that can work in a Windows Forms Project. They should be able to click a button to open, and one to save. How do i do this?

View 2 Replies

Making A Save/Open Button?

Sep 1, 2009

I was wondering how to make a save buttonI'm making a very simple program in which the user enter an email address and the computer works out if it's realDaft, I knowJust experimentingI was also wondering how to make an open buttonOne last thing:

View 11 Replies

Open & Save Text Files?

May 2, 2012

I am trying to learn how to open and save text files with visual basic 2010. Here is code I have for now:

vb.net
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[code].....

View 9 Replies

Open / Save Listbox With Openfiledialog?

Mar 21, 2010

i'm using VB 2008 and i need to open / save listbox with openfiledialog and savefiledialog. I know how to do it with text files but i need to find out how to open a listbox.

View 5 Replies







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