It appears you have not yet registered with our community. To register please click here...


programming VB

This is a discussion on programming VB within the Visual Basic forums. Topic: Can someome help I'm new to visual studio .net I was wondering can you get a image button to ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Search this Thread Postbit Seperator Display Modes
Old 07-07-2007, 11:03 PM   #1 (permalink)
 
Status: Junior Member
Join Date: Jul 2007
Posts: 3
Trader Rating: (0)
mr. Adam is on a distinguished road
TD$: 0.00
Donate
Default programming VB
Can someome help I'm new to visual studio .net I was wondering can you get a image button to fire when you hit the return key programming in VB
mr. Adam is offline   Reply With Quote
Old 08-27-2008, 04:20 PM   #2 (permalink)
 
Status: Junior Member
Join Date: Aug 2008
Posts: 8
Trader Rating: (0)
jwright is on a distinguished road
TD$: 50.00
Donate
Default Re: programming VB
Here you go. You need to set the defaultbutton property on the form tag to your ImageButton.

<body>
<form id="form1" runat="server" defaultbutton="_ibtnMyButton">
<div>
<asp:ImageButton ID="_ibtnMyButton" runat="server" ImageUrl="~/Images/logo.gif" OnClientClick="javascript:alert('Boo');" />
</div>
</form>
</body>
jwright is offline   Reply With Quote
Old 10-09-2008, 08:49 PM   #3 (permalink)
 
Urbanmyth's Avatar
 
Status: Forums Moderator
Join Date: Jun 2008
Posts: 145
Trader Rating: (0)
Urbanmyth is on a distinguished road
TD$: 760.00
Donate
Default Re: programming VB
Thanks alot for the code Jwright!
Urbanmyth is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0