Solved

How to use hidden buttons

Posted on 2008-06-18
5
176 Views
Last Modified: 2013-12-16
I have an inputbox class and I want to be able to submit the information using the

myform.acceptbutton = myform.mybutton

Hitting the enter key automatically will submit the information, but it doesn't work when the button is hidden or not visible.  I was wondering if there was a way to use the button when it is hidden.  Thank you.
0
Comment
Question by:Nitinol
  • 3
5 Comments
 
LVL 16

Expert Comment

by:burakiewicz
ID: 21817367
Turn key preview on and You can check if the user hit the enter key and then call the buttonclick or method from there
like myform.mybutton.click();
0
 

Author Comment

by:Nitinol
ID: 21817538
hmm...I'll get back to you and see if it works, thanks.
0
 

Author Comment

by:Nitinol
ID: 21817592
nope, the events are not methods, so that won't work.  I might just work something out with the onkeypress event handler instead of using the button.  I need, however, to get a dialogue result.

further help would be much appreciated.
0
 

Accepted Solution

by:
Nitinol earned 0 total points
ID: 21818173
I found an alternate solution using keypress event handler
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question