>>> In either Design view, right-click an empty area and choose View
>>> Component Designer (or use View | Component Designer). Now you should
[quoted text clipped - 13 lines]
>> codebehind event. This works good. BUT for the events for the page the
>> lightining bolt doesn't show up [...]
I still don't think you read even what you quoted back to me. No that's not
part of the question.
You've told the OP how to get the lighning bolt in the properties window
when the OP is already saying that he can do that. The OP is asking about
showing lighning bolt items in the top-right dropdown of the code view, not
the properties window
> I described a way to make the lightning bolt show up and therefore allow
> the IDE to easily wire up events without having to do it through the code
> window.
Yes you did. But the OP has already indicated that he can do this - - he's
not asking how to do it.
> And yes, since 2005, the IDE does make it pretty easy to do it from the
> code window, but different people like to work in different ways, so maybe
> Chris will be happier with this. I know I personally like to have a
> concise list of the events an object exposes without having to scan
> through an Intellisense list.
I don't think he will be happier with what he's already indicated he knows
how to do. I think he'd be happier with an answer to his question, which is
how to get the event list show up in the code view dropdown list (as you can
do in VB).
-Scott
Jeff Johnson - 13 May 2008 14:34 GMT
>>> I can go to the design aspx page and select an object and show the
>>> property box and click on the lighting bolt which shows me the
[quoted text clipped - 4 lines]
> I still don't think you read even what you quoted back to me. No that's
> not part of the question.
????????????????????????????????????????
Okay, let's read together then. Very closely, and very slowly.
**********Quote from original post*******
I can go to the design aspx page
and select an object
and show the property box
and click on the lighting bolt
which shows me the properties for that object, [actually, he should have
said "events"]
and then double click on the event
to go straight to the codebehind event.
This works good.
*******End quote 1********
Okay, the poster knows how to use the Properties window to access an
object's events. But wait...
**********Quote from original post*******
BUT for the events for the page the
lightining bolt doesn't show up
*******End quote 2********
I said:
>> I described a way to make the lightning bolt show up and therefore allow
>> the IDE to easily wire up events without having to do it through the code
>> window.
And you said:
> Yes you did. But the OP has already indicated that he can do this - -
> he's not asking how to do it.
But RIGHT THERE he stated that FOR THE PAGE ITSELF he cannot get the
lightning bolt to show up. Is that the part you were missing? My answer is
ONLY about accessing the events of the Page object in the Properties window,
because the poster explicitly stated he was unable to do that. No, it wasn't
the MAIN question, but the answer to that question is simply "Sorry, C#
can't do that, period." Since there is no way for the poster to do exactly
what he wants, I suggested alternatives.
Scott M. - 13 May 2008 16:29 GMT
> But RIGHT THERE he stated that FOR THE PAGE ITSELF he cannot get the
> lightning bolt to show up. Is that the part you were missing? My answer is
[quoted text clipped - 3 lines]
> "Sorry, C# can't do that, period." Since there is no way for the poster to
> do exactly what he wants, I suggested alternatives.
You still don't get it. By your own admission, you are describing how to
use the Properties Windows for events (Page or otherwise) and this is NOT
what the OP is asking about. The OP is asking how to get events to show up
in the DROPDOWN list of the CODE PANE as can be done in VB. This is the
list that contains Page events displayed with lightning bolts next to them.
Jeff Johnson - 13 May 2008 17:22 GMT
>> But RIGHT THERE he stated that FOR THE PAGE ITSELF he cannot get the
>> lightning bolt to show up. Is that the part you were missing? My answer
[quoted text clipped - 10 lines]
> the list that contains Page events displayed with lightning bolts next to
> them.
Oh. My. God.
Listen carefully. I've been participating in newsgroups for quite a while
now. One thing you learn is how to read posts and find places where posters
don't know or understand something. It is PERFECTLY LEGAL to provide the
poster with information he didn't EXPLICITLY ASK FOR, especially if it might
help him (or anyone else following the thread) in the future. I stated above
that I was NOT addressing the main question, and I also gave the answer to
that question, which I will now rephrase: "You CANNOT do what you want to do
in C#. The C# IDE simply does NOT provide objects in the dropdowns the same
way the VB does."
If the original question was "how to get events to show up in the DROPDOWN
list of the CODE PANE as can be done in VB" then you too did not address the
main question, because you never once mentioned that the C# IDE simply
doesn't do that; you only posted a workaround (use code and automatic event
handler generation).
I ALSO posted a workaround.
Why was your response acceptable and mine wasn't?
Scott M. - 13 May 2008 18:58 GMT
I don't need a lecuture on how these NG"s work, I too have been posting in
them for over a decade.
You need to relax a bit and simply try to understand what I've said instead
of having a fit.
All I'm trying to tell you is that you really didn't provide any alternate
method for the OP, since the OP mentioned that he's already doing what you
explain how to do. That makes your post a little redundant and basically of
no help.
That's all I've been trying to say to you and you still don't get it.
Relax - - you'll live longer.
>>> But RIGHT THERE he stated that FOR THE PAGE ITSELF he cannot get the
>>> lightning bolt to show up. Is that the part you were missing? My answer
[quoted text clipped - 32 lines]
>
> Why was your response acceptable and mine wasn't?
Bill McCarthy - 14 May 2008 03:24 GMT
Hey guys,
Just for the record you both are right. Scott, your suggestion of using
this. in the code editor is indeed the standard (or most common)way of
adding event handling in C# for the page. Jeff's suggestion of using "View
in Component Designer" is ingenious, and not one I had previously seen. I
only got that working by selecting the file page in solution explorer and
then right clicking and selecting to view in Component Designer. Honestly,
I doubt I would ever use that, but then again, I also am rarely to use C#
<g> It is however nice to see the events filtered in the properties window,
(or in the drop down combos of the VB code editor). So there's value in
both ways.
Jeff Johnson - 15 May 2008 14:18 GMT
> Just for the record you both are right. Scott, your suggestion of using
> this. in the code editor is indeed the standard (or most common)way of
[quoted text clipped - 6 lines]
> the properties window, (or in the drop down combos of the VB code editor).
> So there's value in both ways.
I agree. I never suggested that Scott's reply was without value. My only
problem whatsoever has been with the fact the he seems convinced that I told
the OP nothing he didn't already know when the OP's post makes it CLEAR that
he did NOT know how to find the events (aka, the lightning bolt) of the Page
in the Properties window, and I simply told him how to do so. I think anyone
with a smattering of reading comprehension will be able to review this
thread and see who's right and who's wrong.