Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with Properties
Message
From
03/12/2006 20:46:32
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01174402
Message ID:
01174528
Views:
6
You're welcome, Gerard. Glad to help. =)

~~Bonnie



>Thanks for your help .
>Gerard
>
>
>
>>Gerard,
>>
>>You haven't instantiated your frmLines object correctly. Try this:
>>
>>
>>OrderLines frmLines = new OrderLines();
>>
>>
>>That should work.
>>
>>~~Bonnie
>>
>>
>>
>>
>>>Hi.
>>>I am trying to set up properties on a form but keep cant get the form to recognise my property. I have one form which calls another and I am trying to pass in a parameter to the called form:
>>>
>>>Click Event of Calling Form
>>>---------------------------
>>>Form frmLines = new OrderLines();
>>>frmLines.Cusref = "3";
>>>frmLines.Show();
>>>
>>>
>>>In OrderLines (Called) Form
>>>---------------------------
>>>public string mCusref = " ";
>>>.....
>>>public string Cusref
>>> {
>>> get { return mCusref ;}
>>> set { mCusref = value;}
>>> }
>>>
>>>The frmLines.Cusref shows an error and Intellisense is not comong up with Cusref as being a property of the form.
>>>
>>>This is the first time I have used Dot Net properties so perhaps I am missing something.....
>>>
>>>Thanks in advance
>>>
>>>Gerard
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform