Jump to content
Xtreme .Net Talk

tocos

Members
  • Posts

    4
  • Joined

  • Last visited

About tocos

  • Birthday 11/11/1974

Personal Information

  • .NET Preferred Language
    VB.NET

tocos's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you bri .. It worked very fine .. many thanks Hesham
  2. Hello everybody, Thank you very much for your fast response ... I will start from the begining to clarify any missunderstanding 1- clsCats is a class 2- Form1 is a form 3- OtherForm is a form which will be different every time I use the class clsCats, but all of the OtherForm(s) will have the same custom properties for Example "ProductID" When I instanciate clsCats it will -Show Form1 -Store a reference to the OtherForm in the Form1 -Store the Value of the Property "ProductID" which will be used later by the OtherForm Form1 has a Button1 when clicked will show the OtherForm Loaded with the Product information Where ProductID = whatever .. And this step is the problem because I can't use: mOtherForm.ProductID as this is considered as a late binding .. in the design time the debugger does not know that mOtherForm will have a property called ProductID and fire an exception >> "ProductID is not a member of system.windows.forms.form" Thats all .. for more information please let me Hesham
  3. My problem is in the following line: mOtherForm.[Any property goes here] I can not access any "Custom Properties or Procedures" of mOtherForm as the compiler will mention that the custom Property is not a member of System.Windows.Forms.Form Thank you any way ..
  4. Hello all, I need your help in one small problem: I have a Class Called clsCats Class clsCats Public Function ShowList(OtherForm as Form) as Boolean 'Need to pass OtherForm to Form1 Form1.Show End Function End Class On the Form1_Load event I need to access the OtherForm properties Class Form1 Private mOtherForm as form Sub Form1_Load or Button1_Click mOtherForm.[Any property goes here] mOtherForm.ShowDialogue End Sub End Class I tried Delegates but I failed because the OtherForm will be unknown in the design time .. I'm not good in the delegate thing so .. please help Hesham Abdou
×
×
  • Create New...