Hello everyone my name is Maurizio
And my problem and this: in a Userform I inserted three OptionButton and a button.
Now the purpose of this project would be to be able "Stop; Ri Start, Suspend, and disconnect my PC" Everything Leveraging the Windows API.
Now I my I tried to create this little program that will send Volenteri, But I can not get what I want because: I currently any button press, I just log off.
For here there is anyone of you a rough idea of how to succeed in ottebere everything else Thanks
Hi Maurizio,
The Shutdown and Restart buttons were mis-named in the form designer so I fixed that.
I also Grouped the 3 x radio buttons together.
In your CommandButton4_Click() sub you don't need to use .Value when referencing the value of the buttons, the buttons are only ever true or false.
Try the attached workbook.
Regards
Phil
Hello Philip Treacy Thanks for Your Support, and very nice what you will study it with me Submitted Warning.
Even itself still is, the True in the Meantime I had already solved, just that I know If I can never dare Put in My Finite projects in these types of Forum.
You know I would never offend anyone!
Thank you for your Involvement Sincere greetings from A.Maurizio