You are calling the GetLine declared non-static from within a static function.
Either mark the GetLine declaration as static, or create an instance of the class containing both the functions.
More Related Contents:
- How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5?
- Detecting USB drive insertion and removal using windows service and c#
- Win32 API function to programmatically enable/disable device
- How to enumerate all windows belonging to a particular process using .NET?
- get the titles of all open windows
- Capture screenshot Including Semitransparent windows in .NET
- Does C# have an equivalent to JavaScript’s encodeURIComponent()?
- How do I determine a mapped drive’s actual path?
- How to get the z-order in windows?
- .NET (C#): Getting child windows when you only have a process handle or PID?
- What’s the best way to calculate the size of a directory in .NET?
- Path.Combine absolute with relative path strings
- File getting copied to SysWOW64 instead of System32
- Windows service with timer
- C# – Making a Process.Start wait until the process has start-up
- Watermark in System.Windows.Forms.TextBox
- How do I get information about recently connected USB device?
- Winforms: Application.Exit vs Environment.Exit vs Form.Close
- How to check if another instance of the application is running [duplicate]
- C# – Regex for file paths e.g. C:\test\test.exe
- How do I get common file type icons in C#?
- Why is infinity printed as “8” in the Windows 10 console?
- “MoveFile” function in C# (Delete file after reboot)
- How do I spawn threads on different CPU cores?
- Is .NET 4.0 Compatible with Windows XP SP2 or below? [closed]
- Bluetooth APIs in Windows/.Net?
- Domain credentials for a WebClient class don’t work
- The type ‘System.IDisposable’ is defined in an assembly that is not referenced
- How do I minimize a WinForms application to the notification area?
- Detect if non DPI-aware application has been scaled/virtualized