MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides  
Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > Programming > Programming section > VB
Reload this Page [Question] link combo box to button
VB Discussions about VB programming

Reply
 
LinkBack Thread Tools
(#16)
Old
Anthonyrox8's Avatar
Anthonyrox8 is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 19
Anthonyrox8 is on a distinguished road
 
Posts: 251
Join Date: Aug 2007
Location: Australia
10-08-2008

mkay now it doesnt do nethink nopopups
Edit: wait nvm



ADMIN for Sydney WoW ~ 3.0.3 Server coming soon.
Reply With Quote

Donate to remove ads.
(#17)
Old
Anthonyrox8's Avatar
Anthonyrox8 is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 19
Anthonyrox8 is on a distinguished road
 
Posts: 251
Join Date: Aug 2007
Location: Australia
10-08-2008

cool thanks. i still need help lol on the next form now hehe
Code:
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
        Shell("shutdown -s -t 100")
    End Sub



ADMIN for Sydney WoW ~ 3.0.3 Server coming soon.
Reply With Quote
(#18)
Old
The Maffyx is Offline
Lieutenant Commander
Rep Power: 2
Reputation: 67
The Maffyx will become famous soon enough
 
Posts: 668
Join Date: Feb 2007
10-08-2008

Is this inside a case? If is, It should work, I got a message that says Windows will shutdown in 1 minute, but I aborted it. So I'm not sure what the error is?




Reply With Quote
(#19)
Old
Anthonyrox8's Avatar
Anthonyrox8 is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 19
Anthonyrox8 is on a distinguished road
 
Posts: 251
Join Date: Aug 2007
Location: Australia
10-08-2008

mmm inside a case? lol



ADMIN for Sydney WoW ~ 3.0.3 Server coming soon.
Reply With Quote
(#20)
Old
The Maffyx is Offline
Lieutenant Commander
Rep Power: 2
Reputation: 67
The Maffyx will become famous soon enough
 
Posts: 668
Join Date: Feb 2007
10-08-2008

Select Case
Case 1
<here>
Case 2
Case 3




Reply With Quote
(#21)
Old
Anthonyrox8's Avatar
Anthonyrox8 is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 19
Anthonyrox8 is on a distinguished road
 
Posts: 251
Join Date: Aug 2007
Location: Australia
10-08-2008

Also before i leave how do u start a program with Vb such as solitaire



ADMIN for Sydney WoW ~ 3.0.3 Server coming soon.
Reply With Quote
(#22)
Old
Anthonyrox8's Avatar
Anthonyrox8 is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 19
Anthonyrox8 is on a distinguished road
 
Posts: 251
Join Date: Aug 2007
Location: Australia
10-08-2008

no its not its in an other form Form1



ADMIN for Sydney WoW ~ 3.0.3 Server coming soon.
Reply With Quote
(#23)
Old
The Maffyx is Offline
Lieutenant Commander
Rep Power: 2
Reputation: 67
The Maffyx will become famous soon enough
 
Posts: 668
Join Date: Feb 2007
10-08-2008

do
Code:
System.Diagnostics.Process.Start("filepath to solitaire.exe here")
That can be placed in a button, case or whatever, pretty standard.




Reply With Quote
(#24)
Old
Anthonyrox8's Avatar
Anthonyrox8 is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 19
Anthonyrox8 is on a distinguished road
 
Posts: 251
Join Date: Aug 2007
Location: Australia
10-08-2008

m still having trouble with the shutdown thing i want a box to popup and say would u like to continue and have a OK button at the bottom but its just not working with the shell thing



ADMIN for Sydney WoW ~ 3.0.3 Server coming soon.
Reply With Quote
(#25)
Old
MaiN is Offline
Contributor
Rep Power: 3
Reputation: 117
MaiN will become famous soon enoughMaiN will become famous soon enough
 
Posts: 385
Join Date: Sep 2006
Location: Jaedenar O.o
10-09-2008

As I dont have MS Visual Basic Express installed on my computer I cant do it in VB, but I can do it in C# for you.

Code:
if (MessageBox.Show("Do you want to continue?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
{
Shell("shutdown -s -t 100");
}
Basicly it checks if you press the 'Yes' button.
Should be easily adapated to visual basic.



I was here. ~
Dragon[Sky] I was here too. ~Kuiren
Reply With Quote
(#26)
Old
ReidE96's Avatar
ReidE96 is Offline
Contributor
Rep Power: 3
Reputation: 266
ReidE96 is a jewel in the roughReidE96 is a jewel in the roughReidE96 is a jewel in the rough
 
Posts: 758
Join Date: Dec 2006
Location: Scotland
10-09-2008

Straight conversion of what MaiN posted to VB.NET:
Code:
If MessageBox.Show("Do you want to continue?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) = DialogResult.Yes Then
    Shell("shutdown -s -t 100")
End If


Reply With Quote
(#27)
Old
Anthonyrox8's Avatar
Anthonyrox8 is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 19
Anthonyrox8 is on a distinguished road
 
Posts: 251
Join Date: Aug 2007
Location: Australia
10-12-2008

Ty for all of ur post you realli helpped me rep to all of u



ADMIN for Sydney WoW ~ 3.0.3 Server coming soon.
Reply With Quote
(#28)
Old
nightshack's Avatar
nightshack is Offline
Contributor
Rep Power: 2
Reputation: 106
nightshack will become famous soon enoughnightshack will become famous soon enough
 
Posts: 216
Join Date: Jan 2007
10-16-2008

Easier:

Code:
        If box.Text = "Notepad" Then
            Shell("notepad", vbMaximizedFocus)
        End If
'box" would be the combo box


- Don't worry about it, it looks legit. -NightShack
Reply With Quote
(#29)
Old
Caroe's Avatar
Caroe is Offline
Master Sergeant
Rep Power: 2
Reputation: 14
Caroe is on a distinguished road
 
Posts: 73
Join Date: Jul 2007
Location: H4x0r W0r|d
10-16-2008

well this one is easy to do in "Easy Coding" u dont have to use those VooDoo codes. just use the very normally used codes :

If Combobox1.text = "Item" Then
Shell (Item) - Only if its shell
Elseif Combobox1.text = "Item2" then
blalba
Elseif combobox1.text = "Item3" then
blslslbls


just keep on doing this.
Reply With Quote
(#30)
Old
OMGPanic!'s Avatar
OMGPanic! is Offline
Master Sergeant
Rep Power: 1
Reputation: 8
OMGPanic! is an unknown quantity at this point
 
Posts: 81
Join Date: Oct 2008
Location: Orgrimmar
10-16-2008

Quote:
Originally Posted by Caroe View Post
well this one is easy to do in "Easy Coding" u dont have to use those VooDoo codes. just use the very normally used codes :

If Combobox1.text = "Item" Then
Shell (Item) - Only if its shell
Elseif Combobox1.text = "Item2" then
blalba
Elseif combobox1.text = "Item3" then
blslslbls


just keep on doing this.
This is exactly what case switch statements are for.
Code:
Select Case combobox1.text
      Case Item1
        return a;
      Case Item2
        return b;
      Case Item3
        return c;
      Case Else
         msgbox("Error")
        return x;
    End Select


Moved house and now have limited internet access. Cant work till its back. STRESSED.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361