|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Question about Application LayoutI'm building an application which will display several documents at
once. I'd like my application to behave the way many applications, including Microsoft Word, behave -- I want each document to be displayed in a separate window, and I want to be able to open and close windows at will. As simple as this behavior sounds, I can't figure out how to program it in VB.NET. I can open several documents in separate windows, but when I close the first window, all others close automatically. Can anyone provide me with advice on how to get it working right? -TC On Nov 23, 11:50 am, TC <golemdan***@yahoo.com> wrote:
> I'm building an application which will display several documents at I figured it out!> once. I'd like my application to behave the way many applications, > including Microsoft Word, behave -- I want each document to be > displayed in a separate window, and I want to be able to open and > close windows at will. > > As simple as this behavior sounds, I can't figure out how to program > it in VB.NET. I can open several documents in separate windows, but > when I close the first window, all others close automatically. Can > anyone provide me with advice on how to get it working right? > > -TC In the project properties, there is an option called "Shutdown mode". By default, it is set to "When startup form closes", but it can be changed to "When last form closes". After changing that, I can get the behavior I want. -TC You might also want to consider using a MDI form as the parent (start up
form). That way all your documents are contained, and you can close them all from the parent. -- Show quoteHide quoteTerry "TC" wrote: > On Nov 23, 11:50 am, TC <golemdan***@yahoo.com> wrote: > > I'm building an application which will display several documents at > > once. I'd like my application to behave the way many applications, > > including Microsoft Word, behave -- I want each document to be > > displayed in a separate window, and I want to be able to open and > > close windows at will. > > > > As simple as this behavior sounds, I can't figure out how to program > > it in VB.NET. I can open several documents in separate windows, but > > when I close the first window, all others close automatically. Can > > anyone provide me with advice on how to get it working right? > > > > -TC > > I figured it out! > > In the project properties, there is an option called "Shutdown mode". > By default, it is set to "When startup form closes", but it can be > changed to "When last form closes". After changing that, I can get the > behavior I want. > > -TC >
Advice Required - Vb or Not VB (or even .NET)
Multithreading dilemma Weird bug Creating a Web Service (Service, not Client) from WSDL Trouble with sendkey TAB Reurning Arrays Saving an image from a picturebox Please vote for rendering bug (loss of AlphaChannel) for ico-files! Server Explorer - VS 2005 Passing a ColorPalette as an argument |
|||||||||||||||||||||||