Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2010 > Visual Basic 2010 General Discussion
|
Visual Basic 2010 General Discussion For any discussions about Visual Basic 2010 topics which aren't related to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2011, 01:12 AM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Post how to remove blue bar are appearing from switching of one childform into anather in

hi all,

My application having one mdiform in that form six child forms are there.Switching of one form into anather form blur bars are appearing form at the title of every opened child form.These six child forms are opens in mdiform.how to remove the blue bars are appearing from every opened child form in mdiform.how to remove these blue bar.To avoid that issue please help me.


thanks,
Jayawant.
 
Old May 12th, 2011, 07:02 AM
Authorized User
 
Join Date: May 2010
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Cool Remove Form Title Bar

If I understand the question correctly...
first in your mdi child form properties set the Form Border Style to NONE
Then you will have NO titlebar, no re sizing , no re-locating options at all at runtime. These will need to be set at design time.

To use this approach you must set the Start Position Property to Manual. Then each time you open a new MDI child you have to set its Location Property using
Code:
 NewMDIChild.Location = New Point(x,y)
Dont forget to code a means of closing each child form or you will have to close all chiuld forms at once by closing the parent form.
Good luck!
 
Old May 12th, 2011, 07:08 AM
Authorized User
 
Join Date: May 2010
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default Removing Form Title Bars

Another approach, much easier from the programming end would be to use 6 different panel controls( selectable from the toolbox) THen reference each panel indivually in your code.
 
Old May 12th, 2011, 09:13 AM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to remove blue bars appearing from opening of one child child form into anather

hi all,

I have tested this "NewMDIChild.Location = New Point(x,y)".but blue bars are not remove in the opening of mdichild form into mdiform.

This bars are appearing in the opening condition of mdichild form after clicking any button in the mdiform.

Thanks,
 
Old May 12th, 2011, 09:14 AM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to remove blue bars appearing from opening of one child form into anather

hi all,

I have tested this "NewMDIChild.Location = New Point(x,y)".but blue bars are not remove in the opening of mdichild form into mdiform.

This bars are appearing in the opening condition of mdichild form after clicking any button in the mdiform.

Thanks,
 
Old May 12th, 2011, 12:50 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default

Its simple mate, just make sure you have:

controlbox = false
MinimizeBox = false
MaximiseBox = false
Text = blank

then you can keep the form resizable :D
__________________
Apocolypse2005, I'm a programmer - of sorts.
 
Old May 12th, 2011, 03:50 PM
Authorized User
 
Join Date: May 2010
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default Remove Blue Bars

Add This Before The NewMDIChild.Show() Statement in the Parent Form Code.
Code:
    
    NewMDIChild.ControlBox = False
        NewMDIChild.MaximizeBox = False
        NewMDIChild.MinimizeBox = False
        NewMDIChild.Text = ""
This Will Work only If you "Dim NewMdiChild As New Chi" . Chi Being The Name Of THe MDi Child Form

Good Luck



By The way Good Point Apocolypse2005 You are a programmer in my Book!

Last edited by GeneBuchite; May 12th, 2011 at 03:53 PM..
 
Old May 13th, 2011, 02:06 AM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Post how to remove bluebar appearing form switching of opening one child form into anather

hi all,

I have try to this properties controlbox = false
MinimizeBox = false
MaximiseBox = false
Text = blank

but not remove blue bar appearing from switching of opening of one childform to anather in a mdiform.

Thanks,
 
Old May 13th, 2011, 02:58 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default

Why do you need an mdi form?

I can never see the point
__________________
Apocolypse2005, I'm a programmer - of sorts.
 
Old May 14th, 2011, 02:19 PM
Authorized User
 
Join Date: Jan 2011
Posts: 86
Thanks: 1
Thanked 12 Times in 12 Posts
Default

Hi Apocolypse,

what alternative approach would you suggest?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd new webpart problem out of the blue. scottlucas58 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 17th, 2009 03:40 PM
remove the status bar from popup window crmpicco Javascript How-To 1 December 4th, 2007 06:15 PM
Horizontal scroll bar when childform is maximize juzjess C# 2005 1 November 7th, 2007 05:04 AM
Open ChildForm from another ChildForm in MDIParent juzjess C# 2005 11 October 10th, 2007 03:28 AM
Modeless Userform, without blue border or "x" maxpotters Excel VBA 1 March 25th, 2005 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.