473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VB2005 & Smartphone development

I'm developing an app for a Smartphone and want to add a text box that only
accepts numbers (much like in the contacts, the phone # fields only accept
numbers).

Thanks!

Darhl
Mar 8 '07 #1
4 1885
On Mar 8, 1:46 pm, "Darhl Thomason"
<dar...@papamurphys.nospamplease.comwrote:
I'm developing an app for a Smartphone and want to add a text box that only
accepts numbers (much like in the contacts, the phone # fields only accept
numbers).

Thanks!

Darhl
Is the Masked textbox available for smartphone apps? If so use it, if
not please post back.

Thanks,

Seth Rowe

Mar 8 '07 #2

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@j27g2000cwj.googlegr oups.com...
>
Is the Masked textbox available for smartphone apps? If so use it, if
not please post back.

Thanks,

Seth Rowe
Hi Seth,

Thanks for replying. The masked text box is not available. The only
controls I have available are:

Pointer
CheckBox
ComboBox
HScrollBar
ImageList
Label
ListView
MainMenu
Panel
PictureBox
ProgressBar
TextBox
Timer
TreeView
VScrollBar

The TextBox control doe snot have an option that I can find for masked
input.

Darhl
Mar 8 '07 #3
On Mar 8, 2:44 pm, "Darhl Thomason"
<dar...@papamurphys.nospamplease.comwrote:
"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@j27g2000cwj.googlegr oups.com...
Is the Masked textbox available for smartphone apps? If so use it, if
not please post back.
Thanks,
Seth Rowe

Hi Seth,

Thanks for replying. The masked text box is not available. The only
controls I have available are:

Pointer
CheckBox
ComboBox
HScrollBar
ImageList
Label
ListView
MainMenu
Panel
PictureBox
ProgressBar
TextBox
Timer
TreeView
VScrollBar

The TextBox control doe snot have an option that I can find for masked
input.

Darhl
Ok, use a standard textbox and add a event handler to for the KeyPress
event and block the keystroke there.

Something like:

Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal
e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If Not Char.IsNumber(e.KeyChar) Then e.Handled = True
End Sub

Let me know how it works out!

Thanks,

Seth Rowe

Mar 8 '07 #4

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
>
Ok, use a standard textbox and add a event handler to for the KeyPress
event and block the keystroke there.

Something like:

Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal
e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If Not Char.IsNumber(e.KeyChar) Then e.Handled = True
End Sub

Let me know how it works out!

Thanks,

Seth Rowe
Thanks Seth, that did work.

Now, how about this...my smartphone (Cingular Blackjack) has a QWERTY
keyboard with the numbers "on top" of some of the letters. For example, the
1 is on the e key, 2 is on the t key, 3 is on the u key, etc. Is there a
way instead to have it substitute the numbers when the corresponding letter
key is pressed?

Something like

if keypressed = "e" then keypressed = "1"

I could probably wrangle my way through this with VB6, but I'm about as much
a newbie with VB05 as anyone.

Thanks again!

d
Mar 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andrew Banks | last post by:
I own VS.NET and am wondering what else I need to develop for the Smartphone 2002 platform? What languages can I develop for the Smartphone 2002 in and does it support ..NET? Thanks in advance,...
1
by: MEGASILVER | last post by:
Hi, I am very new to this, but is there anyway I can play a wma file on the smartphone from my application? I need this urgently, any help would be greatly appreciated. Thank you!!!
5
by: Chris Devol | last post by:
My dial-up connection sometimes hangs up and has to re-connect. The VB2005 installer/downloader apparently doesn't know how to resume when the connection is re-established. It just aborts! I've...
8
by: Noozer | last post by:
Just visited the Visual Studio 2005 page on MS's MSDN site. I didn't see a mention of a release date. Any idea when we can expect to have a "for production" version available? Also, about VB2005...
3
by: Diarmuid | last post by:
I have the MS book, introducing Microsoft Visual Basic 2005 for Developers. No sample code comes with it.The location according to the book is http://msdn.microsoft.com/vbasic/VB6Migration but I...
0
by: Simon Beetham | last post by:
Hi all, My little application is in VB2005 Pro. I'm doing my development on WinXP 64-bit. I was having a problem reading a registry key under HKLM and thought it was a permission issue. ...
0
by: JDeats | last post by:
I'm running Visual Studio.NET 2003 Enterprise and if I have an option under C# projects for a "Smart Device Application" if I proceed forward I can build an application, but when I go to run it...
8
by: vbDavidC | last post by:
I am wondering if I should use MS Access or SQL server as my database. I have a little experience programming an Access DB with VB6 (DAO/ADO). I am now starting over with VB2005 and will be doing...
15
by: Aalaan | last post by:
I am presently a user of classic vb6 and hang out on those newsgroups. Some of you may be aware that there is a very anti MS and vb2005 feeling there. I have tried to get them to tell me which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.