Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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 January 19th, 2004, 06:07 AM
Authorized User
 
Join Date: Jan 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default form must be maximaized . dont have clip control

I want my form have the follwing two properties
1 It should be maximized when form is open
2 It does'nt have the clip control(icon on left side of title bar. )

 
Old January 19th, 2004, 10:54 AM
Authorized User
 
Join Date: Jun 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In the forms property page use these setting:

ControlBox = False
WindowState = 2-Maximized

Kenny Alligood
 
Old January 19th, 2004, 03:25 PM
Authorized User
 
Join Date: Jan 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Kenny Alligood
 In the forms property page use these setting:

ControlBox = False
WindowState = 2-Maximized

Kenny Alligood
I want to remove the icon on the left hand side of the form
not the buttons for max,min and close the window
Does Setting window sate to Maximize something to do with the border style of form ????????


 
Old January 19th, 2004, 03:58 PM
Registered User
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To remove the icon on the left hand side of a VB form, add the following code to the form load event:

Private Sub Form_Load()
Me.Icon = Nothing
End Sub

This code will replace the small white flag with a standard windows icon.`

 
Old January 20th, 2004, 03:30 AM
Authorized User
 
Join Date: Jan 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Jay5817
 To remove the icon on the left hand side of a VB form, add the following code to the form load event:
Private Sub Form_Load()
Me.Icon = Nothing
End Sub

This code will replace the small white flag with a standard windows icon.`


But I daont want any icon at all
and form to be maximized

right now I've set clip control = false
                   window state = 2- maximized
                   border style = 2 - sizable
these setting make my form maximized but I can see the clip control
Y?????????????????????????

 
Old January 20th, 2004, 11:30 AM
Authorized User
 
Join Date: Jun 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

According to MSDN the ClipControl is for this:
Returns or sets a value that determines whether graphics methods in Paint events repaint the entire object or only newly exposed areas. Also determines whether the Microsoft Windows operating environment creates a clipping region that excludes nongraphical controls contained by the object. Read-only at run time.

Therefore setting it to False would do nothing to resolve your issue. The setting that (I believe) are what you need is what I put in my previous post....

ControlBox = False
WindowState = 2-Maximized

That will remove the icon from the left corner along with the Minimize, Maximize, and Close buttons on the right corner. This will also resize your form to Mazimized. Since you lose access to the close buttons you will obviously need to add code functionality to handle that -- either a CommandButton or MenuItem.


Kenny Alligood
 
Old January 21st, 2004, 05:42 PM
Authorized User
 
Join Date: Jan 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

then it's better to leave as it is






Similar Threads
Thread Thread Starter Forum Replies Last Post
I dont know what the topic is?! Apocolypse2005 Beginning VB 6 3 August 20th, 2007 12:44 PM
calling control in one form from another form netfresher C# 3 November 8th, 2006 10:05 AM
Put a Video Clip on Web phungleon Flash (all versions) 3 September 6th, 2006 05:33 AM
Addressing a control on a form from another form Lamprey Access 1 March 3rd, 2005 12:05 AM
Movie Clip won't tween after colour changed jaucourt Flash (all versions) 2 December 22nd, 2004 06:56 AM





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