473,322 Members | 1,523 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,322 software developers and data experts.

Selecting an event

Ant
Hi, I'm very new to C# & .NET
I'm having trouble finding events for controls placed on a form. I'm used to
VB6 in which the control was chosen from a drop down box on the top left &
the event was chosen from a drop down box on the right. These two boxes
appear in the C# IDE, however, the left hand box only offers one selection,
the selection being the form1, & the right box offers what I'm guessing is a
reference to all the objects definitions, represented by a little blue
rectangle and (?) a lock symbol, and a single event (click in the case of
buttons) for that object, represented by a little purple rectangle. Can
anybody help me locate all the other events like say, LostFocus etc.

Thank you very much
Ant
Nov 17 '05 #1
3 951
Hi Ant,

See my reply in the General newsgroup :)
On Sat, 25 Jun 2005 12:02:01 +0200, Ant <An*@discussions.microsoft.com> wrote:
Hi, I'm very new to C# & .NET
I'm having trouble finding events for controls placed on a form. I'm used to
VB6 in which the control was chosen from a drop down box on the top left &
the event was chosen from a drop down box on the right. These two boxes
appear in the C# IDE, however, the left hand box only offers one selection,
the selection being the form1, & the right box offers what I'm guessing is a
reference to all the objects definitions, represented by a little blue
rectangle and (?) a lock symbol, and a single event (click in the case of
buttons) for that object, represented by a little purple rectangle. Can
anybody help me locate all the other events like say, LostFocus etc.

Thank you very much
Ant


--
Happy coding!
Morten Wennevik [C# MVP]
Nov 17 '05 #2
Ant
Hey Morten,
Once again thanks. I just had a good look around the events. Wow, so much
more flexible than old VB! Once I got my head around the fact that you name
your own event procedures, which must then be assigned to the controls event
in the namespace, it all made sense. At first i was wondering how an event
could still be firing whilst sharing a differnt name to it's control. It's
great.
Thank you.
Ant

"Morten Wennevik" wrote:
Hi Ant,

See my reply in the General newsgroup :)
On Sat, 25 Jun 2005 12:02:01 +0200, Ant <An*@discussions.microsoft.com> wrote:
Hi, I'm very new to C# & .NET
I'm having trouble finding events for controls placed on a form. I'm used to
VB6 in which the control was chosen from a drop down box on the top left &
the event was chosen from a drop down box on the right. These two boxes
appear in the C# IDE, however, the left hand box only offers one selection,
the selection being the form1, & the right box offers what I'm guessing is a
reference to all the objects definitions, represented by a little blue
rectangle and (?) a lock symbol, and a single event (click in the case of
buttons) for that object, represented by a little purple rectangle. Can
anybody help me locate all the other events like say, LostFocus etc.

Thank you very much
Ant


--
Happy coding!
Morten Wennevik [C# MVP]

Nov 17 '05 #3

Hi,

This seems to catch out lots of ex vb programmers as well. Can anyone
recommend any specific online resources which I can point our
transitionals at?

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #4

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

Similar topics

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...
3
by: Pawe³ | last post by:
I'm desinging a graphical interface and I frequently take advantage of the double click event. Unfortunately in most browsers double clicking also involves selecting and I would like to avoid that...
6
by: aaa | last post by:
Hi I am trying to create a read-only DataGrid that would always have current row selected. Currently, I am using method: public void SelectDataGridRow(DataGrid dg) { if (dg.CurrentRowIndex >...
2
by: David Anderson | last post by:
I'm working on a Windows app that has a ListView containing a bunch of items. When the user clicks on an item, the app displays the item'd details. The user then has the opportunity to edit these...
1
by: orekinbck | last post by:
Hi There I have a datagrid whose main purpose in life is to provide a nice way for users to make a single choice from a list. The grid is read only, single row select and has its data source as...
0
by: Steven W | last post by:
I'm trying to setup a datagrid in a custom control where I can select the row with the Select column hidden and have it call the "SelectIndexChanged" event. In the "SelectIndexChanged" I just want...
1
by: Nathan Sokalski | last post by:
When testing a form of mine which uses RequiredFieldValidators that have the Display property set to "Dynamic" the ErrorMessage property is automatically removed when an entry is completely typed...
3
by: larry mckay | last post by:
anyone have the code to select and listview item or row (subitems) after a doubleclick event from a listview. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate...
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: areef.islam | last post by:
Hi, I am kinda new to javascript and I am having this problem with selecting multiple options from a select tag. Hope someone can help me out here. here is my code...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.