Robert,
Well, you can set it manually, by setting the Text property to the value
for true or false (depending on the property value).
You can also use a data binding on the textbox, like so:
// Assume textBox is the textbox, and myInstance is your class.
textBox.Bindings.Add("Text", myInstance, "IsLoggedIn");
Basically, the first parameter specifies the property on the control you
want bound to the object. The second property is the data source, in this
case, your object instance. The third property is the property to bind to
on your instance.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<Ro********@yahoo.co.uk> wrote in message
news:11********************@u72g2000cwu.googlegrou ps.com...
Hope I word this ok. Ive created a class, which I added to my
references. In the class ther is public method called isloggedin.
when I check the objects I see 'public bool IsLoggedIn { get; }
Member of BetBetter.Betfair.BetfairWrapper'. My project compiles
fine, runs ok, as Im not requesting anything. What Id like to know is
how do I get response from 'Isloggedin' into a textbox. So far I get an
error that cannot convert type bool to system.windows.form. Am I
correct in thinking this is possible because its public.
Regads Robert