tagged [button]

How can I check whether a radio button is selected with JavaScript?

How can I check whether a radio button is selected with JavaScript? I have two radio buttons within an HTML form. A dialog box appears when one of the fields is null. How can I check whether a radio b...

3 Aug at 21:38

C# - Image as a clickable button

C# - Image as a clickable button I want to make some custom controls, with images as buttons. I don't want images ON buttons - I want to totally replace the button with an image read from a file. Is i...

25 Apr at 09:0

How to select a radio button by default?

How to select a radio button by default? I have some radio buttons and I want one of them to be set as selected by default when the page is loaded. How can I do that?

11 Sep at 07:30

Can I store an Object inside a button in C#

Can I store an Object inside a button in C# I am creating Buttons dynamically in my code, is there a way I can store a custom object in my button so I can use it when I press this button ?

25 Jul at 20:8

How do I create 5 buttons and assign individual click events dynamically?

How do I create 5 buttons and assign individual click events dynamically? I need to create 5 buttons dynamically on windows form and each button should respond to click event. I tried it but all butto...

27 Mar at 06:29

Difference between <input type='submit' /> and <button type='submit'>text</button>

Difference between and text There are many legends about them. I want to know the truth. What are the differences between the two following examples? 1. 2. text

6 Dec at 14:48

How to clear text area with a button in html using javascript?

How to clear text area with a button in html using javascript? I have button in html If I have an external javascript (.js) function, what should I write?

27 Jun at 04:41

Run a shell script with an html button

Run a shell script with an html button I want to launch a bash script when a button is pressed on a website. This is my first attempt: But no luck. Any suggestions?

4 Jun at 09:2

How do you click a button in a webbrowser control?

How do you click a button in a webbrowser control? For example, using code and no user input, how would I have my program click the "Search" button on google (assuming I've already filled in the searc...

25 Aug at 19:47

Button that refreshes the page on click

Button that refreshes the page on click I need a button that will refresh the page on the user's click. I tried this: or But neither worked.

27 Jun at 18:18

Changing button color programmatically

Changing button color programmatically Is there a way to change the color of a button, or at least the color of the button label programmatically? I can change the label itself with But how to change ...

15 Apr at 19:44

Winforms Bind Enum to Radio Buttons

Winforms Bind Enum to Radio Buttons If I have three radio buttons, what is the best way to bind them to an enum which has the same choices? e.g.

How to get the selected radio button value using js

How to get the selected radio button value using js I am using this code to get the value of currently selected radio button, but it doesn't work. How to get the currently selected radio button value ...

26 Sep at 16:22

Auto-click button element on page load using jQuery

Auto-click button element on page load using jQuery If I wanted to auto-click a button element on page load, how would I go about this using jQuery? The button html is

How can I create a dynamic button click event on a dynamic button?

How can I create a dynamic button click event on a dynamic button? I am creating one button on a page dynamically. Now I want to use the button click event on that button. How can I do this in C# ASP....

12 Oct at 14:45

How to get value of Radio Buttons?

How to get value of Radio Buttons? I have a group box contains radio buttons eg. > Male Female i want my code to get the selected value of radio button and copy it to string type variable kindly use s...

20 Jun at 09:12

Make an Android button change background on click through XML

Make an Android button change background on click through XML Is there a way to specify an alternative background image/color for a Button in the XML file that is going to be applied `onClick`, or do ...

29 Nov at 06:46

Only show X and minimize button on wpf

Only show X and minimize button on wpf I don’t want the user to resize the window so I did `ResizeMode="NoResize"`. But then the minimize button also disappears and only the `X` button is visible. Is ...

4 May at 21:21

How to set OnClickListener on a RadioButton in Android?

How to set OnClickListener on a RadioButton in Android? I have two `RadioButton`s inside a `RadioGroup`. I want to set `OnClickListener` on those `RadioButton`s. Depending on which `RadioButton` is cl...

7 Aug at 14:47

C# Windows Form Application Transparent button

C# Windows Form Application Transparent button I'm new to C#. I'd like to create an invisible button, but they are click-able in C# windows form application. Is there a way? I tried BackColor to Trans...

26 May at 04:41

How to make a button appear as if it is pressed?

How to make a button appear as if it is pressed? Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off switch. `ToolStripButton` has th...

How do I change the color of radio buttons?

How do I change the color of radio buttons? I mean, a radio button itself consists of a round shape and a dot at the center (when the button is selected). What I want to change is the color of both. C...

20 Jun at 03:56

ToggleButton in C# WinForms

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....

11 Nov at 20:58

How to add a StackPanel in a Button in C# code behind

How to add a StackPanel in a Button in C# code behind How to add a in a Button using c# code behind (i.e. convert the following XAML to C# )? There is no `Button.Children.Add`...

23 May at 11:59

Click a button programmatically

Click a button programmatically I want to code a `button` that programmatically clicks the other `button` when I click it. For example, I have two buttons named `Button1` and `Button2`, what I wanted ...

7 Nov at 08:51