• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:37
CEST 05:37
KST 12:37
  • 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
[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature3Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18Serral wins EWC 202549
Community News
Maestros of The Game—$20k event w/ live finals in Paris18Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195Weekly Cups (Jul 28-Aug 3): herO doubles up6
StarCraft 2
General
What mix of new and old maps do you want in the next 1v1 ladder pool? (SC2) : Geoff 'iNcontroL' Robinson has passed away The GOAT ranking of GOAT rankings RSL Revival patreon money discussion thread Weekly Cups (Aug 11-17): MaxPax triples again!
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris Sparkling Tuna Cup - Weekly Open Tournament Monday Nights Weeklies Master Swan Open (Global Bronze-Master 2) $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
Custom Maps
External Content
Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below Mutation # 484 Magnetic Pull
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL BW General Discussion BW AKA finder tool Maps with Neutral Command Centers Victoria gamers
Tourneys
[ASL20] Ro24 Group C [Megathread] Daily Proleagues [ASL20] Ro24 Group A [ASL20] Ro24 Group B
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
General RTS Discussion Thread Dawn of War IV Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread
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
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
High temperatures on bridge(s) Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment"
TL Community
"World Leading Blockchain Asset Retrieval" The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Breaking the Meta: Non-Stand…
TrAiDoS
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2480 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 79
CranKy Ducklings82
davetesta43
HKG_Chickenman17
IntoTheiNu 9
Liquipedia
The PiG Daily
21:00
Best Games of EWC
Serral vs Cure
Classic vs Solar
PiGStarcraft522
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft522
RuFF_SC2 142
Nina 52
PiLiPiLi 13
StarCraft: Brood War
ggaemo 255
Sexy 75
NaDa 57
Leta 34
Jaeyun 20
Icarus 7
Dota 2
monkeys_forever878
NeuroSwarm119
League of Legends
JimRising 634
Counter-Strike
Stewie2K149
Super Smash Bros
amsayoshi42
Other Games
tarik_tv14074
summit1g7782
shahzam536
C9.Mang0482
ViBE241
Trikslyr43
Organizations
Other Games
gamesdonequick923
BasetradeTV42
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH58
• Sammyuel 2
• Kozan
• AfreecaTV YouTube
• intothetv
• sooper7s
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Azhi_Dahaki12
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Lourlo491
• Stunt196
Upcoming Events
CranKy Ducklings
6h 23m
SC Evo League
8h 23m
WardiTV Summer Champion…
9h 23m
Classic vs Percival
Spirit vs NightMare
CSO Cup
12h 23m
[BSL 2025] Weekly
14h 23m
Sparkling Tuna Cup
1d 6h
SC Evo League
1d 8h
Replay Cast
1d 20h
Afreeca Starleague
2 days
Queen vs HyuN
EffOrt vs Calm
Wardi Open
2 days
[ Show More ]
RotterdaM Event
2 days
Replay Cast
2 days
Afreeca Starleague
3 days
Rush vs TBD
Jaedong vs Mong
Afreeca Starleague
4 days
herO vs TBD
Royal vs Barracks
Replay Cast
4 days
The PondCast
5 days
Replay Cast
5 days
LiuLi Cup
6 days
Cosmonarchy
6 days
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
BSL Team Wars
6 days
Team Hawk vs Team Dewalt
BSL Team Wars
6 days
Team Hawk vs Team Bonyth
Liquipedia Results

Completed

Jiahua Invitational
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
Acropolis #4 - TS1
CSLAN 3
SEL Season 2 Championship
WardiTV Summer 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL Season 18: Qualifier 2
CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
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.