tagged [forms]

If Form is dark, then Text on form should be Light

If Form is dark, then Text on form should be Light I have 60% Opaque form. And when the user changes the color of the form, sometimes (depending on the chosen color), they cannot see the text on the f...

29 Sep at 10:52

Prevent Form Deactivate in Delphi 6

Prevent Form Deactivate in Delphi 6 We have a Delphi 6 application that uses a non modal form with in-grid editing. Within the FormClose event we check that the entries are square and prevent closure ...

5 Oct at 10:55

Is (HttpContext.Current.User != null) enough to assume that FormsAuthentication has authenticated the user

Is (HttpContext.Current.User != null) enough to assume that FormsAuthentication has authenticated the user In an ASP.NET (2.0) application I use FormsAuthentication. In the Global.asax / Application_A...

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

How to check if window is really visible in Windows Forms?

How to check if window is really visible in Windows Forms? Normally you use Form.Visible to check if Window is visible at all. But sometimes on the screen window is below other windows so it's really ...

30 Oct at 14:17

Good solution to the 'preventing default button on form from firing' problem?

Good solution to the 'preventing default button on form from firing' problem? I need a solution for the age old problem of a 'default button' firing undesirably. i.e you hit enter in a text box, but t...

Axapta: Form lifecycle question

Axapta: Form lifecycle question I am attempting to manually populate an image icon into a window nested in a grid. In the run event, the fields don't appear to have values yet. The string control alwa...

3 Dec at 16:48

Different initial data for each form in a Django formset

Different initial data for each form in a Django formset Is it possible to prepopulate a formset with different data for each row? I'd like to put some information in hidden fields from a previous vie...

13 Dec at 21:9

can event handlers take current object as a parameter?

can event handlers take current object as a parameter? I have read where an event is triggered on another thread from the one that created the controls on a Windows Form. Therefore, the event handler ...

28 Jan at 00:54

Django Forms with get_or_create

Django Forms with get_or_create I am using Django ModelForms to create a form. I have my form set up and it is working ok. What I now want though is for the form to check first to see if an identica...

22 Feb at 09:33

Make a form not focusable in C#

Make a form not focusable in C# I'm wanting to write a virtual keyboard, like windows onscreen keyboard for touchscreen pcs. But I'm having problem with my virtual keyboard stealing the focus from the...

11 Mar at 07:22

Writing custom Django form fields and widgets

Writing custom Django form fields and widgets Django has very good documentation that describes how to write custom database fields and custom template tags and filters. I cannot find the document tha...

2 Apr at 11:37

url rewriting + Asp.Net Login Form = Death

url rewriting + Asp.Net Login Form = Death on our site we do url rewriting to generate massive amounts of database generated pages. on every page, there is a Login control for users. like this: Intern...

23 Apr at 02:12

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 add ID property to Html.BeginForm() in asp.net mvc?

How to add ID property to Html.BeginForm() in asp.net mvc? I want to validate my form using jquery but it doesn't have an `ID` property as of now how to add it to the form in asp.net mvc? I am using t...

18 May at 04:44

HTML form with side by side input fields

HTML form with side by side input fields I have a html form that is basically vertical but i really have no idea how to make two text fields on the same line. For example the following form below i wa...

15 Aug at 17:37

Thread.CurrentPrincipal claims incorrectly to be anynomous

Thread.CurrentPrincipal claims incorrectly to be anynomous I'm seeing requests on my server that appear to be made by an anynomous client, although I'm certain they were made by an authenticated user ...

How do I customize the Forms Authentication cookie name?

How do I customize the Forms Authentication cookie name? I have 2 websites running on localhost in different ports. As browsers do not differentiate port numbers when sending cookies, my forms authent...

2 Sep at 21:59

django custom form validation

django custom form validation In Django/Python, when you make a custom form, does it need to have a clean() method, or will calling .is_valid() perform a default validation? ``` if request.method == ...

12 Sep at 17:31

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

How do I style radio buttons with images - laughing smiley for good, sad smiley for bad?

How do I style radio buttons with images - laughing smiley for good, sad smiley for bad? I would like to create an HTML form for user feedback. If the overall feedback is good, the user should click o...

9 Oct at 15:26

How to create a UserControl that you can drop other controls in it?

How to create a UserControl that you can drop other controls in it? In WinForms, how can I create a `UserControl` that when I put on my form I can then add other controls inside by dragging them from ...

Use a normal link to submit a form

Use a normal link to submit a form I want to submit a form. But I am not going the basic way of using a input button with submit type but a link. The image below shows why. I am using image links to s...

26 Nov at 15:20

Custom forms authentication in MVC

Custom forms authentication in MVC I want to use authentication on my site in order to login to the Admin section. I already have my database schema, I don't want to use the ASP.NET membership tables ...

ASP.net using a form to insert data into an sql server table

ASP.net using a form to insert data into an sql server table Hi in php i would do a form with an action to lets say a process.php page and in that page i would take the post values and using a mysql_q...

21 Jan at 18:26