Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
newbie questions ^_^!!!!!!!!!!!!11
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 · ·