Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How To : Search For VB Projects Collection / Designers in Application (Std. EXE)


Message #1 by "Vishal Gandhi" <vishalgandhi@m...> on Fri, 11 May 2001 11:27:52 +0530
I have not seen a use for VBE for myself as of yet.  Maybe I will look at it
later?  Heh.

-----Original Message-----
From: Vishal Gandhi [mailto:vishalgandhi@m...]
Sent: Monday, May 15, 2000 4:50 AM
To: professional vb
Subject: [pro_vb] RE: How To : Search For VB Projects Collection / Des
igne rs in Application (Std. EXE)


Thanks  Tim
pl . Let me know if you have used VBE

----- Original Message -----
From: "Tim Mccurdy" <tmccurdy@c...>
To: "professional vb" <pro_vb@p...>
Sent: Monday, May 14, 2001 8:05 PM
Subject: [pro_vb] RE: How To : Search For VB Projects Collection / Des igne
rs in Application (Std. EXE)


> Well, what I usually do, if I am creating a Form that the User can have
> multiple instances of, I will make a Property in the Form so I can
> differentiate between the Forms that are loaded.  For example, if I am
> allowing them to view a Day's Schedule in a new Form, and I want to Check
if
> that Form is Open or not:
>
> Private Sub ViewDay(ByVal vDate as Date)
> Dim Frm As Form
> Dim frmCal As frmCalendar
> Dim bFound As Boolean
>
> 'Check to see if the Form is Loaded
> For Each Frm In Forms
> If (Frm.Name="frmCalendar") Then
> Set frmCal = Frm
> If (frmCal.CalDate = vDate) Then bFound = True: Exit
> For
> End If
> Next
>
> If (Not bFound) Then
> Set frmCal = New frmCalendar
> frmCal.Date = vDate
> End If
>
> 'Open the Calendar
> frmCal.Show
> frmCal.ZOrder 0
>
> Set Frm = Nothing
> Set frmCal = Nothing
> End Sub
>
>
>
> 'In the Form's Code place the Property Variable in the Declarations
Section
> Public CalDate As Date
>
>
> -----Original Message-----
> From: Vishal Gandhi [mailto:vishalgandhi@m...]
> Sent: Saturday, May 12, 2001 4:53 AM
> To: professional vb
> Subject: [pro_vb] RE: How To : Search For VB Projects Collection /
> Designe rs in Application (Std. EXE)
>
>
> Hi
> This works only when form is loaded
> what is form or datareport is not loaded
> if any one used Visual Basic for Extensibility Library . please let me
know
>
> Regards
> Vishal Gandhi
> MCSD

  Return to Index