CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Jul 2007
    Posts
    115

    Question Form Passing to Procedure

    Dear Sir,

    I am in great trouble. I have a form which contain Two textbox control. When I passing the Form to Procedure the textbox controls of the form not getting say I am giving Exaple.

    Code:
    Public Class Myform
    
    'This Form Contains Two Controls TextBox1 And TextBox2
    
    'Calling the Procedure
    Call GetReferanceForm(Me)
    
    End Class
    
    Public Class Module1
    
    
    Public Sub GetReferanceForm(frm as Form)
         
        dim oForm as New Form
        oForm =frm 
        'Now Here oFrom is Defined by Frm which MyForm Reference
        'Here I am not getting Controls Like TextBox1,TextBox2
         oForm.TextBox1 'not Getting
    
    End Sub
    Please elp me.

    Thankin You

    Debasis Bag
    Last edited by HanneSThEGreaT; February 11th, 2010 at 05:48 AM. Reason: Added [CODE] tags!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured