473,320 Members | 2,088 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,320 software developers and data experts.

Adding event handlers

Perhaps I am missing something or it does not exist. I am used to VB.NET
and when you have a windows form you can easily create a handler using the
drop down list. This does not seem to exist in VS2003 for C#. Double
clicking a control will bring up a stub for the "default" action.

Is there an interface in the IDE which gives this information so that I can
create the code (you know using the RAD) tool or is notepad about as useful?
I have had many problems with the IDE (icons go missing etc so if this
exists it may just be not noticed by me).

Using XP Pro, VS 2003

Lloyd Sheen

Nov 15 '05 #1
4 2305
On 2004-01-04, Lloyd Sheen <sq*******************@tostopspamhotmail.com> wrote:
Perhaps I am missing something or it does not exist. I am used to
VB.NET and when you have a windows form you can easily create a
handler using the drop down list. This does not seem to exist in
VS2003 for C#. Double clicking a control will bring up a stub for the
"default" action.

Is there an interface in the IDE which gives this information so that
I can create the code (you know using the RAD) tool or is notepad
about as useful? I have had many problems with the IDE (icons go
missing etc so if this exists it may just be not noticed by me).


Click on the control in the designer window. Now, in the properties
window, click on the icon at the top that looks like a little lightning
bolt. You'll then have a list of all the events in the current control.
You can either type in the handler, or just double click the text area
and the IDE will create the handler for you.

As an aside, I really don't see why VB and C# couldn't share the same
interface here, especially now that we have essentially version 2.0 of
Visual Studio.NET.
--
David
dfoster at
hotpop dot com
Nov 15 '05 #2
Thanks, and I totally agree. All the hype about the platform seems to have
forgotten that all the dot.net languages should share a common interface or
the idea of a common IDE is lost.

Lloyd Sheen

"David" <df*****@127.0.0.1> wrote in message
news:sl*******************@woofix.local.dom...
On 2004-01-04, Lloyd Sheen <sq*******************@tostopspamhotmail.com>

wrote:
Perhaps I am missing something or it does not exist. I am used to
VB.NET and when you have a windows form you can easily create a
handler using the drop down list. This does not seem to exist in
VS2003 for C#. Double clicking a control will bring up a stub for the
"default" action.

Is there an interface in the IDE which gives this information so that
I can create the code (you know using the RAD) tool or is notepad
about as useful? I have had many problems with the IDE (icons go
missing etc so if this exists it may just be not noticed by me).


Click on the control in the designer window. Now, in the properties
window, click on the icon at the top that looks like a little lightning
bolt. You'll then have a list of all the events in the current control.
You can either type in the handler, or just double click the text area
and the IDE will create the handler for you.

As an aside, I really don't see why VB and C# couldn't share the same
interface here, especially now that we have essentially version 2.0 of
Visual Studio.NET.
--
David
dfoster at
hotpop dot com

Nov 15 '05 #3
The idea of a platform that's common for all languages still exists. The
issue here is, Visual Studio IDE has not caught up with the commonality
exposed by .Net Framework.

There are a few good reasons for this. You cannot expect a Visual Basic
programmer to completely change his/her style of programming and learn
everything overnight to cope up with a platform change.

The common interface is still in the pipeline and will be here when Whidbey
(the next version of Visual Studio) is out.

-vJ

"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message
news:sc********************@twister01.bloor.is.net .cable.rogers.com...
Thanks, and I totally agree. All the hype about the platform seems to have forgotten that all the dot.net languages should share a common interface or the idea of a common IDE is lost.

Lloyd Sheen

"David" <df*****@127.0.0.1> wrote in message
news:sl*******************@woofix.local.dom...
On 2004-01-04, Lloyd Sheen <sq*******************@tostopspamhotmail.com>

wrote:
Perhaps I am missing something or it does not exist. I am used to
VB.NET and when you have a windows form you can easily create a
handler using the drop down list. This does not seem to exist in
VS2003 for C#. Double clicking a control will bring up a stub for the
"default" action.

Is there an interface in the IDE which gives this information so that
I can create the code (you know using the RAD) tool or is notepad
about as useful? I have had many problems with the IDE (icons go
missing etc so if this exists it may just be not noticed by me).


Click on the control in the designer window. Now, in the properties
window, click on the icon at the top that looks like a little lightning
bolt. You'll then have a list of all the events in the current control.
You can either type in the handler, or just double click the text area
and the IDE will create the handler for you.

As an aside, I really don't see why VB and C# couldn't share the same
interface here, especially now that we have essentially version 2.0 of
Visual Studio.NET.
--
David
dfoster at
hotpop dot com


Nov 15 '05 #4
On 2004-01-04, Vijaye Raji <no************@hotmail.com> wrote:
The idea of a platform that's common for all languages still exists.
The issue here is, Visual Studio IDE has not caught up with the
commonality exposed by .Net Framework.

There are a few good reasons for this. You cannot expect a Visual
Basic programmer to completely change his/her style of programming and
learn everything overnight to cope up with a platform change.


It's not a big deal, but adding the events icon to the property window
in VB.NET wouldn't force anybody to change their style of programming,
and ditto for adding events to the text editor drop-down boxes in C#.

I understand they're different products and different teams, but if you
have to switch between VB and C# on a regular basis some of the
differences just seem gratuitous. Things like the lack of build events
in VB just seem strange, but things like the subtle differences in
intellisense drive me batty on a daily basis.
--
David
dfoster at
hotpop dot com
Nov 15 '05 #5

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

Similar topics

10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
2
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would...
3
by: Rene | last post by:
Hi, I'm expierenced with C++ and VB6 and learning C#. I tried some small application in VB.NET too. But I'm stuck with the IDE: Say in put a button on a form and I double click the button. C#...
1
by: Greg | last post by:
In my ASP.NET application I have a button that when pressed, data needs to be saved based on what the user typed in. I have other controls on the same page that should be updated as a result of the...
1
by: seanmayhew | last post by:
I have a form page that that while editing saves the data to an xml doc before submitting to db. On each page unload it saves the xmldoc as the user can add multiple items to the company like...
16
by: Hamed | last post by:
Hello I am developing a utility to be reused in other programs. It I have an object of type Control (a TextBox, ComboBox, etc.) that other programmers use it in applications. they may set some...
14
by: Hamed | last post by:
Hello It seems that I should implement ICloneable to implement my own clone object. the critical point for me is to make a control object based on another control object that all of its event...
5
by: J | last post by:
I am having problems dynamically adding more than one event handler to an input. I have tried the Javascript included at the bottom. The lines inp.attachEvent('onkeyup',...
4
by: Jonathan Wood | last post by:
I'm building a Web application but this question should be common to all C# applications. When I use a class, and I want to add event handlers or override base class methods, how do I know the...
5
by: Andy B | last post by:
I want to have page level access to a certain object but cant figure out how to do this. I create a class method that returns the object, but I cant get it to be global to the page. By global to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.