button

Best way to deal with users double-clicking buttons in a winforms app?

I'm working on a WinForms app and I have a user control in it. The buttons in the user control raise events up to the form to be handled by other code. One of the buttons starts some processses that will cause problems if they run simultaneously. I have logic in the code to manage the state so typically a user can't run the process if...

Hide a form's taskbar button without using WS_EX_TOOLWIN

I need to hide a Windows form from the taskbar but I can't use WS_EX_TOOLWINDOW because I need the system menu and min/max buttons on the form's title bar. If I switch the form to a tool window at runtime the form skinning is stuffed up. From searching on the Web I see that VB has a ShowInTaskbar property and I'm wondering if this woul...

Shorten the code for a lot of buttons in Prototype

Hi, I have a lot of buttons and by clicking on different button, different image and text would appear. I can achieve what I want, but the code is just so long and it seems very repetitive. For example: var aaClick = false; $("aa").observe('click', function() { unclick(); $('characterPic').writeAttribute('src',"aa...

Copying specific rows from a sheet tab to another sheet tab by just clicking a button

Hi, Can anyone help me with this...I need to copy a set of rows from one tab to another tab of the same excel document by just clicking a button. Also, can I also get information on how can I copy a set of rows that are hidden and paste it in the same tab without copyng the "hidden" format? Thanks!!! ...

ToggleButton in C# WinForms

Is it possible to create a toggle button in C# WinForms? I know that you can use a CheckBox control and set it's Appearance property to "Button", but it doesn't look right. I want it to appear sunken, not flat, when pressed. Any thoughts? ...

How do you add an ActionListener onto a JButton in Java

private JButton jBtnDrawCircle = new JButton("Circle"); private JButton jBtnDrawSquare = new JButton("Square"); private JButton jBtnDrawTriangle = new JButton("Triangle"); private JButton jBtnSelection = new JButton("Selection"); I would like to add action listeners to these buttons, so from a main method I can call actionperformed on ...

Disable button after submit

I'm trying to disable a button when a user submits a payment form and the code to post the form is causing a double post in firefox. This problem does not occur when the code is removed, and does not occur in any browser other than firefox. Any idea how to prevent the double post here? System.Text.StringBuilder sb = new StringBuilder(...

Reset button to the SSRS Report

Hi, Is there any possibility to have a reset button in SSRS parameter window. Thanks in Advance ...

DOM issue in Safari with buttons

Hi, I was wondering if anyone has seen this issue before. I have two button on a webpage. When I navigate away from the page and hit the back button to return the value of one button is placed in the value of the other. E.g <input class="SmallData" type="submit" id="logButton" value="Log In" tabindex="93"></input> <input class="btn"...

WPF MouseLeftButtonUp Not Firing

Strange happenings in WPF... When I set the event to MouseUp I can get it to fire when I right-click the button. But this won't fire with either click! <Button MouseLeftButtonUp="btnNewConfig_MouseUp" Name="btnNewConfig"> <StackPanel Orientation="Horizontal"> <Image Source="Ico...

Flex Icon on Button sizing [Design]

I would like to size the width of my button according to its icon image. I tried to force padding to 0 with no success. In a tile <mx:Button id="m1" icon="@Embed('m1.png')"/> See the result http://img513.imageshack.us/my.php?image=iconkg3.png How could i change this gap ? Thanks. ...

Internet Explorer submit button styling

I'm making a web application and I got the design for it from a sub-contracted design company. The design is pretty nice, I like it, but I've stumbled across one thing I'm not sure how to implement nicely. The thing is - they've redesigned the looks of buttons to match the page style. So now I have two images - button up and button down...

How to capture events from a dynamically created button control in asp.net?

How can a program capture generates events from a dynamically created button control in asp.net? ...

How to tell if a button click event was triggered by keyboard or mouse in WPF?

Is there a simple way to tell what triggered Click event of a Button apart from setting multiple flags in Mouse/Key Up/Down event handlers? I'm currently only interested in distinguishing mouse from everything else, but it would be nice to handle Stylus and other input types if possible. Do I have to create my own button control to achie...

WM_GETTEXT button action

Hi, I would like to tie an action to a PocketPC button (biggest button at the center - don't know how it is called). I tried to tie the action to WM_GETTEXT message, but this message is sent on every key press and don't know how to add an action just to the specific button. Does anyone know how this could be done? Thanks! ...

loading another movie in a css tag from a swf in the same page

how do i make abutton in a flash movie load amother flash movie in a css tag below in the same html page? ...

WPF How to get a UserControl to inherit a Button?

I created a UserControl which consists of a couple ellipses and labels. I added it just fine to another form and things were looking pretty snazzy. Then I went to start adding some event handlers and discovered that the control I made did not expose a Click event. Oops. Easy to fix, right? Just go back to the code-behind on the User...

Watin HELP: how do i get the list of button using watin?

Hi, How can i use Watin to get the list of available button on a website? How do the watinTestRecorder do it? thanks ...

IE sends inner HTML when clicking on a button element

I have the following html in my webpage (simplified). <button type="submit" name="action" value="ButtonA">Click Here</button> In Firefox, it submits "ButtonA" as the value for the "action" form value. However, in IE7, it submits "Click Here". Is there any way to resolve this? I don't want to use input tags, because I need to be abl...

Time delay on click

Can anyone send me javascript code on how I can construct a time delay from the time I click a button on a page to the time the function called by the button click is executed. I am a novice with javascript, and I have some code that performs a function when I click a button, and I just want to have a time delay. Thanks. ...