Guest User

Untitled

a guest
Nov 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public partial class Form1 : Form
  2. {
  3. public Form1()
  4. {
  5. InitializeComponent();
  6. MessageBox.Show(Library.Apps_txt.resultvalue);
  7. //I want to be able to call that in any form or class using this namespace
  8. }
  9. }
  10. public class Library
  11. {
  12. public struct Apps_txt
  13. {
  14. public static String resultvalue { get { return "result value IS: "; } }
  15. public static String Pbexcept { get { return "Exception has raised."; } }
  16. //thousand of string.
  17. //...
  18. public static String mystring1000000 { get { return "my string 1000000"; } }
  19. }
  20. }
Add Comment
Please, Sign In to add comment