forms

Visual C++ application as a frontend to MS Access database - multiuser data access and canvas-like GUI questions.

In company that I work for, I was given the opportunity to write an application, which would replace the old Excel workbook, which is used to plan the production queue. Because VBA was simple and Excel was easy to use, for few years this workbook was used by several people to plan/add changes/notes about current production status. Whole ...

Should e-mail validation using DNS/MX record be used?

I noticed that most scripts for e-mail validation do not use DNS information to ensure the given domain actually exists. What are the reasons why one might not use DNS checks? Does it actually reduce the number of fake e-mails or make a form more usable? Example snippet: $host = explode('@', $email); if(checkdnsrr($host[1].'.', ...

Controlling z-axis / bring-to-front at runtime (Delphi)

In Delphi, how do you control a visual control's z-axis position at runtime? e.g. How, programmatically and at runtime, do you accomplish the equivalent of (from the IDE main menu) "Edit -> Bring to Front" at designtime? ...

Problem of input mask in VBA text box ?

There is a problem in VBA text box while filling input mask property: I am trying to make the combination of date and time: Hence i put it like below: 00/00/00;0;_00:00;0;_ But while running the application, i am only getting 00/00/00 (Date). But i remember, i got the result as like 00/00/00 00.00 as expected when i first put the ...

submitting a GET form with query string params and hidden params disappear

Hi, Consider this form: <form ... action="http:/www.blabla.com?a=1&b=2 method="GET"> <input type="hidden" name="c" value="3" /> </form> When submitting this form (a GET form) the parameters a and b are disapearing. Is there a reason for that? Is there a way of avoiding this behaviour? Thanks, Tal. ...

How do I bind a textbox to a Model parameter in a Strongly Typed View in Asp.Net MVC?

The only way I've seen this done in the tutorials I've looked at, they say to create a new .ascx and choose the option "create" for View Content. I want to be able to customize mine more with specific ID's... So, if I have a Customer that has data: string FirstName, string LastName, string Address. How can I bind my textboxes so that wh...

Modifying a non-static object from a static method.

Hi, I'll first tell you what I am trying to do, and then how I am trying to do it. If there is a better way please let me know. I am working with two forms - lets call them form_main and form_preferences When the form_preferences form is up, I want form_main to be disabled until a button (save button) on the form_preferences is clicke...

Cake PHP autmagic forms and multiple tables

I have a form with the following fields: firstName lastName emailAddress followed by (up to) ten name/email fields, like so friendName-1 friendEmail-1 friendName-2 friendEmail-2 ... etc. The firstName, lastName & emailAddress fields will be saved into a 'referrals' table, but 10 name/email pairs will go into a 'friends' table, c...

Get an array from an HTML page?

I'm rather new to HTML programming. I understand the basics of interactive collection of input via forms. I'd like to collect some data computed by a JavaScript function during execution of a page. Not being able to think of an alternative, I think the way to do that is to enter the function result into a form variable. How do I do ...

Reference custom list form fields from code behind and automatically fill them with values.

Hello. I`v made my custom NewForm.aspx for my list and I want to add some custom code to it. So I inherit that form from my own class: public class MyCustomNewForm : Microsoft.SharePoint.WebPartPages.WebPartPage Now I want to reference some of available fields to automatically fill them for user. (Javascript won't help here as I have...

RoR, Jquery, Ajax form errors

Alright. I have a create form where people are able to create businesses which are then added to the database. Everything worked fine. Rails was throwing it's errors if things weren't filled out correctly and if they were, you;d be directed to another page that would show you the business you just created. Now with that, I have to be ab...

Grouping fields in ASP.NET MVC

I am working on an ASP.NET MVC application which has a model for a business, linked to another model (business trading hours) in a one-to-many relationship. When creating this entity we have a form where we would like to provide a fixed set of the BusinessTradingHours entities, so I have used something like the following (kind of what I...

How can i call the below function to populate my access form list control

I need to populate the access form list box from a access table. Below is the code which I copy-pasted on button click event: Public Sub PopulateLBWithData(DBPath As String, _ TableName As String, FieldName As String, _ oListControl As Object,Optional Distinct As Boolean = False, _ Optional OrderBy As String) ''#PURPOSE: Populate a l...

JavaScript form submitting using an image is not working

Hi I have a FORM that I want to use an IMG, instead of an input button, to submit the form. The code: <form> <input class="form_grey" value="Enter in City or Zipcode" type="text" id="city-field" name="city" onfocus="this.value='';" /> <a href="javascript:document.form.submit()"><img src="/images/btn.png" /></a> </form> When I ...

Query regarding dsn string in vba

Below is the code to fill a list box in a VBA application : Private Sub Form_Open(Cancel As Integer) ''#Populate list box control. Dim cnn As ADODB.Connection Dim strSQL As String Dim rst As ADODB.Recordset Dim strList As String On Error GoTo ErrHandler ''#Use DSN to Northwind. ''#Modify connection and connection str...

VBa insert shortcut

I am planning to insert value in a vba access form text box values to the table in same access file Here i will write a insert query on the submit button click event Is there any shortcut methods to add the value into the table? Like seting the datasource for the textbox and inserting values of all textbox in the form using a click o...

.js.erb VS .js

What is the advantage to putting you javascript for your rails app into a .js.erb file instead of just throwing it in your application.js file? I have a create button for businesses so should I put the code into a create.js.erb file or put it into my application.js using: $("#business_submit").click(function() {} All that aside is tha...

Windows Forms visibility issue

Hello everyone, I am confused about how to make a Form visible. When we create a Windows Forms application, the default Form1 is automatically visible, even without explicit call to Show method. But if we want to show another Form and make it visible, we have to make it visible by calling Show. Any ideas why there is such differences? ...

Custom Form validation in CakePHP

This is my form: I want to make sure that AT LEAST one of the name/email pairs are filled in, so I'm working on a custom validation rule in my model. I originally thought it would a simple case of making the first name/email pair mandatory, but this doesn't cover the other fields if someone fills in the third one for example, and omit...

Disable parent form when child form is active

How to disable a parent form when child form is active in c# ? ...