The Philippine Electronics and Technology Forum
February 10, 2012, 05:15:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: 1 [2]   Go Down
  Print  
Author Topic: VISUAL BASIC 6.0  (Read 6200 times)
Sandmaster
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 11



« Reply #20 on: August 11, 2008, 06:40:00 AM »

Dun nga po ako naguguluhan, hehehe, sa keypress. Hindi ko po alam gamitin. Paano po ba yun? Example naman po kahit isang block lang ng code, let's say gagamitin ko letter 'A'. Thanks.  Grin
Logged
The Philippine Electronics and Technology Forum
« Reply #20 on: August 11, 2008, 06:40:00 AM »

 Logged
maldihtah13
Technical People
Nuclear Reactor
*****

Pogi/Ganda Points: 110
Offline Offline

Gender: Female
Posts: 4448


Everyday is a learning process so try to learn ;D


« Reply #21 on: August 11, 2008, 09:31:06 AM »

try to check this out

Code:
'**************************************
' Name: CheckKeypress
' Description:
' By: Martin Idman
'
' Inputs:KeyAscii from controls keypress
'     -event
cAllowed as a String ("N" For numbers only...)
'
' Returns:KeyAscii for pressed key if ok
'     or nothing and a beep for not ok
'
' Assumes:Put the call in a controls key
'     press-event
Ex: KeyAscii=CheckKeypress(KeyAscii, "N")
Will only allow the user To enter digits In a control
'
'This code is copyrighted and has' limited warranties.Please see http://w
'     ww.Planet-Source-Code.com/vb/scripts/Sho
'     wCode.asp?txtCodeId=1576&lngWId=1'for details.'**************************************



Public Function CheckKeyPress(iKeyIn As Integer, cAllowed As String) As Integer
    Dim cValidKeys As String


    Select Case cAllowed
        Case "N" ' Just numbers
        cValidKeys = "1234567890" & vbCr & vbTab & vbBack
        Case "N1" ' Decimal numbers
        cValidKeys = "1234567890," & vbCr & vbTab & vbBack
        Case "N2" ' Simple math
        cValidKeys = "1234567890+-*/=," & vbCr & vbTab & vbBack
        Case "C" ' Simple characterset(I'm Swedish, hence some strange ones)
        cValidKeys = "ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖAAÉEÜI- " & vbCr & vbTab & vbBack
        Case "C1" ' Enhanced characterset
        cValidKeys = "ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖAAÉEÜI&#,.-/\+-*%$<>:;@!?=() " & vbCr & vbTab & vbBack
        Case "C2" ' Enhanced + digits
        cValidKeys = "ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖAAÉEÜI1234567890½&#,.-/\+-*%$<>:;@!?=() " & vbCr & vbTab & vbBack
        Case "M" ' Mail and WWW
        cValidKeys = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_/\~:@." & vbCr & vbTab & vbBack
        Case "D" ' Date or telephonenumbers
        cValidKeys = "0123456789-" & vbCr & vbTab & vbBack
    End Select


If InStr(cValidKeys, UCase(Chr(iKeyIn))) Then
    CheckKeyPress = iKeyIn
Else
    Beep
    CheckKeyPress = 0
End If
End Function

I did not do this code so I'm not sure that this will work. I just copied it from somewhere
Logged
7_SeVeN_7
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 380
Offline Offline

Posts: 5954


There is no delight in owning anything unshared.


« Reply #22 on: August 11, 2008, 11:47:21 PM »

Dun nga po ako naguguluhan, hehehe, sa keypress. Hindi ko po alam gamitin. Paano po ba yun? Example naman po kahit isang block lang ng code, let's say gagamitin ko letter 'A'. Thanks.  Grin

di ko na masyadong tanda ang VB6 hehehe... kung .NET matutulungan kita Smiley Smiley Smiley
Logged

E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  Grin
Sandmaster
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 11



« Reply #23 on: August 12, 2008, 04:30:36 AM »

Hehe, Thanks po sa code. Eto nalang po... Pwede po ba magview sa application ko (sa VB6.0 uli ginawa) ng video from my webcam? Kung pwede, pano po? Code po uli.... Thanks  Grin
Logged
maldihtah13
Technical People
Nuclear Reactor
*****

Pogi/Ganda Points: 110
Offline Offline

Gender: Female
Posts: 4448


Everyday is a learning process so try to learn ;D


« Reply #24 on: August 12, 2008, 01:11:59 PM »

Usually ksi may ocx file na kailangan pra makita mo ung video. Try mo rin itong code:

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=28493&lngWId=1
Logged
Sandmaster
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 11



« Reply #25 on: August 12, 2008, 06:17:47 PM »

Maraming maraming salamat po sa lahat ng tumulong. God bless... Grin
Logged
maldihtah13
Technical People
Nuclear Reactor
*****

Pogi/Ganda Points: 110
Offline Offline

Gender: Female
Posts: 4448


Everyday is a learning process so try to learn ;D


« Reply #26 on: August 13, 2008, 08:04:27 AM »

Maraming maraming salamat po sa lahat ng tumulong. God bless... Grin

You can also give some pogi point pra nman maging gwapo ung mga tumutulong dito. he he he
Logged
elefonzero
LR44 Battery
*

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 3


CEBU autoshop 09


« Reply #27 on: September 15, 2008, 10:24:40 PM »

pls po... ano po ba magandang gawin na project.. vb applications for ece students.. suggetion pls... thanks..
Logged
maldihtah13
Technical People
Nuclear Reactor
*****

Pogi/Ganda Points: 110
Offline Offline

Gender: Female
Posts: 4448


Everyday is a learning process so try to learn ;D


« Reply #28 on: September 16, 2008, 10:11:48 AM »

pls po... ano po ba magandang gawin na project.. vb applications for ece students.. suggetion pls... thanks..

control something connected to the computer like ilaw o kya nman to monitor something like temperature and humidity. Marami at limit less nasa programmer ang limit at wla sa posibilities.
Logged
boolean
LR44 Battery
*

Pogi/Ganda Points: 0
Offline Offline

Posts: 4


« Reply #29 on: October 27, 2009, 04:39:33 AM »

Active X Data Object ang gamit ko.. for database backend..
Logged
eugene.dumon
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 16



« Reply #30 on: March 06, 2010, 05:56:40 AM »

Bro, relax lang.. kapatid natin yan .. nangangailangan lang ng kunting tulong.. Peace tayo lahat dito ha.. baka mauwi yan sa kung saan saan.. sabi mo dati sa isang thread "I LOVE YOU PRE"..  Grin  Grin


-creedcradle

hehe nice one sir...this made me smile.so much love in the world..
haha masarap lang isipin at namnamin yung word na kapatid natin yan'..
naks!..bless you sir
Logged

E U G E N E
archangel
Size AAA Battery
***

Pogi/Ganda Points: 1
Offline Offline

Gender: Male
Posts: 62


.......................


« Reply #31 on: August 15, 2010, 06:55:15 PM »

may tanong lang po ako...ano po kaugnayan ng vb6 sa vb.net?
parang upgrade po b ung vb.net?
Logged

maldihtah13
Technical People
Nuclear Reactor
*****

Pogi/Ganda Points: 110
Offline Offline

Gender: Female
Posts: 4448


Everyday is a learning process so try to learn ;D


« Reply #32 on: August 17, 2010, 09:54:30 PM »

may tanong lang po ako...ano po kaugnayan ng vb6 sa vb.net?
parang upgrade po b ung vb.net?

Yes but scripts are totally different. I want to try VBDOTNET too..
Logged
archangel
Size AAA Battery
***

Pogi/Ganda Points: 1
Offline Offline

Gender: Male
Posts: 62


.......................


« Reply #33 on: August 17, 2010, 10:06:56 PM »

tnx po..
Logged

.
Diesel Generator
*

Pogi/Ganda Points: 278
Offline Offline

Gender: Female
Posts: 1533



« Reply #34 on: August 18, 2010, 03:34:57 AM »

patambay....
Logged
7_SeVeN_7
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 380
Offline Offline

Posts: 5954


There is no delight in owning anything unshared.


« Reply #35 on: August 18, 2010, 09:55:37 AM »

OOP na ang VB.NET... you need to relearn some things and possibly view things in a different way... it will be a good opportunity to learn object oriented principles and be able to apply it as well Smiley
Logged

E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  Grin
Roland
Diesel Generator
*

Pogi/Ganda Points: 151
Offline Offline

Posts: 1354


Nothing exists out of nothing


« Reply #36 on: August 20, 2010, 09:44:03 PM »

Patulong naman ho. Paano po ba sa Visual Basic 6.0 yung imbes na ileleft-click yung command button eh pipindot nalang sa keyboard ng letter assigned sa command button na yun? Hindi po gagamitan ng ALT ha. Gusto ko po kasi mag-interface na magpapagana ng motor, clockwise (CW) and counter-clockwise (CCW), na pipindot nalang ng key sa keyboard kung CW or CCW. Please.... Salamat.  Grin

Private Sub Form_KeyPress(KeyAscii As Integer)
On Error Resume Next

If KeyAscii = 97 Then ' letter a
    call Umikot_ka_pakaliwa
ElseIf KeyAscii = 98 Then letter b
   call Umikot_ka_pakanan
End If
End Sub

munting example
Logged

In every action there's always an opposite and equal reaction.
cool_Taurus
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Posts: 76


« Reply #37 on: August 21, 2010, 03:51:10 PM »

Hi,

In my system, I need to use this modem in this two mode : Data and Voice.
For the Data part, no problems.
But for the voice part, I have no sound.
To call someone, I use AT commands in a VB application.
The communication are OK. I receive or i can send a call, but no sound pass beetween the two parts.
Of course, with AT commands, I change the sound and don't put in HP mode :
AT+CMUT = 0
AT+CLVL = 4
If I use Mobile Partner application, The voice are up. If I compare the AT log with mine, the two applications send the same commands.
I think the voice data are not transmit to the audio systems(HP, microphone)

Excuse me for my bad english.

Thanks to help me !
Logged
maldihtah13
Technical People
Nuclear Reactor
*****

Pogi/Ganda Points: 110
Offline Offline

Gender: Female
Posts: 4448


Everyday is a learning process so try to learn ;D


« Reply #38 on: August 27, 2010, 12:27:13 PM »

What kind of modem are you using? There are those that doesn't really support audio. There are those who has a mic and audio out port on the modem it self.
Logged
The Philippine Electronics and Technology Forum
   

 Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
The Impact of Visual Basic on Electronics versus Visual C++
General Electronics and Technology Discussion
underprezzure 11 1540 Last post November 01, 2008, 05:04:23 PM
by ef - el - ay - pee
visual basic to mysql connection
Database Management
paradox89 3 714 Last post July 01, 2011, 04:02:34 PM
by bigtitz
RFID + VISUAL BASIC 6.0 + MS ACCESS 2007 « 1 2 »
Thesis and Project Proposal
newo 24 877 Last post December 22, 2011, 05:04:40 PM
by erizpot
Parallel-to-serial converter and Visual basic 6
Computer Interfacing and Digital Communications
newo 5 161 Last post January 19, 2011, 12:08:23 AM
by newo
visual basic 6
General Electronics and Technology Discussion
spelter 8 118 Last post February 03, 2011, 09:32:08 PM
by spelter
Any suggested thesis Using Visual Basic/C# and RFID system
Thesis and Project Proposal
clivetrix 0 118 Last post December 17, 2011, 10:14:03 PM
by clivetrix
VISUAL BASIC 6.0 bluetooth communication with 2 laptops
BASIC, Visual BASIC and VB.NET
atosasoliber 3 63 Last post January 31, 2012, 11:39:27 PM
by PlCUSER
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!