I am trying to figure out how to create a new DateTime object in a different timezone. For instance, no matter where the code is run from, I want the new DateTime object to be October 26, 2007 3:11pm Mountain Standard Time. Can anyone help me out on this one?
I was getting a similar error when I was accessing a file on the local intranet. I changed the framework security settings and the problem went away.
Control Panel - Administrative Tools - .NET Configuration - Configure Code Access Security Policy - Adjust Zone Security
Go there and adjust...
thanks
Thanks for the response. Maybe it's time to upgrade to 2.0! I just finished writing my own function that's almost identical to what you posted. Well, time to start testing... (this was my last item to program in the application!). Wish me luck in ironing out the bugs!
I have a comma seperated file (.csv) and I am seperating the elements using the string::split function, but I need a way to specify text that may contain commas but needs to be kept as one element in my array. Is there an easy way to do this? I know when you view a csv file in excel you can...
Is there a way to access the 'program files' directory, or what ever directory the program is running from? Similar to using Directory.GetCurrentDirectory to get the current directory.
Private Structure MyStructure
dim strDate As String
dim strName As String
End Structure
That is the basic structure format. But I don't think you can have a dynamically sized array of structures. Maybe I was doing something wrong, but it wouldn't let me do it when I was...
I want the selected node to stay highlighted when the user activates another object on the form. The user will be editing attributes associated with the node, and I want the node to stay highlighted even when the treeview isn't the object in focus. Can anyone help me on this?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.