- 0
Global variables available across multiple forms?
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
eM Client 10.3.2412.0 by Razvan Serea eM Client is a full featured e-mail client with a modern and easy to use interface. eM Client also offers calendar, tasks, contacts and chat. eM Client supports all major services including Gmail, Exchange, iCloud, and Outlook.com. You can easily import your data from most of the other e-mail clients. This includes Microsoft Outlook, Outlook Express, Windows Mail, Windows Live Mail, Thunderbird, The Bat and more. eM Client fully supports touch devices like touch-enabled laptops, tablets and hybrid devices. Use your email client easily in a modern way. eM Client PRO vs. Free version While the Free license allows you to set up the maximum of two accounts in the application, it is possible to add an unlimited number of accounts with the PRO license. The PRO license also enables you to use eM Client for commercial purposes. Commercial use is any activity that helps you make profit, the Free license therefore cannot be used in company settings or on personal computers for business correspondence. PRO users also gain access to the dedicated support system and to the licensing manager. eM Client has been fully optimized to run smoothly on Windows Vista, 7, 8, 10 and 11. eM Client 10.3.2412.0 changelog: Added support for invitation forwarding on IceWarp servers Moving message from POP3 account to local folders no longer deletes the message from POP3 server storage Fixed an issue with some spellcheck languages that might have caused crashes (hungarian, danish and more) Fixed a conflict between a shortcut for a new message with some special characters in some languages (ie. polish) More bug fixes Download: eM Client 10.3.2412 | 128.0 MB (Free, paid upgrade available) View: eM Client Website | eM Client Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
-
By MaverickX009 ยท Posted
It sometimes comes down to leadership. Where Panos Panay was more about new features and strageic ads, the new lead for Windows seems to be more about fixing performance and consistency along with moving more components to the new settings app. Also for the first time, the Xbox team is allowed to play under the hood and tweaking the OS for what could be a Game Ready Edition. I like the new direction but it was a longer than expected journey. -
By lethalman ยท Posted
my hard drive is all most full i have 100gig left .but i have a 2TB Expansion hardrive it said on back of the box that it dont need formatting ,how can i have windows updates to save to the 2tb hard drive,the drive is seagate HDD can i put data of my full hardrive on to the 2TB HDD. I have windows 11 thank you nick -
By neufuse ยท Posted
nah they were moved to trying to jam Copilot into everything now -
By noobient ยท Posted
๐๐๐๐
-
-
Recent Achievements
-
BlakeBringer earned a badge
Week One Done
-
Helen Shafer earned a badge
Week One Done
-
emptyother earned a badge
First Post
-
Crunchy6 earned a badge
Week One Done
-
KynanSEIT earned a badge
One Month Later
-
-
Popular Contributors
-
Tell a friend
Question
Pc_Madness
Hey guys, just starting out with some C# programming, and atm I have the following,
frmMain - Form
frmAdd - Form
clsVideoLibrary - Class
frmMain declares a clsVideoLibrary, and loads everything into the class.. all fine and dandy.. however, the Add form adds in new items into the class.. atm, I have to pass everything back into frmMain and create a special function purely for the task (I guess it would depend on how my code is written), which is going to suck, as I'm going to basically redeclare this entire class inside of frmMain. Atm, I'm doing this by passing it frmMain.
Back in the old days of VB6, you used to just declare it as a global variable and stick it inside of a module, and all was well and everyone could access the class. But C# is a real poop about such things!
Is there any easy way to make the class available to other forms? As I'm going to have alot of classes and alot of forms, so it mightn't be entirely practical to pass the class files to the forms by reference or whatever.
w00t, 1234 posts :p
Link to comment
https://www.neowin.net/forum/topic/477190-global-variables-available-across-multiple-forms/Share on other sites
9 answers to this question
Recommended Posts