tagged [forms]

My Windows Form keeps on shrinking/resizing on build

My Windows Form keeps on shrinking/resizing on build I am working on a Windows Forms project. It contains a tab controller with multiple pages and multiple controls on each. It appears that relatively...

html button to send email

html button to send email How do I send an email with specified initial values for the headers `subject` and `message` from a button in html, such as this where `subject` and `message` are values fetc...

6 Sep at 12:21

UserControl for cross-platform Xamarin Forms

UserControl for cross-platform Xamarin Forms I have been looking for a long time now but still haven't found a way to create WPF like UserControls for cross-platform Xamarin Forms. Can this even be do...

How to download image and save it in local storage using Xamarin-Forms.?

How to download image and save it in local storage using Xamarin-Forms.? I want to download an image and store it in specific folder in local storage. I am using this to download image:

26 Jun at 09:24

How to check user is "logged in"?

How to check user is "logged in"? I am using form authentication with below method in my ASP.NET application How do I check whether user is logged in or not? And how can I get the user name of a logge...

13 Jan at 21:18

How long Cookies last, which return with JsonServiceClient Request

How long Cookies last, which return with JsonServiceClient Request I am working with Xamarin-Forms application.To authenticate user I use ServiceStack CredentialAuthProvider.When authentication succes...

How to create a label inside an <input> element?

How to create a label inside an element? I would like to insert a descriptive text inside an input element that disappers when the user click on it. I know it is a very common trick, but I do not know...

19 Sep at 22:17

C# 2005: Remove icon from the form's title bar

C# 2005: Remove icon from the form's title bar A client has asked me to remove the icon from the form's title bar. As they don't want to display any icon. But this me guessing as when I click on the i...

30 Apr at 14:18

How do I set the size of the visible area of a form, minus heading and borders?

How do I set the size of the visible area of a form, minus heading and borders? I would like to set my form to be exactly 300*300 excluding heading and borders. If I use Size property, it does include...

Warn user before leaving web page with unsaved changes

Warn user before leaving web page with unsaved changes I have some pages with forms in my application. How can I secure the form in such a way that if someone navigates away or closes the browser tab,...

8 Jan at 20:56

WPF looking for way to create border with text labeling the frame

WPF looking for way to create border with text labeling the frame Something like this [](https://i.stack.imgur.com/uoS5r.gif) was available in windows forms, but i forget what it was called. But I'm j...

28 Jun at 14:36

How to add static text inside an input form

How to add static text inside an input form How can I put this static text in an input form? It's there all the time. ![Enter image description here](https://i.stack.imgur.com/Xxsnr.jpg) This is my co...

9 Jul at 22:52

How to create <input type=“text”/> dynamically

How to create dynamically I want to create an input type text in my web form dynamically. More specifically, I have a textfield where the user enters the number of desired text fields; I want the text...

20 Nov at 15:24

What is the difference between the old ListView and new CollectionView in Xamarin 4?

What is the difference between the old ListView and new CollectionView in Xamarin 4? I don't understand what is different in Xamarin Form by new version 4.0 between old ListView and new CollectionView...

2 Aug at 07:40

Put icon inside input element in a form

Put icon inside input element in a form How do I put an icon inside a form's input element? ![Screenshot of a web form with three inputs which have icons in them](https://i.stack.imgur.com/V0Tjp.png) ...

23 Jun at 07:52

How to play sounds on Xamarin.forms?

How to play sounds on Xamarin.forms? I'm creating an app for Android, iOS and Windows Phone using Xamarin.forms. My question is how to play a mp3 or wav with Xamarin Forms? My business logic is handle...

how to hide bottom bar of android (back, home) in xamarin forms?

how to hide bottom bar of android (back, home) in xamarin forms? How can I hide the bottom android bar (back button, home button) permanently in xamarin forms? I tried some code but its hiding it temp...

How to programmatically log in to a website to screenscape?

How to programmatically log in to a website to screenscape? I need some information from a website that's not mine, in order to get this information I need to login to the website to gather the inform...

11 Aug at 13:37

Hiding forms on startup: why doesn't this.Hide() hide my form?

Hiding forms on startup: why doesn't this.Hide() hide my form? I wanted to hide the main window of my app on startup, so I put this in the constructor: This doesn't hide my form though. It seems like ...

22 Sep at 12:49

Limit number of characters allowed in form input text field

Limit number of characters allowed in form input text field How do I limit or restrict the user to only enter a maximum of five characters in the textbox? Below is the input field as part of my form: ...

10 Jun at 05:20

How to search through all items of a combobox in C#?

How to search through all items of a combobox in C#? I have a combobox, and I would like to search through every element in it. How can I do this? (also the number of items is not the same everytime, ...

Get Android Context in PCL project

Get Android Context in PCL project How do I get the Android context from the Xamarin.Forms PCL project? I have tried to search stackoverflow but none fit my search. I am new to Xamarin.Forms and I am ...

16 Aug at 04:34

How to Send SMS on Xamarin.Forms

How to Send SMS on Xamarin.Forms I am developing project, iOS, Android and Windows Phone. My app ask the user to enter text Message and Phone number then on submit, I need to send SMS to the phone num...

How to change an element's title attribute using jQuery

How to change an element's title attribute using jQuery I have an form input element and want to change its title attribute. This has to be easy as pie, but for some reason I cannot find how to do thi...

12 Aug at 17:46

Get the username in Forms authentication

Get the username in Forms authentication I'm using Forms authentication. In Windows Authentication for get the user name of the PC i use: `User.Identity.Name` I need this information also in Forms aut...

creating about dialog box in C# form application

creating about dialog box in C# form application I have a C# form application, in that I have a menu where one of the item is `help`. It has a sub-item `About`. As you seen in many applications when y...

22 Apr at 05:12

form with no action and where enter does not reload page

form with no action and where enter does not reload page I am looking for the neatest way to create an HTML form which does not have a submit button. That itself is easy enough, but I also need to sto...

21 Jul at 21:32

How to transfer data from JSP to servlet when submitting HTML form

How to transfer data from JSP to servlet when submitting HTML form I have a JSP page with an HTML form: How to obtain these data in a servlet and add them to database?

8 Feb at 10:14

Disable scrolling on `<input type=number>`

Disable scrolling on `` Is it possible to disable the scroll wheel changing the number in an input number field? I've messed with webkit-specific CSS to remove the spinner but I'd like to get rid of t...

30 Jan at 17:26

How Can I Change Height in ViewCell

How Can I Change Height in ViewCell I'm trying to change ViewCell on listview, but the code below not work for me: ```

7 Jun at 18:37

Toast equivalent for Xamarin Forms

Toast equivalent for Xamarin Forms Is there any way using Xamarin Forms (not Android or iOS specific) to have a pop-up, like Android does with Toast, that needs no user interaction and goes away after...

14 Nov at 15:12

How do I capture response of form.submit

How do I capture response of form.submit I have the following code: I want to capture the html response of `form1.submit`? How do I do this? Ca

jQuery - select the associated label element of a input field

jQuery - select the associated label element of a input field I have a set of input fields, some of them have labels associated, some not: so, how can I select the associated label for each input, if ...

30 Jan at 18:15

Postman Chrome: What is the difference between form-data, x-www-form-urlencoded and raw

Postman Chrome: What is the difference between form-data, x-www-form-urlencoded and raw I am using the Postman Chrome extension for testing a web service. There are three options available for data in...

18 May at 00:22

C# Auto Resize Form to DataGridView's size

C# Auto Resize Form to DataGridView's size I have a Form and a DataGridView. I populate the DataGridView at runtime, so I want to know how do I resize the Form dynamically according to the size of the...

22 Oct at 14:49

C#: making a form non-resizable

C#: making a form non-resizable In order to make a form non-resizable I have set MaximumSize and MinimumSize to the same value. The problem I have is that when the user points to the border of the for...

2 Mar at 14:58

How to set a class attribute to a Symfony2 form input

How to set a class attribute to a Symfony2 form input How can I set the `HTML` `class` attribute to a form `` using the `FormBuilder` in `Symfony2` ? Something like this: I want thi

21 May at 08:59

Django Forms: if not valid, show form with error message

Django Forms: if not valid, show form with error message In Django forms, it can check whether the form is valid: But I'm missing what to do if it isn't valid? How do I return the form with the error ...

28 Nov at 20:28

xamarin.forms binding from xaml to property

xamarin.forms binding from xaml to property I am a total newbie with bindings in xaml and I really don't get it sometimes. I have this in my xaml: The binding "IsLoading". Where do I declare/set this ...

18 Sep at 15:28

Obtain current page name in Xamarin Forms app

Obtain current page name in Xamarin Forms app I am currently trying to understand how to get the name of the (xaml) page I am currently into, with my Xamarin Form app. How am I supposed to do it? I tr...

4 Dec at 22:18

HyperlinkButton in C# XAMARIN.FORMS

HyperlinkButton in C# XAMARIN.FORMS I want to create Label with click possibility like in WIN phone xaml Is there a possibility to do it in Xamarin.Forms? I found this but is not the same: [https://gi...

12 Jan at 11:0

Getting form data from HttpListenerRequest

Getting form data from HttpListenerRequest I have a HttpListenerRequest which was initiated from a html `` that was posted. I need to know how to get the posted form values + the uploaded files. Does ...

Formik - How to reset form after confirmation

Formik - How to reset form after confirmation In [Formik](https://github.com/jaredpalmer/formik), how to make the Reset button reset the form only ? My code below still resets the form even when you c...

9 Apr at 01:19

How to make input type= file Should accept only pdf and xls

How to make input type= file Should accept only pdf and xls I used `` Now I would like to restrict this by accepting only .pdf and .xls files. When I click the submit button it should validate this. A...

12 Nov at 01:49

Can I disable the 'close' button of a form using C#?

Can I disable the 'close' button of a form using C#? How can I disable the close button of a form like in the image below? (the image below show a `MessageBox` window) ![enter image description here](...

8 Feb at 10:52

When my C# form crashes it tries to create a new instance of itself

When my C# form crashes it tries to create a new instance of itself I do some rather long winded things with a forms application using arrays and sometimes I address it wrongly during development, ins...

12 May at 20:22

How to use Xamarin forms' Button.ContentLayout property?

How to use Xamarin forms' Button.ContentLayout property? Using the latest pre-release, I noticed that the button now has a Button.ContentLayout property, which I am hoping will allow us to add custom ...

14 Nov at 11:50

TypeScript-'s Angular Framework Error - "There is no directive with exportAs set to ngForm"

TypeScript-'s Angular Framework Error - "There is no directive with exportAs set to ngForm" I keep getting this error while using TypeScript's Angular2-forms framework: > `directive` Here's my code pr...

How do I set the focus to the first input element in an HTML form independent from the id?

How do I set the focus to the first input element in an HTML form independent from the id? Is there a simple way to (input cursor) of a web page (textbox, dropdownlist, ...) on loading the page withou...

1 Jul at 01:28

Prevent users from submitting a form by hitting Enter

Prevent users from submitting a form by hitting Enter I have a survey on a website, and there seems to be some issues with the users hitting enter (I don't know why) and accidentally submitting the su...

17 Dec at 10:23