Most voted "button" questions
"Button" means "button" in English. Use this tag to subjects related to form buttons or buttons built in other ways and that do some action when clicked.
Learn more…204 questions
Sort by count of
-
7
votes1
answer224
viewsButtons with different appearance at design and runtime
Has anyone ever had the above problem? At development time the button design is normal. However, after compiling and running the application, they look like buttons from the time of Windows98.…
-
7
votes2
answers56156
viewsHow to center all content of a div - Bootstrap
Hello. I am learning how to use the bootstrap. In my studies I had a question. If there’s any way to centralize the entire contents of a div. I have sample codes... <!DOCTYPE html>…
-
6
votes1
answer393
viewsonClick on dynamic button causes error "Cannot resolve constructor Intent"
I’m trying to create a dynamic button, and in it put the click function. Button btnJogarNovamente; btnJogarNovamente = new Button(this); btnJogarNovamente.setLayoutParams(new…
-
5
votes1
answer2999
viewsCreate button via code
It is possible to create a Button through code, rather than design mode (xml)? For example: I will create a screen with a EditText, enter a number, and click on a Button. After that, it will be…
-
5
votes2
answers1770
viewsDifference between the types of buttons
What is the difference between the following components ? <button type="button">Click Me!</button> <asp:button ID="cmdAvancar" runat="server" >Click Me!</asp:button>…
-
5
votes2
answers690
viewsChange property of multiple Uttons simultaneously
Hello, I am developing a project of a dental clinic in c# in which uses several buttons inside a picturebox to select the teeth, so I decided to put several Buttons with certain opacity and the…
-
5
votes1
answer1315
viewsDynamically create buttons
I’m making a screen where register some users. On this screen, I have a ScrollView with a Gridlayout inside, with 2 columns. Each column has 1 button, which when clicking, opens a link, in this…
-
5
votes4
answers844
viewsHow to Make Material Design Style Button Only with CSS
On Android and on design system Material Design is common to see this button they call Ripple Buttom. https://material-components.github.io/material-components-web-catalog/#/Component/ripple But it…
-
4
votes1
answer540
viewsHow to make Blur effect on button?
Is there any way to 'Blur' effect on an image button using C# (Windows Forms)? I know this is possible with WPF, but I have no way to change it now. If not possible, there is something that gives me…
-
4
votes1
answer1780
views'Copy text' button in C#
I’m new to C#, and wanted to create a button that when clicked, it will copy the text described in that same button. If I didn’t make myself clear, imagine button has a text inserted in it (eg:…
-
4
votes2
answers85
viewshelp here div and html functions
I have this code, when I pass the mouse over the div it moves, but I wanted it to happen when I hit the button: <head> <style> .square{width:100px ;height:100px ;background:red…
-
4
votes2
answers775
viewsWhat is the real difference between these three ways of changing from one Activity to another?
Guys I have knowledge of three forms that through a simple click on a given button, it passes from the current Activity to another. I would like to know which of these three ways is the best taking…
-
3
votes4
answers11622
viewsIs it possible for a Javascript function to call a method that is in the Behind code of the page?
I have a button and I wanted to program the click of it, and when I wear a <asp:Button> I program the click of him in the code Behind. Now I’m wearing a button normal. I know almost nothing…
-
3
votes2
answers1863
viewsDisable form Submit button inside a modal bootstrap window
I have tried several ways to disable the Submit button of a form that is inside a modal bootstrap window, but I was unsuccessful. I have already researched the documentation but I have not found it.…
-
3
votes3
answers7584
viewsCalling the Controller Method
I’m doing a project for the College, and I’m having a hard time understanding how to create a button and call an Actionresult in the Controller, and I was wondering if the action needs to be in the…
-
3
votes2
answers978
viewsHow to find the name of a button by source code?
I’m working with a library python calling for Splinter, that simulates a web browser. I’ve read about how to use it, and to click a button, just give a command that involves the name of the button.…
-
3
votes1
answer99
viewsGrab a button on Splinter (python)
For most of the buttons I try to grab using Splinter, the commands that are on this site (https://splinter.readthedocs.io/en/latest/finding.html) is enough. But for this particular button, I can’t…
-
3
votes2
answers1424
viewsHow to view data from a query in Modal?
I have a button type="button" and I want him to capture information from my Texts for me to make an appointment at Mysql and display this result in a modal. However, I’m only able to capture this…
-
3
votes3
answers944
viewsAdd Text In textbox at a certain position C#
Hello, I am developing a dental software which one of the functions is to select a tooth on a button and add the name of this tooth in a textbox. Until then no problem, but the point is that this…
-
3
votes1
answer1958
viewsWhat is the real difference between a button and an imageButton?
The image I used to do the tests is a simple gear of dimensions 100x100 with transparent background. At first I noticed that differently from the Button, by creating a Imagebutton you are bound to…
-
2
votes2
answers3013
viewsChange variable value after clicking PHP button
Guys, I need you to $i change value to $i++ each click on the "Go". That is, I click the button and it will appear "1", when I click again it will appear "2", and so on. How can I do? <form…
-
2
votes1
answer124
viewsHow to set the size of a button in centimeters?
I need to place a button with height and width in centimeters, where the size is maintained if accessed in different screen resolutions. Is that possible? If so, how?
-
2
votes1
answer712
views -
2
votes2
answers4495
viewsHow to disable a button and to activate it, click on another button?
I created a calculator using Windows Forms, it ran perfectly, however when clicking the operation button before the number button (to insert a value in the display) an error happens that closes my…
-
2
votes1
answer56
viewsDisabling Actionlink CLICK event
I have the following link in my view : @Html.ActionLink(" ", "Editar", new { id = item.ID }, new { @id = "btnEditar" }) And when loading the page, I have to block this link, according to the user’s…
-
2
votes1
answer1067
viewsFind out python link
I’m making a Scrapping web in python and sometimes I come across some links and/or Buttons that are not with the real address of the url so you will be redirecting if you click. In this case, if I…
-
2
votes2
answers1618
views -
2
votes1
answer92
viewsButton with glyphicon-remove with size problem
Please see this link in demo: http://www.bootply.com/eiG8eKm3Ao I’m trying to center the "X" inside the red button. Code: <button id="del_photo" type="button" style="width:20px;height:20px"…
-
2
votes2
answers661
viewsTEXT Inside a button - Materialize CSS
I’m having a hard time breaking text inside a button. I make use of materialize css but in general I have no idea how to put all the text I want inside a button, it always cuts the end of my titles…
-
2
votes1
answer47
viewsAssociate two image
I wanted to create a app that clicking on an image changed your image and was waiting to click on another image. If the two images were equal (with the same value) activates a button that gave the…
-
2
votes4
answers8782
viewsHow to center text vertically
Can someone help me center the button texts? I’ve tried everything I found on the Internet and nothing works.…
-
2
votes2
answers1406
viewsRounded Tkinter button
Is there any way to round the button tips? Or even leave it as a circumference? Like this one for example:…
-
2
votes1
answer2305
viewsPass and grab the Commandparameter from a Xamarin Forms button
How to pass a value that is in one Binding for CommandParameter of a button that is inside a ListView to the ViewModel ? The button is accessing the Command but I don’t know if this is how the…
-
2
votes1
answer156
viewsHow to make a button clickable after a certain time on Hover?
For the button to be clicked the user needs to keep the mouse on it for 2 seconds.
-
2
votes2
answers412
viewsReuse code on multi-button onClick
I’m developing an app where it will contain several buttons. I need your help to see if I can improve the code. Actions do the same thing just change the background color and pass me the button…
-
2
votes1
answer1359
viewsCalling functions/procedure via buttons using Object-Oriented PHP
I’m starting in PHP O.O and I’m having difficulty calling the functions that are in the class through HTML buttons. In fact, it is not in calling but in setting the values that are in the function.…
-
2
votes1
answer1155
viewsHow to make CRUD buttons on datatables?
I’m doing server-side activation and I want to know how to make some buttons from a basic CRUD, in the last row, like this: My code <script type="text/javascript" language="javascript"…
-
2
votes4
answers16718
viewsHow to put a space between two buttons?
I have this code: <!DOCTYPE HTML> <HTML> <head> </head> <header> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </header> <body>…
-
2
votes1
answer2144
viewsButton to force Download without showing your way
Hello, I have a main html site meusite.com that can be found by the search engines' robots and made meusite.com/download.html with these parameters<meta name="robots" content="noindex, nofollow,…
-
2
votes1
answer1926
viewsHow to add a Component to each click on the React
I have a form where there is a responsible pattern (Novoresponsavel), but if there are some other have to be added a new responsible at each click of the 'add another' button, today I can only add a…
-
2
votes3
answers14733
viewsHow to put two buttons on each other
I don’t know as much about HTML and CSS as I would like and I need to make a small change to a site where I’m very limited, so I did it here. <div> <div> <a class="button"…
-
2
votes1
answer406
viewsError in findViewById declaration on Android
I’m new to Android and I’m having a difficult programming. That part of the code always error in R of findViewById. When placing the mouse over the error appears the information Cannot Revolve…
-
2
votes0
answers47
viewsUnlink functions from PHP 'buttons'
I would like to unlink the buttons, I have a button to generate password and one to call, but every time a password, it also calls, I would like to unlink these buttons, someone could help me…
-
2
votes1
answer190
viewsHide a div by clicking the CSS button
You can hide a DIV with that button there? .button { display: block; position: absolute; width: 240px; height: 80px; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform:…
-
1
votes2
answers143
viewsJavascript does not take clicked link with the same ID
I am putting a script to copy the link to clipboard using the plugin ZeroClipboard. The problem is that I have a list with several links that comes from MySQL. And in the loop of the list comes…
-
1
votes2
answers1576
viewsTake the value of a form that has a list
You guys all right? it’s me again, I know I’m asking a lot of questions, but I’m having a few questions and I can’t find an answer, I’m wanting to capture the event of a button in Asp.net mvc using…
-
1
votes1
answer1226
viewssetPreferredSize and setSize do not work
I used the setPreferredSize and the setSize on the button color1 but no effect on the application, it continues using the entire application. public static void janelaPrincipal() { //FRAME JFrame…
-
1
votes0
answers94
viewsFunction with ajax does not fully load
I have a code that by clicking the button it opens a function in javascript. In this function, a part of the code uses Ajax. I need that, after clicking this button, that code changes the color of…
-
1
votes0
answers70
viewsAjax does not work with specific button
I have a code that when you click the button it asks for a reason to click. After writing the reason it switches the button and should exchange the information listed below. This code is in Ajax…
-
1
votes1
answer244
views