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] Visibility

[Help] Visibility

Posts 1–15 of 19 · Page 1 of 2
Invidus
Invidus
[Help] Visibility
How would i say..
If i had a textbox and a combo box
and i want there to be a button to proceed to the nxt form.
How would i make the button appear/enabled when the txtbox&comx are filled? Like, so the button is disabled when they are empty and i want it to be enabled when they are filled in.

So would it be like,
[php]If TextBoxX2.Text & ComboBox1.Text = "" Then
ButtonX1.Enabled = False
Else
ButtonX1.Enabled = True
End If[/php]
#1 · 16y ago
Obama
Obama
Ermmm Im not understand the question
#2 · 16y ago
Invidus
Invidus
......... Typical. Lol Read it again o.o
#3 · 16y ago
SK
skiiiz
Im not quite understanding the question but here's a code you can try out (not sure if this is what you mean)

Place this under TextBox1 (or another number) _textchanged
Just double click on the textbox
Code:
If Not TextBox1.Text = "" Then
Button1.Enabled = True
Else
Button1.Enabled = False
TextBox1.Text = ""
End If
#4 · 16y ago
Invidus
Invidus
That could work, but in this case, i need TextBox AND Combo box to be filled in for ButtonX1 to be enabled o.o
#5 · 16y ago
NextGen1
NextGen1
[php]

'Put this in both text and comx change events

If Not Trim(TextBox1.Text) = "" And Not Trim(ComboBox1.Text) = "" Then
Button1.Enabled = True
Else
Button1.Enabled = False
End If


[/php]

So it should look like this

[php]
Private Sub ComboBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.TextChanged
If Not Trim(TextBox1.Text) = "" And Not Trim(ComboBox1.Text) = "" Then
Button1.Enabled = True
Else
Button1.Enabled = False
End If
End Sub


Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If Not Trim(TextBox1.Text) = "" And Not Trim(ComboBox1.Text) = "" Then
Exit Sub
Else
Button1.Enabled = True
End If
End Sub
[/php]





#6 · edited 16y ago · 16y ago
Invidus
Invidus
K thanks i'll see if it works.
#7 · 16y ago
zmansquared
zmansquared
No its really simple
(Put under button1 and form 1)

If checkbox1.checked '(or radiobutton1, etc) = true then
button1.enabled = true
else
button1.enabled = false
#8 · 16y ago
Invidus
Invidus
*groan* you dont get it! NOT CHECKBOX! i want the comx and textbox to be filled in before i can press OK
#9 · 16y ago
Invidus
Invidus
BTW Nextgen it dosnt work o.o
#10 · 16y ago
zmansquared
zmansquared
ah i see. ill look into it
#11 · 16y ago
Invidus
Invidus
ok thanks zman
#12 · 16y ago
Obama
Obama
So /close, does it work?
#13 · 16y ago
Invidus
Invidus
No it doesnt >.< still resolving
#14 · 16y ago
Zoom
Zoom
Quote Originally Posted by ilikewaterha View Post
No it doesnt >.< still resolving
[php]Dim number as integer
Dim number1 as integer


If TextBoxX2.Text is nothing Then


Else
number = 1

End If

If ComboBox1.Text is nothing Then

Else
number1 = 1
End If


if number = 1 and number1 = 1 then
ButtonX1.Enabled = True
else
ButtonX1.Enabled = False
end if[/php]

Or you can use = "" instead of is nothing....

I think this works above(it might be some wrong spelling because i just wrote it in mpgh's post form, not in vb)
#15 · 16y ago
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

  • Help my walls are not visible :(By ProSHOTS in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    10Last post 15y ago
  • Help my!By Windowns7 in Combat Arms BR Coding Help
    2Last post 15y ago
  • Combat arms Vid helpBy djw111 in Combat Arms Help
    4Last post 14y ago
  • Ajuda / HelpBy - Battery' in Combat Arms BR Coding Help
    3Last post 15y ago
  • AFK Bot [help]By fet in Combat Arms Help
    7Last post 15y ago

Tags for this Thread

None