English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - February 2007

[Selected]: All categories Computers & Internet Programming & Design

2 questions, probably 2 simple answers!

1. Is there any way to validate what is entered into a text box, e.g. when a save button is pressed (i only want letters going into the text box, no symbols or numbers)

2. Is there any way to make the first letter of a text box entry validated so it has an uppercase first letter, and lowercase for every other letter.

Cheers

2007-02-20 10:16:38 · 4 answers · asked by Anonymous

I have this code, created in VB.NET 2005

---
Private Sub frmTestAllRows_Load...
RandomizeLBL(Me, "lblLetter*")
End Sub
---
Private Sub RandomizeLBL...
Dim rnd As New Random
For Each ctrl As Control In container.Controls
Dim lblLetter As Label = TryCast(ctrl, Label)
If lblLetter IsNot Nothing AndAlso lblLetter.Name Like pattern Then
lblLetter.Text = Chr(rnd.Next(97, 122).ToString)
End If
Next
End Sub
---

This works for selecting any chara on the keyboard and putting it into a label when the form is loaded. BUT, is there any way to modify this so that it can only select random letters from, for example, the top row of the keyboard. I was hoping i could modify the ascii code to look for, e.g. 97, 103, 107.

Any ideas?

2007-02-20 10:14:31 · 2 answers · asked by Anonymous

Hi i hav completed my Degree in EE in 2002. Then on i was working as a lect in polytechnic. Now i m plannin to make career change to software.
1. Is JAVA/J2EE a good career option?
2. Where can i get some insights regarding the realtime projects, nature of work done by a programmer in a software company.. Please give me link or website to get some useful information
3. Can anyone help me to get some Experience certificate during the Years 2002 to till date, working for some organisation or project.
4. I m makin a right career change...Please give your email ID or where to contact you.
Looking forward to your answer, advance thanks for your answers.

2007-02-20 10:05:43 · 1 answers · asked by Anonymous

I need a piece of text to display only when the mouse is over a picture. The text needs to not have a background or border so that you can still see the background behind it.

Thanks

2007-02-20 09:33:30 · 1 answers · asked by Anonymous

I want to develop a Java program that can send and receive text messages from the PC using the connected cellphone.

2007-02-20 09:27:15 · 3 answers · asked by nonoy 1

0

okay, i need a code for myspace. Code that hides stuff when you put it on. Like when you put a background for myspace, and save it, theres this thing that says " Get you profile at ..." or under neath the things, itll say Code My Layout or somthing...

ill be checking it once in a while, so u ca nask some question.
Thanx

2007-02-20 09:14:26 · 4 answers · asked by ;] 2

how to read contents from the file in unix shell script.plz help.
or give me a link to find it

2007-02-20 09:14:19 · 2 answers · asked by mary 2

How do you get a text to appear when you move your mouse over an object like a picture or link?

2007-02-20 09:11:16 · 6 answers · asked by fletch 1

Ok.. I made a website and all, but i would like people to be able to submit some information in a textbox, then hit enter or the submit button, and then the page refreshes and you can see your comment below the box inwitch you entered the information. i only want tis to be on 1 page. please do not suggest a seperate page for the information to go on. Thank you or your help.

2007-02-20 09:09:59 · 3 answers · asked by Nick 2

I know .exe is an extension for running programs, unfortunately it was disabled (for security) and was wondering what other file extensions mean the same thing but are not spelled .exe?
Thanks!

2007-02-20 09:09:42 · 4 answers · asked by yeahthatstheguy 1

I need to add a webpage into a presentation and i can't simply cut and paste it--so I'd like to know how to save the web page screen as an image--a jpeg or gif--and then paste the image ina presentation. Anyone know how?

2007-02-20 09:00:00 · 4 answers · asked by bpurd1 2

2007-02-20 08:58:11 · 5 answers · asked by Anonymous

I work in a field of industrial equipment development and I am fascinated by the quality of graphics used in PC application windows such as the Windows Media Player but when I search the Internet I can't find any tool or even a company that specializes in this kind of design. Most companies I find only specialize in web page design and this is not the same thing. The current user interface was created in VB.net but I'm looking for a better look and feel in both the controls and graphical output displays. A new GUI would have to interface with a .net application. Does anyone know the best tool for developing a unique graphical control and display panel? The equipment that my company manufactures is used in a manufacturing environment where the GUI runs on a PC which drives our product. The GUI design is nearly as important to the end customer as the equipment itself because it's ease of use can help or hinder the equipment operator's productivity.

2007-02-20 08:57:20 · 1 answers · asked by IveBeenThere 4

System.out.print ("Enter name: ");
sName = keyboard.nextLine();

System.out.print ("Enter hours worked: ");
shHours = keyboard.nextShort();

I have this piece of code in my program! Sname is declared as a string. When I run the program it displays:

Enter name: Enter hours worked:

It does not allow me to enter the name. The program skips it and jumps to Enter hours worked: . Does anyone have any suggestions!

2007-02-20 08:53:41 · 1 answers · asked by jhn_grz 3

this is my program which is a part of a online shopping program:
add to cart
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="onlinestorebeans.Product" %>
<%@ page import="java.util.*" %>
<%
String pid = request.getParameter("PID");
String pname = request.getParameter("PNAME");
String price = request.getParameter("PPRICE");

Product p = new Product();
p.setId(Integer.parseInt(pid));
p.setName(pname);
p.setPrice(Double.parseDouble(price));
ArrayList basket = null;
if(session.getAttribute("basket") == null)
{
basket = new ArrayList();
}
else
{
basket = (ArrayList) session.getAttribute("basket");
}
basket.add(p)
session.setAttribute("basket", basket);
response.sendRedirect("shopping.jsp");
%>
my error:
An error occurred at line: 7 in the jsp file: /JSPcourse/jsp_shoppingcart/addtocart.jsp
Generated servlet error:
Product can't be resolved to a type.

2007-02-20 08:49:58 · 1 answers · asked by vestabs 1

2007-02-20 08:14:17 · 5 answers · asked by waterboy 1

I got a new monitor and all the colors look fine except in photoshop. Now I know I had to change the color settings over to my monitor and make sure each file I open was on my monitor setting and yea it improved the colors a lot allowing the white to at least look somewhat white but when I grayscale a picture it looks brown not gray yet when I save it, it saves as gray which is fine but is hard to judge what it will really look like completed when I'm in photoshop.

Examples: (original pic) - http://perfectfanfiction.com/images/3.jp...
(saved as) - http://perfectfanfiction.com/images/1.jp...
(what I see in photoshop) - http://perfectfanfiction.com/images/2.jp...

Can anyone out there help me?

2007-02-20 07:57:22 · 2 answers · asked by Anonymous

is there a way to save one file (like a .html or .gif) with several other names (same content in each file)?

2007-02-20 07:42:06 · 6 answers · asked by eyeseeparis 1

My family is looking into the possibility of making an internet page. Does anyone have the url of a good FREE web page making tool we can download from the internet?

2007-02-20 07:23:21 · 6 answers · asked by ahendersonbegg 5

Do u no any free web hosting services that you get your own domain name, which dont jsut say that and end up charging u loads?

2007-02-20 07:18:56 · 10 answers · asked by tom 2

2007-02-20 07:13:58 · 6 answers · asked by sandyfirewind 3

How to make a delay in java?
I have currently
private void delay(int wait)
{
try
{
Thread.sleep(wait);
}
catch(InterruptedException e)
{
}
}
with the driver using 'delay(Any Number);'
My JFrame freezes, without it it does not, but is too quick to veiw... what is wrong?!

2007-02-20 07:09:45 · 2 answers · asked by YahooAnswers 2

Not nessecryly free

2007-02-20 07:08:19 · 6 answers · asked by emaile_alaky 1

It only has the title "excel" and a spreadsheet. How do I restore the command lines?

2007-02-20 06:51:59 · 1 answers · asked by ignoramus 7

pc say program c/program files/symantec/live update/at update exe.Application has requested the runtime terminate in an unusual way contact applications support.help beginner and clueless

2007-02-20 06:49:23 · 7 answers · asked by Anonymous

2007-02-20 06:28:51 · 9 answers · asked by ultvikingfan 1

fedest.com, questions and answers