473,698 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1532
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.P age
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.c om
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
4643
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 = eval("document.imageForm.move" + ""); alert(moveElement); if (document.imageForm.select_all.checked) {
4
4964
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 the mouse? Bit of a stranger request but can it be done? :) Cheers Ryan
9
1835
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 for example, the click event of a form object so as to write a method for that event. Thanks for your help on this Regards Ant
2
1156
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 contains logged events: +--------------+------------------+------+-----+---------------------+-------+ | Field | Type | Null | Key | Default | Extra |...
2
1132
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
1287
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. Searching google I found out that the problem is caused by the structure of the ASP.Net event handling: The clicked button does not exist anymore after the postback, so no event could be fired.
4
1216
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 user controls and highlight them or select them (like rubber band) by mouse-down-drag-mouse-up events. I am trying to capture coordinates of mouse down event on the panel holding the user controls. However, since panel is under the controls, I...
2
1521
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
1352
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 its one of those in the table. Now he doesn't drop the list and select it - he types in all 17-characters one-at-a-time. Is there any way to tell he did that in the control's AfterUpdate event property code? That is, type each
0
8678
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9166
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4621
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.