![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How do I get a type from a string? |
#3
| |||
| |||
|
|
"Erol" <Erol (AT) discussions (DOT) microsoft.com> wrote in message news:B802B0D6-DA39-42D4-A45B-8398C639DFCD (AT) microsoft (DOT) com... How do I get a type from a string? See the System.Type.GetType() function. http://msdn.microsoft.com/library/de...ttypetopic.asp -- Alan |
#4
| |||
| |||
|
|
In my example you'll see that I'm using the System.Type.GetType function, but it's giving me an error. Could you please shed some light onto my problem. Just uncomment the line in "form load" that says "Uncomment to see error" |
#5
| |||
| |||
|
|
"Erol" <Erol (AT) discussions (DOT) microsoft.com> wrote in message news:17593F83-D811-497F-9F44-8F7D233E6205 (AT) microsoft (DOT) com... In my example you'll see that I'm using the System.Type.GetType function, but it's giving me an error. Could you please shed some light onto my problem. Just uncomment the line in "form load" that says "Uncomment to see error" Sorry I did not read your OP thoroughly enough... I am not a VB guy, but it does not seem to me that you need to go about it the way you are. You should be able to just get and set the properties directly. For example, 'Fetching Dim Anchor As System.Windows.Forms.AnchorStyles Anchor = Button1.Anchor 'Store value in DB 'Setting Dim Anchor As System.Windows.Forms.AnchorStyles Anchor = System.Windows.Forms.AnchorStyles.Bottom 'Value from DB Button1.Anchor = Anchor -- Alan |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |