Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 19th, 2004, 06:07 AM
Authorized User
 
Join Date: Jan 2004
Location: lahore, punjab, Pakistan.
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. )

Reply With Quote
  #2 (permalink)  
Old January 19th, 2004, 10:54 AM
Authorized User
 
Join Date: Jun 2003
Location: , FL, USA.
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
Reply With Quote
  #3 (permalink)  
Old January 19th, 2004, 03:25 PM
Authorized User
 
Join Date: Jan 2004
Location: lahore, punjab, Pakistan.
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 ????????


Reply With Quote
  #4 (permalink)  
Old January 19th, 2004, 03:58 PM
Registered User
 
Join Date: Jan 2004
Location: , , .
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.`

Reply With Quote
  #5 (permalink)  
Old January 20th, 2004, 03:30 AM
Authorized User
 
Join Date: Jan 2004
Location: lahore, punjab, Pakistan.
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?????????????????????????

Reply With Quote
  #6 (permalink)  
Old January 20th, 2004, 11:30 AM
Authorized User
 
Join Date: Jun 2003
Location: , FL, USA.
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
Reply With Quote
  #7 (permalink)  
Old January 21st, 2004, 05:42 PM
Authorized User
 
Join Date: Jan 2004
Location: lahore, punjab, Pakistan.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

then it's better to leave as it is

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:29 PM.


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