• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:13
CEST 08:13
KST 15:13
  • 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
Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN3The Memories We Share - Facing the Final(?) GSL30Code S RO12 Preview: Cure, Zoun, Solar, Creator4[ASL19] Finals Preview: Daunting Task30[ASL19] Ro4 Recap : The Peak15
Community News
Code S RO12 Results + RO8 Groups (2025 Season 2)3Weekly Cups (May 19-25): Hindsight is 20/20?0DreamHack Dallas 2025 - Official Replay Pack8[BSL20] RO20 Group Stage2EWC 2025 Regional Qualifiers (May 28-June 1)34
StarCraft 2
General
The Memories We Share - Facing the Final(?) GSL Code S RO12 Results + RO8 Groups (2025 Season 2) CN community: Firefly accused of suspicious activities Maru & Rogue GSL RO12 interviews: "I think the pressure really got to [trigger]" Karma, Domino Effect, and how it relates to SC2.
Tourneys
EWC 2025 Regional Qualifiers (May 28-June 1) RSL: Revival, a new crowdfunded tournament series DreamHack Dallas 2025 Last Chance Qualifiers for OlimoLeague 2024 Winter [GSL 2025] Code S:Season 2 - RO12 - Group B
Strategy
Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 475 Hard Target Mutation # 474 Futile Resistance Mutation # 473 Cold is the Void Mutation # 472 Dead Heat
Brood War
General
Will foreigners ever be able to challenge Koreans? BGH auto balance -> http://bghmmr.eu/ Battle.net is not working BW General Discussion Which player typ excels at which race or match up?
Tourneys
[ASL19] Grand Finals [BSL 2v2] ProLeague Season 3 - Friday 21:00 CET [BSL20] RO20 Group D - Sunday 20:00 CET [BSL20] RO20 Group B - Saturday 20:00 CET
Strategy
[G] How to get started on ladder as a new Z player I am doing this better than progamers do.
Other Games
General Games
Monster Hunter Wilds Path of Exile Nintendo Switch Thread Beyond All Reason Battle Aces/David Kim RTS Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread TL Mafia Plays: Diplomacy TL Mafia: Generative Agents Showdown Survivor II: The Amazon
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread All you football fans (soccer)! European Politico-economics QA Mega-thread
Fan Clubs
Serral Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion!
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard How to clean a TTe Thermaltake keyboard?
TL Community
The Automated Ban List TL.net Ten Commandments
Blogs
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Yes Sir! How Commanding Impr…
TrAiDoS
Poker
Nebuchad
Info SLEgma_12
SLEgma_12
SECOND COMMING
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 13319 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 States231 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
Online Event
04:00
May Mayhem: Playoffs
Clem vs ShoWTimE
herO vs MaxPax
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 298
StarCraft: Brood War
Sea 6275
actioN 626
PianO 383
Mind 52
soO 36
Icarus 23
Aegong 22
Noble 12
sSak 11
ajuk12(nOOB) 4
[ Show more ]
scan(afreeca) 4
Bale 3
League of Legends
JimRising 793
Counter-Strike
tarik_tv9120
Stewie2K1535
Heroes of the Storm
Khaldor196
Other Games
summit1g8308
WinterStarcraft610
ViBE277
Organizations
Other Games
gamesdonequick713
StarCraft: Brood War
CasterMuse 17
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• practicex 128
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 30
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt642
• HappyZerGling89
Upcoming Events
Road to EWC
2h 47m
AllThingsProtoss
4h 47m
Road to EWC
9h 47m
BSL Season 20
11h 47m
Bonyth vs Doodle
Bonyth vs izu
Bonyth vs MadiNho
Bonyth vs TerrOr
MadiNho vs TerrOr
Doodle vs izu
Doodle vs MadiNho
Doodle vs TerrOr
Replay Cast
1d 17h
Replay Cast
2 days
Bellum Gens Elite
3 days
The PondCast
4 days
Bellum Gens Elite
4 days
Replay Cast
4 days
[ Show More ]
Bellum Gens Elite
5 days
Replay Cast
5 days
CranKy Ducklings
6 days
SC Evo League
6 days
Bellum Gens Elite
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-05-28
DreamHack Dallas 2025
Calamity Stars S2

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL Season 17: Qualifier 1
2025 GSL S2
Heroes 10 EU
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025

Upcoming

CSL Season 17: Qualifier 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLAN 2025
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Bellum Gens Elite Stara Zagora 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 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.