473,385 Members | 1,192 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,385 software developers and data experts.

vbnet

the textbox only accepts characters how to develope the code in vb.net,and also how to access the .exe files in vb.net,
Dec 8 '07 #1
1 1134
khani
8
the textbox only accepts characters how to develope the code in vb.net,and also how to access the .exe files in vb.net,
select key press event of that textbox and write following code

if asc(e.keychar)>=48 and asc(e.keychar)<=56 then

e.handled=true
else
e.handled=false

end if

------------------------------------------------------------------

Dim startInfo As System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process

startInfo = New System.Diagnostics.ProcessStartInfo("C:\file.exe")

pStart.StartInfo = startInfo
pStart.Start()
pStart.WaitForExit()
Dec 8 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Showjumper | last post by:
I cannot get the custom Tag Prefix to work in controls made w/ VBNET. Why??? It works just fine in controls made w/ c#. Is vbnet just buggy?
1
by: JuanCarlos Gomez | last post by:
I am try to customize papersize on VBNET (PrintDialog, PritnDocument), but only have access to defined Paper Size on my Printer (FX-2180), how I can customize papersize and use it. Because all the...
4
by: JEEPEE | last post by:
what s difference between vbnet 2002 and 2003 ? thanks
1
by: KT | last post by:
Do we have any idea how long VBNet is going to be supported? Being a hobbyist VB6 user I am only interested in creating windows based applications and have no need for web services, asp etc. I...
5
by: Jim | last post by:
Please don't laugh--I'm serious about this-- I finally got around to installing the copy of VBNet I bought last summer. I didn't see any installation instructions in the box--just a bunch of...
3
by: Jon | last post by:
I am trying to convert an application from VB to VB.Net. the application is large (400 + Screens) and (175+ reports). I am a visual learner meaning if I found examples how to do something in VB...
0
by: | last post by:
I have written a VBNET sample service that uses FindWindow to find another VBNET forms app HANDLE and send it a message via SendMessage. The service runs under the local system account with...
0
by: saidgg | last post by:
i try to audit a specific folder in Unix using Vbnet. In windows i can audit a sensitif folder using VBnet but folder in Unix(samba share) are not accessible. Network is showing. Can someone give...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.