![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Official Updates Updates to official libraries could be found here. This forum is only available to licensed users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
A couple of problems
![]() a) Playing with enums "obj1.SetProperty("FormBorderStyle", "4")" works in the IDE but the optimising compiler throws a "must implement IConvertible" exception. b) I can't find a use for SetProperty2 and SetProperty4. Within the IDE it always throws an "unable to cast System.Windows.Forms.MainMenu to System.String" exception and, due to B4PPC typing behaviour the optimising compiler compiles it to SetProperty(String, String) not SetProperty(String, Object). Is the intended use to pass objects returned from libraries. Similarly ObjectArray.SetObject? EDIT :- I've knocked up a library to return types such as Size and Point and SetProperty2 seems to work with some of them them. Still having trouble with enums though! EDIT :- I've cracked enums! I was assuming that I would need to set the numeric equivalent of an enum but actually it needs the String name of the member of the enum. Having trouble with Color now, I can get it but not set it.Last edited by agraham : 03-28-2008 at 03:11 PM. |
|
||||
|
A not very good demo of the Door library. However it does contain solutions to the slight difficulties I had with Enum, Char (a bug to be fixed later) and Color. Thanks go to Erel for his patience in helping me out.
If anyone wants to play but doesn't know how to find the necessary information the .NET 2.0 Class Library docs are here http://msdn2.microsoft.com/en-gb/lib...35(VS.80).aspx Mostly it will be System.Windows.Forms that you will need. Find, say, the TextBox Class page, scroll to the bottom and click TextBox Members to get a list of the Properties and Methods for a TextBox. Those applicable to the device have a little picture of a device on their left. |
|
|||
|
Thank you Erel and agraham, it certainly looks very impressive
. I am certain we are many that are looking on and just hesitating before taking the plunge. The web-address with the information has certainly captured my interest!all the best / Björn |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PhoneticAlgorithms Library (ex-StringComparison Library) | moster67 | Additional Libraries | 10 | 11-11-2008 08:46 PM |
| Order a table with the library DOOR | manu | Beta Versions | 0 | 09-04-2008 08:16 PM |
| Door Library Null Reference Exception | sahoopes | Bug Reports | 1 | 07-15-2008 05:46 AM |
| Merging Outlook library and Phone library | Erel | Official Updates | 2 | 07-14-2008 04:38 PM |
| New serial library - beta version | Erel | Announcements | 13 | 08-02-2007 01:24 PM |