• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:56
CEST 00:56
KST 07:56
  • 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
Classic wins Code S Season 2 (2025)10Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy5Code S RO8 Preview: herO, Zoun, Bunny, Classic7Code S RO8 Preview: Rogue, GuMiho, Solar, Maru3
Community News
Weekly Cups (June 9-15): herO doubles on GSL week2Firefly suspended by EWC, replaced by Lancer12Classic & herO RO8 Interviews: "I think it’s time to teach [Rogue] a lesson."2Rogue & GuMiho RO8 interviews: "Lifting that trophy would be a testament to all I’ve had to overcome over the years and how far I’ve come on this journey.8Code S RO8 Results + RO4 Bracket (2025 Season 2)14
StarCraft 2
General
The SCII GOAT: A statistical Evaluation TL Team Map Contest #5: Presented by Monster Energy Weekly Cups (June 9-15): herO doubles on GSL week The Memories We Share - Facing the Final(?) GSL Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game
Tourneys
RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament $5,100+ SEL Season 2 Championship (SC: Evo) SOOPer7s Showmatches 2025 SOOP Starcraft Global #22
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers [G] Darkgrid Layout
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 478 Instant Karma Mutation # 477 Slow and Steady Mutation # 476 Charnel House Mutation # 475 Hard Target
Brood War
General
FlaSh Witnesses SCV Pull Off the Impossible vs Shu StarCraft & BroodWar Campaign Speedrun Quest ASL20 Preliminary Maps BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion
Tourneys
[BSL 2v2] ProLeague Season 3 - Friday 21:00 CET Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET [BSL20] ProLeague Bracket Stage - WB Finals & LBR3
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Beyond All Reason What do you want from future RTS games?
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 Things Aren’t Peaceful in Palestine UK Politics Mega-thread Russo-Ukrainian War Thread Echoes of Revolution and Separation
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
[Manga] One Piece Korean Music Discussion
Sports
2024 - 2025 Football Thread TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024 Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
A Better Routine For Progame…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 32553 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
OSC
19:00
Mid Season Playoffs
sebesdes vs GgMaChineLIVE!
Babymarine vs Moja
SteadfastSC266
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 266
Livibee 134
ProTech80
StarCraft: Brood War
ZZZero.O 56
NaDa 10
League of Legends
Grubby4099
Counter-Strike
fl0m6701
olofmeister3319
sgares826
Stewie2K396
Skadoodle280
zeus237
rGuardiaN138
PGG 42
Other Games
summit1g7091
FrodaN3771
Dendi622
C9.Mang0559
Mew2King193
ViBE190
NeuroSwarm67
Trikslyr61
Sick60
KnowMe55
Dewaltoss49
PPMD44
Organizations
Other Games
gamesdonequick198
BasetradeTV38
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• RyuSc2 70
• musti20045 45
• Hupsaiya 37
• davetesta35
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Azhi_Dahaki24
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21849
League of Legends
• Doublelift5853
Other Games
• imaqtpie1129
Upcoming Events
Replay Cast
3h 4m
SOOP
10h 4m
Cure vs Zoun
SC Evo League
13h 4m
Road to EWC
15h 4m
SOOP Global
16h 4m
FuturE vs MaNa
Harstem vs Cham
BSL: ProLeague
19h 4m
Sziky vs JDConan
Cross vs MadiNho
Hawk vs Bonyth
Circuito Brasileiro de…
21h 4m
Sparkling Tuna Cup
1d 11h
Road to EWC
1d 15h
BSL: ProLeague
1d 19h
UltrA vs TBD
Dewalt vs TBD
[ Show More ]
Replay Cast
3 days
Replay Cast
5 days
The PondCast
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Acropolis #3 - GSC
2025 GSL S2
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
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
YaLLa Compass Qatar 2025
PGL Bucharest 2025

Upcoming

NPSL Lushan
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 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.