Skip to content

Call function in Program.cs

David Ball

Asked Jul 17, 2009, 1:09 AM EDT1 answer
Share
LinkedInX
i have a program that runs in a continual loop as it uses open gl to draw graphs from xml files. however i need to call a function from a seperate class. the function starts parses a seperate xml file that has configure data for the graphs so needs to be parsed before the main form has loaded so it cant go in formload. idealy it needs to go in to Program.cs but i dont know how to call it. any help wpuld be good
thanks in advance

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I'm afraid you would need to post code for me to understand what the problem is. If the method is public static you should be able to call it from anywhere in the assembly -- or is this an instance method?
    0