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

Selecting events

I'm a VB.Net developer learning C# so this is another newbie question....
(using 1.1)

I posted a question about how to paste definitions for events in C# because
in VB we use the vs.net left dropdown for the object (Page, btnpush, etc)
and the right dropdown for the event we want. Simple!

I was told that in C# the left dropdown has basically nothing, we choose the
object in the right dropdown, and then push the little lightning icon for
the events for that object. That works for a lot of things but what about
Page objects? I want to paste the event definitions for Page_PreRender for
instance. The right dropdown does not have the Page object listed (as does
the left dropdown in VB).

Thanks,
T
May 15 '06 #1
1 1511
When using ASP.Net and C# you can get to the events by going to the page's
code behind and typing
"override" and a space. A intellisense dropdown list will appear giving a
list of all the base events, methods and properties of the System.Web.UI.Page
class. Here you can select OnPreRender and the stub event will appear in the
IDE for you to override with your own code. There are other ways to override
also.

When using Windows Forms you can select a control in the designer and view
the properties. The properties window has an "events" button at the top to
view only events. Select this and you will be presented all the events for
the control. Double click on the event name and the event stub will appear in
the IDE.

Hope this helps.

SMC750
www.certdev.com

Tina wrote:
I'm a VB.Net developer learning C# so this is another newbie question....
(using 1.1)

I posted a question about how to paste definitions for events in C# because
in VB we use the vs.net left dropdown for the object (Page, btnpush, etc)
and the right dropdown for the event we want. Simple!

I was told that in C# the left dropdown has basically nothing, we choose the
object in the right dropdown, and then push the little lightning icon for
the events for that object. That works for a lot of things but what about
Page objects? I want to paste the event definitions for Page_PreRender for
instance. The right dropdown does not have the Page object listed (as does
the left dropdown in VB).

Thanks,
T


--
smc750
www.certdev.com

Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200605/1
May 15 '06 #2

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

Similar topics

9
by: Phil Powell | last post by:
I am producing a form using PHP on the back end and Javascript on the front end. The resulting script will come to the browser as follows: <script> <!-- function selectAll() { moveElement =...
4
by: RelaxoRy | last post by:
Is there any way to stop someone getting their mouse and selecting text on a page (without making the text an image of course). Is it possible to trap and stop click-and-drag functionality from...
9
by: Ant | last post by:
Hi, I'm new to .NET, though program with VB. I'm used to selecting an event from the right side drop down box of the VB IDE. That seems to have changed with ..NET. How do you choose an event, say...
2
by: Paul Marshall | last post by:
Hi, I'm doing some analysis on a database of log messages and wondered if anyone could help me pull out the data I need (I'm a MySQL newbie) I have the following table called message which...
2
by: Mike | last post by:
Hi, I'm new to C# and I can't find events for my controls in the drop down box in the leftside like in vb.net!!!? Thanks -- Regads, Rochdi
2
by: Achim Domma (Procoders) | last post by:
Hi, to allow my user to select from a list of values which are calculated on the fly, I tried to generate a list of LinkButton controls on the fly. But the connected event does not fire. ...
4
by: Dino M. Buljubasic | last post by:
I have a form and a panel on the form that holds 24 user controls each one representing an hour (0 - 23). The panel is completelly covered with the user controls. I need to be able to select...
2
by: Ryan Adler | last post by:
I have a terrible headache from this problem. Perhaps someone can help. My XML is formatted like this: <events> <event> <starts-at>123456<starts-at/> <event> ... <events/>
2
by: MLH | last post by:
Lets say I have a combo box control on a form whose recordsource is a table called tbl_PotentialVINs. For argument's sake, say the table has 10 records. A user types a VIN into the control - say...
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.