Crono Posted December 9, 2002 Posted December 9, 2002 I found that if I add an XML file to a win app, it becomes accessible as a XMLDocument object from myproject.xmlfile. It works in a class module, but not in a code module. So how can I access it from a code module? Quote
*Gurus* divil Posted December 9, 2002 *Gurus* Posted December 9, 2002 Why are you using a code module? Bear in mind that any answer you give will result in "you don't need to use a code module for this". Try it in a static member of a class, and then if it still doesn't work, give us code, error, line number etc. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Crono Posted December 9, 2002 Author Posted December 9, 2002 My application starts at Sub Main, that's why I have a module. :) That's okay anyway, I've found a way around. Thanks! Quote
*Gurus* divil Posted December 9, 2002 *Gurus* Posted December 9, 2002 Sub Mains don't have to exist in modules :) Friend Class Moo Public Shared Sub Main() End Sub End Class Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Crono Posted December 9, 2002 Author Posted December 9, 2002 ... ho! Sorry, this is my first time with VB.NET. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.