I am trying to make a class so when I do the following inside a file:
Functions LoginFunctions = new Functions(); LoginFunctions.loadFunctions(); It will create my object which I need, and make it public so every form which calls the class will be able to use it. The class file is below.
namespace App { public class Functions { public void loadFunctions() { TaskbarItemInfo taskbarItemInfo = new TaskbarItemInfo(); } } } It doesn't seem to be making the taskbarItemInfo object public, and it is not letting me use it anywhere else other then inside the class. How do I make it public so every file that calls the class can use the object?
TaskbarItemInfoisntance or creating a static class?TaskbarItemInfo loadFunctions() {...}orList<object> loadFunctions() {...},public TaskbarItemInfo myTaskbarItemInfo;etc.