☰
d2jsp
Rules
Help
Forum Gold FAQ
Live Streams
Photo Gallery
Hourly Raffle
Ladder Slasher
Log In
Register
Log In
Register
Account Recovery
Resend Validation Email
d2jsp Forums
>
Off-Topic
>
General Chat
>
General Archive
> Anybody Know Visual Basic? > Halp
Add Reply
New Topic
Views: 62
Replies: 7
dankmemes1337
Member
Posts: 432
Joined: Jul 29 2016
Gold
:
0.00
#1
Aug 11 2016 03:29pm
I don't want to use Me.States.Value to get the value of the list box. Is there another way I can do this?
Private Sub UserForm_Initialize()
With States
.AddItem "Illinois"
.AddItem "Indiana"
.AddItem "Iowa"
.AddItem "Michigan"
.AddItem "Minnesota"
.AddItem "Ohio"
.AddItem "Pennsylvania"
.AddItem "Wisconsin"
.Value = "Indiana"
End With
End Sub
Private Sub ok_Click()
MsgBox ("You live in " & Me.States.Value)
End Sub
This post was edited by dankmemes1337 on Aug 11 2016 03:29pm
Lray
Member
Posts: 9,246
Joined: Jul 27 2016
Gold
:
17,071.70
#2
Aug 11 2016 03:32pm
no
bl4ckw1dow
Member
Posts: 2,268
Joined: Oct 13 2013
Gold
:
48,137.20
#3
Aug 11 2016 03:40pm
http://forums.d2jsp.org/forum.php?f=120
This post was edited by bl4ckw1dow on Aug 11 2016 03:40pm
dankmemes1337
Member
Posts: 432
Joined: Jul 29 2016
Gold
:
0.00
#4
Aug 11 2016 04:17pm
Quote (bl4ckw1dow @ Aug 11 2016 05:40pm)
http://forums.d2jsp.org/forum.php?f=120
thx
eggson
Member
Posts: 12,355
Joined: Aug 19 2008
Gold
:
742.00
#5
Aug 11 2016 05:26pm
why would you not want to use the property built for that purpose
dankmemes1337
Member
Posts: 432
Joined: Jul 29 2016
Gold
:
0.00
#6
Aug 11 2016 11:25pm
Quote (eggson @ Aug 11 2016 07:26pm)
why would you not want to use the property built for that purpose
We didn't cover it in class so I dont wanna get caught getting the idea from a yahoo answers post lol
impdemon
Member
Posts: 17,472
Joined: Apr 4 2012
Gold
:
18.31
#7
Aug 12 2016 04:54pm
the know
Flameyes
Member
Posts: 47,612
Joined: May 29 2012
Gold
:
5,475.04
#8
Aug 12 2016 04:57pm
I know google
Go Back To
General Archive
Topic List
Add Reply
New Topic
© 2003-2024 d2jsp
Contact