Newbie Question

  • Thread starter Thread starter Fred Block
  • Start date Start date
F

Fred Block

Hi All,

Just getting started in C# (I'm a seasoned VB6 developer) and cannot seem to
find out how to get to a control's specific event handler (other than those
created by the IDE when dbl-clicking on a control in the [Design] UI).

Please let me know how this is done. I'm sure NEVER to forget!

Thanks in advance for your time and support!

Kind regards - Fred
 
Hi All,

Just getting started in C# (I'm a seasoned VB6 developer) and cannot seem to
find out how to get to a control's specific event handler (other than those
created by the IDE when dbl-clicking on a control in the [Design] UI).

Please let me know how this is done. I'm sure NEVER to forget!

Thanks in advance for your time and support!

Kind regards - Fred

If you want what I think you want :)....

Select the control in the designer, in the properties window click the little
lightning icon. That will show you all the events for the selected control.

HTH
 
Thanks Tom and Martin both!

That's just what I needed. A double-click and my stub is waiting...

Terrific!

OK - with the web and numerous books, what's the "most" well know or
referenced website or book for C# training, learning or tutorials? I know
there's a lot but if any "stand out" I'd love to know. Thanks again!

Best regards - Fred


Martin Honnen said:
Fred said:
Just getting started in C# (I'm a seasoned VB6 developer) and cannot seem
to find out how to get to a control's specific event handler (other than
those created by the IDE when dbl-clicking on a control in the [Design]
UI).

See MSDN online http://msdn.microsoft.com/en-us/library/zwwsdtbk.aspx or
your local copy. Basically the property window lists the events and you
can create handlers there.
 
OK - with the web and numerous books, what's the "most" well know or
referenced website or book for C# training, learning or tutorials? I know
there's a lot but if any "stand out" I'd love to know. Thanks again!

I recommend these two books, they are the best two books by far:

"Windows Forms 2.0 Programming" by Chris Sells and M. Weinhardt

"C#3.0 in a Nutshell" by Albahara et al. (O'Reilly)

The second book is even better than the first. You will refer to it
daily.

RL
 
Thanks Ray,

I too am just now learning C#. I've been a Clarion programmer for
years,
and towards the end of last year I was given a C++ assignment at work. 3
Months
later I was given a C# assignment. I have some great C++ books, but was
overwhelmed by the number of C# books. Separating the wheat from the chaff
has been difficult.

Marty Honea
 
I  have some great C++ books, but was
overwhelmed by the number of C# books. Separating the wheat from the chaff
has been difficult.

As you know, in CSci there's lots of chaff. I buy lots of CSci books
every year, read them once and toss them. The book by Jon Skeet who
posts here is one such book. He's a good author, and he is very
helpful in this group, but his book, while useful and worth the money,
is a "read once" book (except his Appendix A, which I ripped out and
saved). To his publisher's credit they also provide a PDF of the
entire book once you buy the paper copy and provide a password found
in the book, which you can store and keyword search. And lots of
books are even worse, much worse, than Skeet's. A lot of C++ books I
bought were terrible (a book by a Greek surnamed author comes to mind,
and a book by Barbara Moos, a programming pioneer and guru, was bad).
Too many "Hello World" books or too many "old style" books (Charles
Prezold's stuff comes to mind).

Another book for later (very optional): is the Design Patterns book by
Judith Bishop, which is the Gang of Four's famous book done for C#.
Very optional, since realistically even in OOP you'll do these kind of
designs once in a blue moon, but when you do them right they are very
powerful.

Good luck...and I learned something new today from Wikipedia: Clarion
(programming).

RL
 
Thanks Ray.

Clarion isn't a bad language. And it's served me well for quite a few years.
It's easy to get started in, but powerful enough that you can do most of
what you want with it. I don't regret the 12+ years I've worked in it. And
it put lots of food on the table and a roof over my head. But within 2 days
of using VS C++ and the debugger, I found it painful to try and debug code
in Clarion. I'm kicking myself for not learning C years ago.

I can already tell that I'm going to have to invest in more bookshelves.

Marty

I have some great C++ books, but was
overwhelmed by the number of C# books. Separating the wheat from the chaff
has been difficult.

As you know, in CSci there's lots of chaff. I buy lots of CSci books
every year, read them once and toss them. The book by Jon Skeet who
posts here is one such book. He's a good author, and he is very
helpful in this group, but his book, while useful and worth the money,
is a "read once" book (except his Appendix A, which I ripped out and
saved). To his publisher's credit they also provide a PDF of the
entire book once you buy the paper copy and provide a password found
in the book, which you can store and keyword search. And lots of
books are even worse, much worse, than Skeet's. A lot of C++ books I
bought were terrible (a book by a Greek surnamed author comes to mind,
and a book by Barbara Moos, a programming pioneer and guru, was bad).
Too many "Hello World" books or too many "old style" books (Charles
Prezold's stuff comes to mind).

Another book for later (very optional): is the Design Patterns book by
Judith Bishop, which is the Gang of Four's famous book done for C#.
Very optional, since realistically even in OOP you'll do these kind of
designs once in a blue moon, but when you do them right they are very
powerful.

Good luck...and I learned something new today from Wikipedia: Clarion
(programming).

RL
 
in Clarion. I'm kicking myself for not learning C years ago.

You surely mean C++ or C#, not "C", which is a more primitive and less
powerful language.

My gripe about C# is that it doesn't yet have an "internet" component--
you have to learn ASP or Java or some other language for that--though
from a brief white paper I saw, I think that might change with the
next version of C#, coming out in two years.

RL
 
RayLopez99 said:
You surely mean C++ or C#, not "C", which is a more primitive and less
powerful language.

Well he could not learn C# that many years ago.

And many people start with C before C++.
My gripe about C# is that it doesn't yet have an "internet" component--
you have to learn ASP or Java or some other language for that

I find it difficult to see what ASP.NET, .NET "applets", click once
deployment and Silverlight does not provide of "internet".

Arne
 
C# didn't exist when I debated on learning C.
C++ did, but for the same reason I wanted to
learn C++ before I learned C#, I wanted to learn
C before learning C++. I actually went back and
forth on learning Assembly too. I decided that
I wouldn't use Assembly enough to merit the
effort in learning it.

I don't do much internet driven stuff, so I'm not
too worried about it. If that changes, I'll learn ASP
and some more PHP.

Marty
 
Back
Top