Click here to Skip to main content
15,918,108 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: FOR TO NEXT - LOOP Question Pin
Guffa25-May-06 5:25
Guffa25-May-06 5:25 
AnswerRe: FOR TO NEXT - LOOP Question Pin
arcticbrew25-May-06 7:16
arcticbrew25-May-06 7:16 
AnswerRe: FOR TO NEXT - LOOP Question Pin
huertj26-May-06 4:41
huertj26-May-06 4:41 
QuestionMMC - OCX Page Alignment Pin
YemShivaKumar25-May-06 4:18
YemShivaKumar25-May-06 4:18 
QuestionText only in a textbox Pin
ADY00725-May-06 3:57
ADY00725-May-06 3:57 
AnswerRe: Text only in a textbox Pin
space_doggy25-May-06 5:53
space_doggy25-May-06 5:53 
AnswerRe: Text only in a textbox [modified] Pin
Robo1625-May-06 23:50
Robo1625-May-06 23:50 
AnswerRe: Text only in a textbox [modified] Pin
Mohammed Amine26-May-06 2:05
Mohammed Amine26-May-06 2:05 
Hi , it is just pretty simple i had this problem before but i solved it with this

just copy & past & it will work if you don't understand the code i can explain it for you too Smile | :)

 Public Function FiltreStringASCII(ByVal var As Integer) As Boolean<br />
<br />
        If var = 8 Or var = 32 Or var > 64 AndAlso var < 91 Then<br />
            Return True<br />
        ElseIf var > 96 AndAlso var < 123 Then<br />
            Return True<br />
        Else<br />
            Return False<br />
        End If<br />
<br />
    End Function<br />
    Public Sub Check(ByVal b As Boolean, ByVal e As System.Windows.Forms.KeyPressEventArgs)<br />
        If b = True Then<br />
            e.Handled = False<br />
        Else<br />
            e.Handled = True<br />
        End If<br />
    End Sub

and now call this methods in the keypress event of the text you want to write just text in :

Private Sub Textbox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Matr_Rec.KeyPress<br />
    Check(FiltreStringASCII(Asc(e.KeyChar)), e)<br />
End Sub


you can change the visibility of the methods over i just used Public cuz i call those methodes from an other class Smile | :)

try to be good if you can't be the best

-- modified at 8:07 Friday 26th May, 2006
Questioncreate runtime odbc for SQL Server Pin
vipinpaliwal198025-May-06 2:46
vipinpaliwal198025-May-06 2:46 
Questionget the flashwindow api to flash form ? Pin
MickYL25-May-06 1:20
MickYL25-May-06 1:20 
AnswerRe: get the flashwindow api to flash form ? Pin
Nibu babu thomas25-May-06 17:26
Nibu babu thomas25-May-06 17:26 
GeneralRe: get the flashwindow api to flash form ? Pin
MickYL26-May-06 19:20
MickYL26-May-06 19:20 
GeneralRe: get the flashwindow api to flash form ? Pin
MickYL25-May-06 23:16
MickYL25-May-06 23:16 
QuestionHow to convert RSA public key into Base64 Encoded string Pin
vij200525-May-06 0:28
vij200525-May-06 0:28 
QuestionHow to preview Report without using crystel reports and export it to any format Pin
nick_net124-May-06 23:27
nick_net124-May-06 23:27 
AnswerRe: How to preview Report without using crystel reports and export it to any format Pin
Leeland25-May-06 4:37
Leeland25-May-06 4:37 
AnswerRe: How to preview Report without using crystel reports and export it to any format [modified] Pin
Robo1626-May-06 7:11
Robo1626-May-06 7:11 
QuestionRPC problem Pin
nitin_ion24-May-06 23:10
nitin_ion24-May-06 23:10 
AnswerRe: RPC problem Pin
Leeland25-May-06 8:44
Leeland25-May-06 8:44 
GeneralRe: RPC problem Pin
nitin_ion25-May-06 20:12
nitin_ion25-May-06 20:12 
Questionhow to get the list Parameters collection of Stored Procedures Pin
Harshad Pednekar24-May-06 23:08
Harshad Pednekar24-May-06 23:08 
AnswerRe: how to get the list Parameters collection of Stored Procedures Pin
vij200525-May-06 0:34
vij200525-May-06 0:34 
QuestionRe: how to get the list Parameters collection of Stored Procedures Pin
Harshad Pednekar25-May-06 20:44
Harshad Pednekar25-May-06 20:44 
QuestionMS ACCESS DataBase [modified] Pin
himuskanhere24-May-06 20:19
himuskanhere24-May-06 20:19 
AnswerRe: MS ACCESS DataBase [modified] Pin
Nibu babu thomas24-May-06 23:33
Nibu babu thomas24-May-06 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.