-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: jayaveer
Message 3 in Discussion


Hi,
hope 
this will help
 
'Used 
for singleton pattern 
     Shared childForm As 
frmChildForm
 
     Public Shared Property 
GetInstance() As ChildForm
     End 
Property
 
 
*****************************************************
 
Dim 
childForm As frmChildForm =  frmChildForm.GetInstance() 

     childForm.MdiParent = Me 

 
     childForm.Show() 

 
     
childForm.BringToFront()


  -----Original Message-----
From: dotnet_ramu 
  [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 11:14 
  PM
To: BDOTNET
Subject: Please Convert this C# code to 
  VB.net Code


  
    
      
      New Message on BDOTNET
    
      

  Please 
    Convert this C# code to VB.net Code


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: dotnet_ramu 
            
              

                hi,
                 
                can anybody convert this code to vb.net
                 
                //Used for singleton pattern 

                
                  
                  
                         static 
                      frmChildForm childForm; 

                
                  
                  
                         public 
                      static ChildForm GetInstance 

                
                  
                  
                         { 
                  

                
                  
                  
                              if 
                      (childForm == null) 

                
                  
                  
                                   childForm 
                      = new frmChildForm; 

                
                  
                  
                              return 
                      childForm; 

                
                  
                  
                         }

                
*****************************************************
                
frmChildForm childForm = frmChildForm.GetInstance(); 

                
                  
                  
                         childForm.MdiParent 
                      = this; 

                
                  
                  
                         childForm.Show(); 
                      

                
                  
                  
                         childForm.BringToFront();
View other groups in this 
    category. 

____________________________________________________
  
IncrediMail - Email has finally evolved - Click 
Here

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to