forms

Access 2003 - Field from another database on form

I am 'fixing up' an old Access Database, and the client requested that a DATE field be added to a form. Problem is, I have NEVER used Access before. I'm a SQL guy, and I build my own UI's. This forms thing is getting the better of me. Ok - So I have two tables: tblQuestionairre QuestionairreID EventID blah blah blah tblEvent EventID D...

Why use definition lists (DL,DD,DT) tags for HTML forms instead of tables?

I've come across a few examples recently that do things like: <dl> <dt>Full Name:</dt> <dd><input type="text" name="fullname"></dd> <dt>Email Address:</dt> <dd><input type="text" name="email"></dd> </dl> for doing HTML forms. Why is that? What is the advantage over using tables? ...

serialize form to POST after getting content using CURL

Hi, I want to POST an URL using CURL and php. There is a big form on webpage and I don't want to manually copy all the variables and put it in my POST request. I am guessing there has to be a way to serialize the form automatically (using DOM or something) and then just change whatever values I need. I could not google my way out of ...

Hide form at launch

Hello! I have a program which only needs a NotifyIcon to work as intended. So I've been trying to get the main form to hide when the program starts. In frmMain_Load, I tried both this.Hide(); this.Visible = false; without success. They work in other methods, like in the NotifyIcon_MouseClick-method, but I want it to hide at Load. I...

ASP Form problem

Hi I have an asp form that has a checkbox and dropdown menu. If the checkbox in not selected then I need to make sure the dropdown is either not selected or disabled. ...

keyboard events in .NET

The key up event gets triggered when a key is released. This holds true for normal keys like a, b etc. However, holding down the arrow key or escape key produses different results. Instead of firing a key up event when the key is released, it gets fired soon after the key down event. So, holding down a arrow key becomes equal to pressing...

Catching the close event on a c# form

Hey! I am not trying to push my luck here but I have another c# question. I have tried every possible event I found using google. Here is the code: private void Form1_OnClose() { MessageBox.Show("I was closed -2"); } private void Form1_Exit(object sender, EventArgs evArgs) { Mess...

Deleting all components of a certain class on a form (Delphi)

This is probably a stupid question, but my brain is just cooked enough I think I'm going to use one of my "lifelines" to see if I can get some help from my stack overflow friends. ;) I need to delete all occurrences of a particular component type on my main form (some of them are inside panels or tabsheets, but all on and owned by the s...

Custom django widget - decompress() arg not populated.

As an exercise I am trying to create a custom django widget for a 24 hour clock. The widget will is a MultiWidget - a select box for each field. I am trying to follow docs online (kinda sparse) and looking at the Pro Django book, but I can't seem to figure it out. Am I on the right track? I can save my data from the form, but when I pre...

jquery form plugin & programmatic submit

There are similar questions at SO, but none that seem to address this. Below is a very simplified variant of my situation. Drupal/PHP site -- I have a form w/ submit button that I am using jquery.form plugin to ajax-ly submit. It works fine if I use the submit (#submit) button. Now, I want to programmatically fire that button using an...

Single line select box with up/down arrows like in a multi line select box

Basically, I want this: <select size="2"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> </select> But instead of having two lines, I want it on a single line. Can this be done without Javascript? If not, I would imagine it's common enough (though I can't find any relevant links on Google)...

Binding an Enum to LINQ and SelectListItem

Hello. I'm trying to bind the following enum public enum CertificateTypes : byte { None = 0, Original = 1, AuthenticatedCopy = 2, Numbered = 3 } to a tinyint column on the database. However, when creating the SelectListItems and calling, for instance, Person.CertificateTypes.Original.ToString() I get this: <option va...

Databinding in existing XPS document

I have an existing XPS file that I would like to use as a template and possibly bind data to it. I have tried several methods, but cannot seem to get it to work. Does anyone have any experience altering an existing XPS file to add data at runtime and then print or save? Any help is appreciated. ...

CSS and float problem I think ... form elements mis aligned

I have setup my form using CSS.. Labels float to the left and input/textareas float to the right. They align fine. However I recently added a block with checkbox elements. For some reason, there is a margin appearing above it which I have not been able to find the solution to fix. I suspect it is a float problem but I can not figure it ...

Choice in order of priority in forms (ordering 5 choices in order of priority)

I am trying to create a form for my php/mysql application. I want my users to list the priority of thier choices where they have 5 options and they have to choose each in order of preference ...

How can I fix this warning produced when I run my Test::Unit tests

I'm getting this warning in my Test::Unit output... /usr/local/bin/ruby -I.:lib:test -rtest/unit -e "%w[test/functional/sessions_controller_test.rb].each { |f| require f }" | unit_diff -u Loaded suite -e Started .../Users/ethan/project/mtc/contactdb/app/views/sessions/new.html.haml:30: warning: multiple values for a block parameter (0 f...

Javascript - form select element open url in new window and submit form

UPDATED - please read further details below original question I have a select form element with various urls, that I want to open in a new window when selected - to do this I have the following code in the element's onchange event: window.open(this.options[this.selectedIndex].value,'_blank'); This works fine. But I also want to submi...

Oracle Forms

Hi, we are using oracle forms... we have to protect (or) block a text item field from special charecters. like ( !@#$%^&*) please send some guidences.... thanks in advance... Regards, Vijay ...

Assigning Datasource to a region

Hi, I was wondering if there is an existing control that I could use to achieve what I am trying. Basically, I have a html table that I display my header information. It looks something like this: <table class="tableEdit"> <tr> <th>Job ID</th><td>10</td> <th>Client</th><td>Tom</td> </tr> <tr> <th>C...

VB.NET forms behave strange on design-time

I'm developing with VB.NET 2008. One of my host was crashed, so I take the files and keep development on another host. But now something strange is happening:All frames, lines and shapes are disappeared on design-time, but are seen normally in runtime. Please see the attached screenshot (Upper is design-time, lower is runtime). http://go...