• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:01
CEST 07:01
KST 14:01
  • 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
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL54Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation The GOAT ranking of GOAT rankings Statistics for vetoed/disliked maps How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
Korean Starcraft League Week 77 Master Swan Open (Global Bronze-Master 2) RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Player “Jedi” cheat on CSL Flash Announces Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ Unit and Spell Similarities Help: rep cant save
Tourneys
[Megathread] Daily Proleagues [BSL20] Grand Finals - Sunday 20:00 CET Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Trading/Investing Thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 687 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
Korean StarCraft League
03:00
Week 77
EnkiAlexander 102
HKG_Chickenman78
davetesta76
IntoTheiNu 61
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 255
PiLiPiLi 18
Dota 2
monkeys_forever725
NeuroSwarm128
febbydoto21
League of Legends
JimRising 817
Heroes of the Storm
Khaldor76
Other Games
summit1g7994
WinterStarcraft600
Organizations
Other Games
BasetradeTV56
StarCraft: Brood War
UltimateBattle 32
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Berry_CruncH305
• Hupsaiya 81
• Adnapsc2 1
• LaughNgamezSOOP
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• Diggity6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Lourlo1406
• masondota2470
• Stunt409
Upcoming Events
CranKy Ducklings
4h 59m
RSL Revival
4h 59m
ByuN vs Cham
herO vs Reynor
FEL
10h 59m
RSL Revival
1d 4h
Clem vs Classic
SHIN vs Cure
FEL
1d 6h
BSL: ProLeague
1d 12h
Dewalt vs Bonyth
Replay Cast
2 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
Replay Cast
4 days
[ Show More ]
RSL Revival
5 days
Replay Cast
5 days
RSL Revival
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.