Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
GeneralRe: foreach and IEnumerator Pin
Pete O'Hanlon30-Apr-08 11:30
mvePete O'Hanlon30-Apr-08 11:30 
GeneralRe: foreach and IEnumerator Pin
George_George1-May-08 2:33
George_George1-May-08 2:33 
GeneralRe: foreach and IEnumerator Pin
Pete O'Hanlon1-May-08 8:41
mvePete O'Hanlon1-May-08 8:41 
GeneralRe: foreach and IEnumerator Pin
George_George1-May-08 22:05
George_George1-May-08 22:05 
GeneralRe: foreach and IEnumerator Pin
George_George1-May-08 2:32
George_George1-May-08 2:32 
GeneralRe: foreach and IEnumerator Pin
George_George1-May-08 2:31
George_George1-May-08 2:31 
Question? implement a COM Components method. Pin
lgatcodeproject29-Apr-08 23:52
lgatcodeproject29-Apr-08 23:52 
AnswerRe: ? implement a COM Components method. Pin
Simon P Stevens29-Apr-08 23:55
Simon P Stevens29-Apr-08 23:55 
lgatcodeproject wrote:
In VB we create a variable and then set an instance of the class object to the varibale, finally browsing this variable with a dot operator would reveal the methods exposed by the class. How do we achieve the same in C#?


The same works in C#. You use the New operator to create a new instance.

MyClass myObject = new MyClass();
myObject.SomeMethod();


If you want to do something on a button click, you just find the handler for the click event for the button, and put the code in their.

Post your code. Which bit are you having trouble with?

Simon

QuestionRe: ? implement a COM Components method. Pin
lgatcodeproject30-Apr-08 0:14
lgatcodeproject30-Apr-08 0:14 
AnswerRe: ? implement a COM Components method. Pin
Simon P Stevens30-Apr-08 0:49
Simon P Stevens30-Apr-08 0:49 
AnswerRe: ? implement a COM Components method. Pin
Rob Graham30-Apr-08 4:37
Rob Graham30-Apr-08 4:37 
QuestionHow to show resource files in my usercontrol 's property Pin
Guru Call29-Apr-08 23:23
Guru Call29-Apr-08 23:23 
AnswerRe: How to show resource files in my usercontrol 's property Pin
J a a n s30-Apr-08 1:32
professionalJ a a n s30-Apr-08 1:32 
QuestionSqlserver Triggers Pin
Member 400849229-Apr-08 23:02
Member 400849229-Apr-08 23:02 
AnswerRe: Sqlserver Triggers Pin
Christian Wikander29-Apr-08 23:07
Christian Wikander29-Apr-08 23:07 
AnswerRe: Sqlserver Triggers Pin
Christian Graus29-Apr-08 23:23
protectorChristian Graus29-Apr-08 23:23 
AnswerRe: Sqlserver Triggers Pin
Nissim Salomon30-Apr-08 2:14
Nissim Salomon30-Apr-08 2:14 
AnswerRe: Sqlserver Triggers Pin
Rob Graham30-Apr-08 4:44
Rob Graham30-Apr-08 4:44 
QuestionForce TextBox to show cursor Pin
Christian Wikander29-Apr-08 23:02
Christian Wikander29-Apr-08 23:02 
AnswerRe: Force TextBox to show cursor Pin
Zoltan Balazs29-Apr-08 23:20
Zoltan Balazs29-Apr-08 23:20 
GeneralRe: Force TextBox to show cursor Pin
Christian Wikander29-Apr-08 23:23
Christian Wikander29-Apr-08 23:23 
GeneralRe: Force TextBox to show cursor Pin
Simon P Stevens29-Apr-08 23:52
Simon P Stevens29-Apr-08 23:52 
AnswerRe: Force TextBox to show cursor Pin
Christian Graus29-Apr-08 23:24
protectorChristian Graus29-Apr-08 23:24 
GeneralRe: Force TextBox to show cursor Pin
Christian Wikander29-Apr-08 23:26
Christian Wikander29-Apr-08 23:26 
GeneralRe: Force TextBox to show cursor Pin
Christian Graus29-Apr-08 23:32
protectorChristian Graus29-Apr-08 23:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.