referencing command button event visual studio 2005

Discuss all aspects of programming here.

Moderator: The Mod Squad

referencing command button event visual studio 2005

Postby Michaeljay2 » Thu Oct 02, 2008 9:30 am

I used to do some programming in visual basic 6 and decided to try the visual studio and ran into something I can't figgure out. I used to be able to directly reference the click event on a command button eg "if but1.click = true then" but that dosen't work in vs. It seems to mention something about a delagate but I can't find anything in the help files relating to this. I have gotton things to work by using a radio button's check event but that doesn't seem right and I thought I'd ask the question here.
Michaeljay2
Pilgrim
Pilgrim
 
Posts: 15
Joined: Sun Jan 08, 2006 4:50 pm

Postby sjjoseph » Sat Jan 09, 2010 5:47 am

Hi Michaeljay2,
As you said you are new to visual studio.
What code you have written is but1.click=true it means the button is only visible and you can write some code in its click event for click the button.
sjjoseph
Pilgrim
Pilgrim
 
Posts: 3
Joined: Sat Jan 09, 2010 5:38 am


Return to Programming

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests