1. After I written in a public class, can I access the methods in my class without having to declare an instance of it?
Like for ex.
public class lol()
Public void asdf()
If I do lol.asdf(); from the Form_Load method will it work?
2. When declaring an instance of a class, why do we have to write it in a weird way?
System.IO.StreamReader streamrdr = New StreamReader(filepath)
Why it cant be just
System.IO.StreamReader(filepath) As New streamrdr
3. I was good with Vb 6.0 long time ago, and I think calling windows API with vb 6.0 MUCH easier since there was a little tool that came with vb 6.0 studio that had all of windows API and their functions listed.
Question, is theres anything similar to that in C#?
4. Last question :P
Is theres a certain method or class in C# that allows me to write and retrieve records easily from a file? Because vb 6.0 did that and I was able to write a simple phonebook application that stored the date in a textfile.
I really hope I ever find an answer to my question and thanks in advance =]
0 · ·