473,770 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1905
On Mar 8, 1:46 pm, "Darhl Thomason"
<dar...@papamur phys.nospamplea se.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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ j27g2000cwj.goo glegroups.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...@papamur phys.nospamplea se.comwrote:
"rowe_newsgroup s" <rowe_em...@yah oo.comwrote in message

news:11******** **************@ j27g2000cwj.goo glegroups.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_KeyPre ss(ByVal sender As System.Object, ByVal
e As System.Windows. Forms.KeyPressE ventArgs) Handles TextBox1.KeyPre ss
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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ p10g2000cwp.goo glegroups.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_KeyPre ss(ByVal sender As System.Object, ByVal
e As System.Windows. Forms.KeyPressE ventArgs) Handles TextBox1.KeyPre ss
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
1532
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, Andrew Banks
1
2196
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
3709
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 wasted many hours on this. Can the whole package be obtained at once with a "smart" download manager instead of having to use the VB2005 installer????? --
8
1325
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 Express... Can this be used to build and distribute stand alone applications? I really like the idea of having the stand alone development packages (VB, SQL, WebDev) instead of one monothilic development package. Of course I remember when...
3
1881
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 don't see it there either. Anyone know where it is? Also, where would I find the 101 VB Code samples for VB2005? Or, indeed, some links to any VB2005 samples would be appreciated. Thanks Diarmuid
0
1297
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. Now, I believe that it's the fact my App is using the .Net 2.0 32-bit assemblies and consequently is not able to read the registry under WinXP
0
1150
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 apparently something isn't working properly. I get an error message: "One or more files from the Windows CE emulator is missing I have installed the Windows CE 5.0 Emulator and the Microsoft Smartphone 2003 SDK... Windows XP (SP2) did complain...
8
1512
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 some DB development. I assumed that I would stay with Access but noticed that there is some type of SQL server that comes with Visual Studio 2005 and also in the Express editions as well. I am using this in a single user environment on a PC...
15
2028
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 features of vb2005 are actually worse then vb6 in practice, and forget the philosophy of backward compatibility for a moment. I would now like to hear "the other side". Could *anyone who previously used vb6* (only those pleased; I feel the others...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10037
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7456
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.