473,322 Members | 1,431 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.

Add event through IDE (VS2008 C#)

115 100+
This may be a silly question, but how can one add an event through the IDE?

i.e. I place a button on the form design time..double click it automatically adds the click event for me. How do I add another event say..VisibleChanged?

Usually I would edit Form1.Designer.cs myself, but for less experienced programmers it could get a little confusing (i.e. VS would overwrite changes if not done properly)
May 13 '09 #1
7 3422
Plater
7,872 Expert 4TB
Could you not just look at the events list in the properties section of the selected control?
May 13 '09 #3
Frinavale
9,735 Expert Mod 8TB
@Plater
How do you do this?

I was going a little crazy the other day when I tried doing this in a C# project....the events were not listed for the controls.
May 13 '09 #4
Plater
7,872 Expert 4TB
Sure they are? Select your control and go the proeprties window (Mine is anchored on the right hand side, yours could be anywere)
And then Click the lightening bolt to see the events. Same as the old VB was?
May 14 '09 #5
Frinavale
9,735 Expert Mod 8TB
Oh in the Designer View?!
I'll have to try that later...thanks
May 14 '09 #6
ShadowLocke
115 100+
@Plater
Thats exactly what i was looking for. Lol..i felt crazy that i couldnt find it. The site mentioned above shows exactly that.
May 14 '09 #7
2euge
1
Save, compile and add
May 15 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
20
by: Iouri | last post by:
Hi everybody, We are currently using VS2003 and now we are in the porcess of upgrading to the next Visual Studio version. Does somebody have a real life experience with VS2008? My boss wants to...
3
by: =?Utf-8?B?dGhlYXJ0aXN0c3RpbGxrbm93bmFzZ2Fydmlu?= | last post by:
I am using an EventTraceListener to display certain significant events in a VS2008 console app that runs on a server. I am able to write "Trace.TraceError" messages, as well as information and...
2
by: Academia | last post by:
I have vs2005 installed on the System disk and vs2008 installed on a different disk. I want to remove VS2005. I read one time about some problem with uninstalling vs2005 after vs2008 is...
6
by: Dean Slindee | last post by:
When you drop a button on a form, a Click event is created by the designer. Within the Click event certain event parameters are defined: Private Sub btnInsert_ButtonPressed(ByVal sender As...
8
by: Frank Hauptlorenz | last post by:
Hello out there, I changed an existing and good working webservice from an wsHttpBinding to an NetTcpBinding. This is working (after trying some time) and has real a better performance! But...
3
by: =?Utf-8?B?U2F2dm91bGlkaXMgSW9yZGFuaXM=?= | last post by:
I have checked everything, events inside VS2008, or deleting the event and recreating it but nothing worked. I can't even make a breakpoint stop inside the event handler. Is it a bug of VS2008?
4
by: BillE | last post by:
I have found articles on line about using word interop for spell checking with visual studio applications. Most of the articles are several years old, though - VS2003, maybe 2005. I couldn't...
3
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, There is a fatal error while installing VS2008 SP1 on Vista 64bit Business edition. The last line of error log is Installation failed with error code: (0x80070643) I tried to...
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...
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: 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
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
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.