Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to remove icon Pin
Sonia Gupta13-May-07 20:01
Sonia Gupta13-May-07 20:01 
AnswerRe: How to remove icon Pin
harsh_c13-May-07 22:04
professionalharsh_c13-May-07 22:04 
GeneralRe: How to remove icon Pin
Rupesh Kumar Swami13-May-07 23:12
Rupesh Kumar Swami13-May-07 23:12 
QuestionClose all forms but one Pin
harveyhanson13-May-07 14:20
harveyhanson13-May-07 14:20 
AnswerRe: Close all forms but one Pin
Paul Conrad13-May-07 14:32
professionalPaul Conrad13-May-07 14:32 
AnswerRe: Close all forms but one Pin
Christian Graus13-May-07 15:18
protectorChristian Graus13-May-07 15:18 
GeneralRe: Close all forms but one Pin
harveyhanson14-May-07 0:26
harveyhanson14-May-07 0:26 
GeneralRe: Close all forms but one Pin
Dave Kreskowiak14-May-07 4:03
mveDave Kreskowiak14-May-07 4:03 
harveyhanson wrote:
Im not a wiz at vb by the way, just a beginner!


This makes me question what you're really trying to do with this.

The Application object has a collection called OpenForms. All you need to do is iterate over this collection and call Hide on each form, taking care not to hide the form you want to show.
For Each f As Form in Application.OpenForms
    ' Make sure we're not hiding the form this code is on...
    If f Is Not Me Then
        f.Hide
    Next
Next



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Close all forms but one Pin
harveyhanson14-May-07 4:40
harveyhanson14-May-07 4:40 
GeneralRe: Close all forms but one Pin
Dave Kreskowiak14-May-07 5:32
mveDave Kreskowiak14-May-07 5:32 
GeneralRe: Close all forms but one Pin
Paul Conrad14-May-07 5:26
professionalPaul Conrad14-May-07 5:26 
GeneralRe: Close all forms but one Pin
harveyhanson14-May-07 6:46
harveyhanson14-May-07 6:46 
GeneralRe: Close all forms but one Pin
Dave Kreskowiak14-May-07 12:32
mveDave Kreskowiak14-May-07 12:32 
GeneralRe: Close all forms but one Pin
harveyhanson14-May-07 12:35
harveyhanson14-May-07 12:35 
GeneralRe: Close all forms but one Pin
Dave Kreskowiak14-May-07 16:34
mveDave Kreskowiak14-May-07 16:34 
QuestionHelp: GUI, object currently in use elsewhere Pin
gatorlaid13-May-07 10:23
gatorlaid13-May-07 10:23 
AnswerRe: Help: GUI, object currently in use elsewhere Pin
Christian Graus13-May-07 11:40
protectorChristian Graus13-May-07 11:40 
Questionhow to use execScript command in vbMHWB? Pin
www1979ab13-May-07 4:16
www1979ab13-May-07 4:16 
AnswerRe: how to use execScript command in vbMHWB? Pin
www1979ab13-May-07 13:29
www1979ab13-May-07 13:29 
Questioncode for NavigateError Pin
wayiming13-May-07 3:30
wayiming13-May-07 3:30 
AnswerRe: code for NavigateError Pin
Christian Graus13-May-07 11:41
protectorChristian Graus13-May-07 11:41 
GeneralRe: code for NavigateError Pin
wayiming13-May-07 19:30
wayiming13-May-07 19:30 
GeneralRe: code for NavigateError Pin
Dave Kreskowiak14-May-07 3:55
mveDave Kreskowiak14-May-07 3:55 
QuestionVery Urgent!!! - Crystal Reports [modified] Pin
Kumaran21cen13-May-07 0:58
Kumaran21cen13-May-07 0:58 
AnswerRe: Very Urgent!!! - Crystal Reports Pin
Paul Conrad13-May-07 14:30
professionalPaul Conrad13-May-07 14:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.