
05-12-2008, 08:26 PM
|
|
Learning Programmer
|
|
Join Date: May 2008
Posts: 40
Credits: 0
Rep Power: 2
|
|
Re: Need advices on my new project
Quote:
Originally Posted by Xav
Don't worry - this branch of programming where you control other programs/apps (known as Automation) is quite complex for a beginner to its concepts, and I'm sure it will get easier as you learn more.
Have you found the name of the library? If not, open the Solution Explorer (that shows all the files), open up the References section, and see which library is new. That is the name of the library.
You see, the manufacturer decides on which objects it uses. A good manufacturer will write out easy to use objects, but a bad one will make everything complicated. I have no way of knowing which objects and classes are included in the Netshell library, as I have not used it before.
Therefore, you need to investigate them. Open up any code to test it out - for example, create a test button and double-click it to access its code. Then, type the library name you found out into the button's code handler, then type a dot. Hopefully, your software should display a list of all the different objects you can use. Tell me what they are, and I might be able to pick out which one to use. 
|
You said 1 example to test it out is to create a test button and I just need to type the name of the library with a '.' behind to find out the different objects. So now the problem is when I typed the name out, its show syntax error. So which is the name I should use? Is it NETASHELLLib. or Interop.NETASHELLLib. ? Also what else I need to type in. I was not quite sure how to do such stuffs.
|