mkay now it doesnt do nethink nopopups
Edit: wait nvm
mkay now it doesnt do nethink nopopups
Edit: wait nvm
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
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?
mmm inside a case? lol
Select Case
Case 1
<here>
Case 2
Case 3
Also before i leave how do u start a program with Vb such as solitaire
no its not its in an other form Form1
doThat can be placed in a button, case or whatever, pretty standard.Code:System.Diagnostics.Process.Start("filepath to solitaire.exe here")
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
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.
Basicly it checks if you press the 'Yes' button.Code:if (MessageBox.Show("Do you want to continue?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes) { Shell("shutdown -s -t 100"); }
Should be easily adapated to visual basic.
[16:15:41] Cypher: caus the CPU is a dick
[16:16:07] kynox: CPU is mad
[16:16:15] Cypher: CPU is all like
[16:16:16] Cypher: whatever, i do what i want
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
Ty for all of ur post you realli helpped merep to all of u
![]()
Easier:
'box" would be the combo boxCode:If box.Text = "Notepad" Then Shell("notepad", vbMaximizedFocus) End If
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.
Moved house and now have limited internet access. Cant work till its back. STRESSED.