Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help]ComboBox Selection[Solved]

[Help]ComboBox Selection[Solved]

Posts 1–13 of 13 · Page 1 of 1
Invidus
Invidus
[Help]ComboBox Selection[Solved]
Say i had a comx right?
And then i wanted a TextBox to be visible once a certain item of the Comx is selected. How would i do that.
#1 · 16y ago
MJLover
MJLover
Quote Originally Posted by ilikewaterha View Post
Say i had a comx right?
And then i wanted a TextBox to be visible once a certain item of the Comx is selected. How would i do that.
[php]If COMBOBOX1.SelectedIndex = 0 Then
TextBox1.visible=false
else
textbox1.visible=true
end if

[/php]
#2 · 16y ago
Invidus
Invidus
Thanks MJ, i'll test now
#3 · 16y ago
NextGen1
NextGen1
Mj's code will visible on any selected change

Try , For a specific item it will be

[php]
If Combobox1.selecteditem = "Item Here" Then
Textbox1.Visible = true
End if
[/php]

or use selected index (knowing which index you want it to display on)

[php]
If combobox1.SelectedIndex = 1 Then 'or the index you want to display the textbox
TextBox1.visible=true
else
textbox1.visible=False
end if
[/php]
#4 · 16y ago
Invidus
Invidus
Thanks NextGen, i think its working nao =D
#5 · 16y ago
MJLover
MJLover
LOL, That was just an example on how to change visibility using indexes

I was so tired that writing a single line was difficult for me at that time hehe
#6 · 16y ago
zmansquared
zmansquared
I would try if my vb worked :P

Thanks this will become helpful
#7 · 16y ago
Invidus
Invidus
definitely =D.
#8 · 16y ago
Blubb1337
Blubb1337
Idk why but I prefer using textchanged

Code:
 Private Sub ComboBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.TextChanged
      
  If ComboBox2.Text = "Whatever" Then
textbox1.visible = true
else
textbox1.visible = false
end if
        
    End Sub
#9 · 16y ago
Invidus
Invidus
That could work, but in my case i'd prefer to use NextGen's solution. Thanks for sharing though Blubb =D
#10 · 16y ago
Blubb1337
Blubb1337
My pleasure...

Fine, both solutions are possible :P

Depends on what you prefer
#11 · 16y ago
Invidus
Invidus
Yes! And also the situation!
#12 · 16y ago
NextGen1
NextGen1
Not a problem, Marked Solved

Left Open for other users
#13 · 16y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help]ComboBox Selections[Solved]By ppl2pass in Visual Basic Programming
    5Last post 16y ago
  • [Help]random selections ComboBoxBy ppl2pass in Visual Basic Programming
    4Last post 16y ago
  • [Help] WMP selecting song from ListBox [solved]By alvaritos in Visual Basic Programming
    10Last post 15y ago
  • Help me to solve this ? :#By josias008 in Combat Arms Help
    9Last post 15y ago
  • [Help]ListBox.Item.Selected[Solved]By hopefordope in Visual Basic Programming
    6Last post 16y ago

Tags for this Thread

None