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

Threaded View

  1. #4
    Join Date
    Jul 2007
    Posts
    115

    Question Kind Attention To Mr. HanneSThEGreaT

    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
    I am passing the Myform through frm which doesn't contain controls. But to get all textbox control from oForm in Class Module1. What I have to do.

    Please help me.

    Thanking You

    Debasis Bag
    Last edited by HanneSThEGreaT; February 11th, 2010 at 08:38 AM. Reason: [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