1 Replies - 1501 Views - Last Post: 30 June 2009 - 03:20 AM Rate Topic: -----

#1 Panarchy  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 82
  • Joined: 28-November 07

How do I make a button within a Windows Forms project link to ShellExe

Post icon  Posted 19 May 2009 - 05:05 AM

Hi

I've created a Windows Forms project within Microsoft Visual Studio 2008.

I've been able to create a button.

Now how do I make that button correspond to a ShellExecute command, eg;

ShellExecute(NULL, TEXT("open"), TEXT("diskmgmt.msc"), NULL, NULL, SW_HIDE);


Thanks in advance for any suggestions,

Panarchy

Is This A Good Question/Topic? 0
  • +

Replies To: How do I make a button within a Windows Forms project link to ShellExe

#2 Panarchy  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 82
  • Joined: 28-November 07

Re: How do I make a button within a Windows Forms project link to ShellExe

Posted 30 June 2009 - 03:20 AM

Greetings,

Well I've worked out a ⅓ of the problem, to be specific, I've worked out
the 'Open' button;

System::Diagnostics::Process::Start("diskmgmt.msc");

Still to work out;

- How to use System::Diagnostics::Process::Start with if & else
command
- Programming the Display button

Please help me work those out!

Thanks in advance,

Panarchy
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1