• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:04
CEST 11:04
KST 18:04
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Chinese SC2 server to reopen; live all-star event in Hangzhou21Weekly Cups (Oct 13-19): Clem Goes for Four3BSL Team A vs Koreans - Sat-Sun 16:00 CET9Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)81
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Chinese SC2 server to reopen; live all-star event in Hangzhou The New Patch Killed Mech! Weekly Cups (Oct 13-19): Clem Goes for Four 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
Merivale 8 Open - LAN - Stellar Fest Tenacious Turtle Tussle RSL Season 3 Qualifier Links and Dates $1,200 WardiTV October (Oct 21st-31st) SC2's Safe House 2 - October 18 & 19
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers
Brood War
General
BSL Team A vs Koreans - Sat-Sun 16:00 CET OGN to release AI-upscaled StarLeague from Feb 24 Is there anyway to get a private coach? BW General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
ASL final tickets help Small VOD Thread 2.0 [Megathread] Daily Proleagues [ASL20] Semifinal B
Strategy
Roaring Currents ASL final Relatively freeroll strategies BW - ajfirecracker Strategy & Training TvP Upgrades
Other Games
General Games
Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread Dawn of War IV ZeroSpace Megathread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread The Chess Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Korean Music Discussion Series you have seen recently... Movie Discussion!
Sports
MLB/Baseball 2023 2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
The Benefits Of Limited Comm…
TrAiDoS
Sabrina was soooo lame on S…
Peanutsc
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1426 users

Please help me with Visual Basic 6.0 hotkeys

Blogs > JieXian
Post a Reply
JieXian
Profile Blog Joined August 2008
Malaysia4677 Posts
May 15 2009 17:48 GMT
#1
I want to set the hotkey for cmd1 to F1. But i dont know how.

This is what i have done

1. Public Sub Form_Load()
2. KeyPreview = True
3. End Sub

1. Private Sub Form_KeyDown(KeyCodeConstants As Integer, Shift As Integer)
2. KeyPreview = True
3. If KeyCodeConstants = vbKeyF1 Then cmd1_Click
4. If KeyCodeConstants = vbKeyF2 Then cmd2_Click
5. End Sub

When i press F1 or F2, i get an error msg "Compile error : Sub or Function not defined"

Can anyone please help me? Thank you!

i'm using vb 6.0 enterprise edition

Please send me a PM of any song you like that I most probably never heard of! I am looking for people to chat about writing and producing music | https://www.youtube.com/watch?v=noD-bsOcxuU |
Cambium
Profile Blog Joined June 2004
United States16368 Posts
Last Edited: 2009-05-15 20:27:07
May 15 2009 20:24 GMT
#2
I don't remember much about VB, but don't you need like an action listener of some sort? Or is that all handled internally?

Also, maybe you don't have the form on focus?
When you want something, all the universe conspires in helping you to achieve it.
DeathSpank
Profile Blog Joined February 2009
United States1029 Posts
Last Edited: 2009-05-15 20:34:41
May 15 2009 20:33 GMT
#3
check your syntax!

idk its been so long and visual basic is for noobs anyways.
yes.
ThaddeusK
Profile Joined July 2008
United States233 Posts
May 15 2009 20:34 GMT
#4
On May 16 2009 02:48 JieXian wrote:

3. If KeyCodeConstants = vbKeyF1 Then cmd1_Click
4. If KeyCodeConstants = vbKeyF2 Then cmd2_Click


its been awhile since i used vb, but im pretty sure these should have parameters, i dont remember what they are tho >.>
Patriot.dlk
Profile Blog Joined October 2004
Sweden5462 Posts
May 15 2009 20:35 GMT
#5
Since the right kind of people will join this I'm asking a question here instead a useless blog entry=p

When I have several Java classes that perform SQL query's in a database, how can I use those classes through the web?

I have a swing GUI already but I want to hook up a web GUI and I will get shot in school if write new methods for this rather then using the ones I have.
Cambium
Profile Blog Joined June 2004
United States16368 Posts
May 15 2009 21:41 GMT
#6
On May 16 2009 05:35 Patriot.dlk wrote:
Since the right kind of people will join this I'm asking a question here instead a useless blog entry=p

When I have several Java classes that perform SQL query's in a database, how can I use those classes through the web?

I have a swing GUI already but I want to hook up a web GUI and I will get shot in school if write new methods for this rather then using the ones I have.


If I'm understanding you correctly, you need to use a servlet.

Try Tomcat, it's pretty easy to use.
When you want something, all the universe conspires in helping you to achieve it.
Patriot.dlk
Profile Blog Joined October 2004
Sweden5462 Posts
May 15 2009 23:58 GMT
#7
On May 16 2009 06:41 Cambium wrote:
Show nested quote +
On May 16 2009 05:35 Patriot.dlk wrote:
Since the right kind of people will join this I'm asking a question here instead a useless blog entry=p

When I have several Java classes that perform SQL query's in a database, how can I use those classes through the web?

I have a swing GUI already but I want to hook up a web GUI and I will get shot in school if write new methods for this rather then using the ones I have.


If I'm understanding you correctly, you need to use a servlet.

Try Tomcat, it's pretty easy to use.


Thanks =)
looks like I have some reading to do!
JieXian
Profile Blog Joined August 2008
Malaysia4677 Posts
Last Edited: 2009-05-16 02:25:17
May 16 2009 02:22 GMT
#8
On May 16 2009 05:34 ThaddeusK wrote:
Show nested quote +
On May 16 2009 02:48 JieXian wrote:

3. If KeyCodeConstants = vbKeyF1 Then cmd1_Click
4. If KeyCodeConstants = vbKeyF2 Then cmd2_Click


its been awhile since i used vb, but im pretty sure these should have parameters, i dont remember what they are tho >.>


That's what i'm stuck with! aaaaahhhhhhh!!!!

Yes, i'm a noob but vb6 is in the syllabus
Please send me a PM of any song you like that I most probably never heard of! I am looking for people to chat about writing and producing music | https://www.youtube.com/watch?v=noD-bsOcxuU |
haduken
Profile Blog Joined April 2003
Australia8267 Posts
May 16 2009 05:07 GMT
#9
Okay, i will ask one too.

I need to perform a access authentication using C++, the server in question is running php/MYSQL.

code flow:

access authenticate with server
get the output
parse the output for results i need

So i guess i'm looking for ways (preferably via libaries)to simulate POST in C++... any ideas? my php knowledge is rudimentary >.<

P.S. this will be done in linux so no .NET libs.
Rillanon.au
Please log in or register to reply.
Live Events Refresh
Next event in 56m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Larva 520
Leta 445
Dewaltoss 77
Aegong 44
Backho 37
Sharp 17
zelot 12
Dota 2
XcaliburYe449
ODPixel359
League of Legends
JimRising 641
Counter-Strike
Stewie2K658
Super Smash Bros
Mew2King62
Heroes of the Storm
Khaldor118
Other Games
summit1g8805
singsing973
Happy240
mouzStarbuck107
Trikslyr24
Organizations
Other Games
gamesdonequick547
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• StrangeGG 87
• LUISG 28
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1770
Upcoming Events
RSL Revival
56m
WardiTV Invitational
1h 56m
OSC
5h 56m
SKillous vs goblin
Spirit vs GgMaChine
ByuN vs MaxPax
Afreeca Starleague
22h 56m
Snow vs Soma
Sparkling Tuna Cup
1d
WardiTV Invitational
1d 2h
CrankTV Team League
1d 3h
BASILISK vs Streamerzone
Team Liquid vs Shopify Rebellion
Team Vitality vs Team Falcon
BSL Team A[vengers]
1d 5h
Gypsy vs nOOB
JDConan vs Scan
RSL Revival
1d 7h
Wardi Open
2 days
[ Show More ]
CrankTV Team League
2 days
Replay Cast
3 days
WardiTV Invitational
3 days
CrankTV Team League
3 days
Replay Cast
4 days
CrankTV Team League
4 days
Replay Cast
4 days
The PondCast
4 days
CrankTV Team League
5 days
Replay Cast
6 days
WardiTV Invitational
6 days
CrankTV Team League
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.