473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Need help on reccomended reading to learn some new tricks :)

Hi,

I'm a selv learned developer and I have a few years of experience with VB6,
ASP, PHP and such.
I've dug into coding with VB.NET and this language simply amazes me. I
really LOVE this language. I've read some Java and i have tried to learn
java but really haven't gotten the time yet so i know a bit OO. ( i tend to
fall back to languages i know i guess ;) but i see that .Net is worth
learning for me )

However i have never really understood events. I understand what an event is
and why those beautiful things exists :) but i don't see the big picture
yet.
I've created a class that implements the fileSystemWatcher and i have added
handlers to trigger on change, rename and delete of a logfile.

What i don't understand is when the events will be triggered and for how
long they will be triggered and such. This class is going to be one of many
classes that are tied up to a NTService.
If i create an instance of my class in my main program (the NT Service) will
the events trigger as long as the instance exists (i guess not) or will the
events trigger only when i'm inside the function that sets
oWatcherFileWatcher.EnableRaisingEvents = True ?

I guess i need to extend my class with my own events ? Can someone point me
to eighter a book that covers this topic well ? (i've got access to
www.books24x7.com hence i can read most books online) or a webpage ? I've
searched for the topic but most books just says events are nice blah blah
blah and show a simple example of an event but they don't show it all (i
guess it's possible to do what i want..... i hope? )

Thanks a lot

/Kai
Nov 20 '05 #1
2 1100
Both Building Applications and Components with Visual Basic by Ted Pattison
and Visual Basic .NET for Advanced Programmers by Paul Kimmell explain this
in depth. Jeffrey Richter's book on Applied .NET Framework programming for
VB.NET does too (I have the C# version, but he wrote a VB.NET version with I
believe Balena, and it should be just as good).

As far as your file watcher, it'll keep raising events until the property is
set to false or the program stops running
"Kai Thorsrud" <ka******@thispartgoesaways.start.no> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm a selv learned developer and I have a few years of experience with VB6, ASP, PHP and such.
I've dug into coding with VB.NET and this language simply amazes me. I
really LOVE this language. I've read some Java and i have tried to learn
java but really haven't gotten the time yet so i know a bit OO. ( i tend to fall back to languages i know i guess ;) but i see that .Net is worth
learning for me )

However i have never really understood events. I understand what an event is and why those beautiful things exists :) but i don't see the big picture
yet.
I've created a class that implements the fileSystemWatcher and i have added handlers to trigger on change, rename and delete of a logfile.

What i don't understand is when the events will be triggered and for how
long they will be triggered and such. This class is going to be one of many classes that are tied up to a NTService.
If i create an instance of my class in my main program (the NT Service) will the events trigger as long as the instance exists (i guess not) or will the events trigger only when i'm inside the function that sets
oWatcherFileWatcher.EnableRaisingEvents = True ?

I guess i need to extend my class with my own events ? Can someone point me to eighter a book that covers this topic well ? (i've got access to
www.books24x7.com hence i can read most books online) or a webpage ? I've
searched for the topic but most books just says events are nice blah blah
blah and show a simple example of an event but they don't show it all (i
guess it's possible to do what i want..... i hope? )

Thanks a lot

/Kai

Nov 20 '05 #2
Than you for the help...
"William Ryan" <do********@nospam.comcast.net> wrote in message
news:uY**************@tk2msftngp13.phx.gbl...
Both Building Applications and Components with Visual Basic by Ted Pattison and Visual Basic .NET for Advanced Programmers by Paul Kimmell explain this in depth. Jeffrey Richter's book on Applied .NET Framework programming for VB.NET does too (I have the C# version, but he wrote a VB.NET version with I believe Balena, and it should be just as good).

As far as your file watcher, it'll keep raising events until the property is set to false or the program stops running
"Kai Thorsrud" <ka******@thispartgoesaways.start.no> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm a selv learned developer and I have a few years of experience with VB6,
ASP, PHP and such.
I've dug into coding with VB.NET and this language simply amazes me. I
really LOVE this language. I've read some Java and i have tried to learn
java but really haven't gotten the time yet so i know a bit OO. ( i tend

to
fall back to languages i know i guess ;) but i see that .Net is worth
learning for me )

However i have never really understood events. I understand what an event is
and why those beautiful things exists :) but i don't see the big picture
yet.
I've created a class that implements the fileSystemWatcher and i have

added
handlers to trigger on change, rename and delete of a logfile.

What i don't understand is when the events will be triggered and for how
long they will be triggered and such. This class is going to be one of

many
classes that are tied up to a NTService.
If i create an instance of my class in my main program (the NT Service)

will
the events trigger as long as the instance exists (i guess not) or will

the
events trigger only when i'm inside the function that sets
oWatcherFileWatcher.EnableRaisingEvents = True ?

I guess i need to extend my class with my own events ? Can someone point

me
to eighter a book that covers this topic well ? (i've got access to
www.books24x7.com hence i can read most books online) or a webpage ?

I've searched for the topic but most books just says events are nice blah blah blah and show a simple example of an event but they don't show it all (i
guess it's possible to do what i want..... i hope? )

Thanks a lot

/Kai


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Rob | last post by:
i know javascript, vbscript, asp css and alot more and im only 14 i was wondering which is easier to learn php or cgi. any help?
0
by: Andy | last post by:
Hi, In the code below (not pretty I know but it's an early version :-P) I'm having problems reading the data object back in. If I move the reading code to immediately after the section where it...
10
by: Jeff Wagner | last post by:
I am in the process of learning Python (obsessively so). I've been through a few tutorials and read a Python book that was lent to me. I am now trying to put what I've learned to use by rewriting...
3
by: Anand | last post by:
Hi Iam keen interested to improve my skills in c programming. Now Iam familiar with all the syntax and concepts. My main idea is to know how entire c compiler behaves in all circumstances(i.e...
22
by: Ramzy Darwish | last post by:
Hello, I have a Bachelors in CS and a Masters in Comp. Graphics. In all of my schoolwork, I used C and C++ and thought that I had a pretty good understanding of the language(s). But now, as I...
6
by: news | last post by:
I need some concise, easy to grok examples of what .Net (preferably C#.Net) has over just using old ASP or PHP with JavaScript. See, I'm a PHP guy, and while I started server-side scripting with...
22
by: macAWM | last post by:
Hi list, First let me explain that my background is in Java and I am quite spoiled to its niceties (read "less ambiguous nature"). Anyway to my problems. 1. I want to write my own library for...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
3
by: =?Utf-8?B?SmF5IFZpbnRvbg==?= | last post by:
I see general messages about how to learn .NET but I have an immediate requirement to ramp up my old skills very quickly. Can anyone recommend the FASTEST way for me to get almost-competent in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.