This is my first time development using C# language.I find out that the control is a bit difference between C# and VB language.
Under the VB language development, once the button is created, i can choose the button and see all the available for the button.I just need to click on the function that i want and the function will be automatically created in the code.
However, this function is not available for C# language development.I feel weird and what should I do actually to have the click event created in code?I have to write the click event myslef? And also sometimes in development, we need to see what available
function for a control so that we can know what can we do.If available function for controls is not shown in C# language development, then it must be hard for C# programmer to do their coding.I feel that this is not the way.
This is a VB.Net only feature (till VS2010). I am not sure whether this is available for C# in VS2012 or not. One option is to create it manually, other option is to use the design window (select the button and press F4 key then in the properties window
click on the events and choose the event you would like to handle)
Hope it helps.
Praba R.
Mark the response which answers your question.
Marked as answer by johnsonlim026 on Nov 23, 2012 07:05 AM
johnsonlim02...
Member
118 Points
287 Posts
How to create a button click function under C# language
Nov 23, 2012 12:42 AM|LINK
Hi All,
This is my first time development using C# language.I find out that the control is a bit difference between C# and VB language.
Under the VB language development, once the button is created, i can choose the button and see all the available for the button.I just need to click on the function that i want and the function will be automatically created in the code.
However, this function is not available for C# language development.I feel weird and what should I do actually to have the click event created in code?I have to write the click event myslef? And also sometimes in development, we need to see what available function for a control so that we can know what can we do.If available function for controls is not shown in C# language development, then it must be hard for C# programmer to do their coding.I feel that this is not the way.
Attached here is the screen capture.
Does anyone has idea on this?Help Please!!
Prabakaran_r
Member
672 Points
111 Posts
Re: How to create a button click function under C# language
Nov 23, 2012 01:08 AM|LINK
This is a VB.Net only feature (till VS2010). I am not sure whether this is available for C# in VS2012 or not. One option is to create it manually, other option is to use the design window (select the button and press F4 key then in the properties window click on the events and choose the event you would like to handle)
Hope it helps.
Mark the response which answers your question.
johnsonlim02...
Member
118 Points
287 Posts
Re: How to create a button click function under C# language
Nov 23, 2012 07:05 AM|LINK
Hi Prabakaran, thanks it is working.
I heard that there is still 1 way to do it. That is typing the function manually and intelli sence will help you complete the rest.
I have try this but there is no intelli sence. when i type this protected void btnLogin_c
Do you have any idea?
</div>