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...
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 ...
- Modified
- 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...
- Modified
- 9 Oct at 22:1
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...
- Modified
- 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 ...
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...
- Modified
- 7 Nov at 06:2
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...
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...
- Modified
- 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 ...
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...
- Modified
- 22 Feb at 09:33
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...
- Modified
- 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...
- Modified
- 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...
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...
- Modified
- 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...
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 ...
- Modified
- 30 Aug at 23:59
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...
- Modified
- 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 == ...
- Modified
- 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 ...
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...
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 ...
- Modified
- 21 Nov at 06:29
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 ...
- Modified
- 3 Jan at 17:52
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...
- Modified
- 21 Jan at 18:26