4 Replies - 2609 Views - Last Post: 15 December 2009 - 02:37 AM Rate Topic: -----

#1 Asscotte  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 35
  • View blog
  • Posts: 610
  • Joined: 08-February 09

Windows Form Command Line

Posted 14 December 2009 - 12:57 PM

Is it possible to use command line event args with a windows form application with the application framework enabled? if so Please could you direct me to a tutorial that I can follow.

Thanks,
Is This A Good Question/Topic? 0
  • +

Replies To: Windows Form Command Line

#2 FlashM  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 382
  • View blog
  • Posts: 1,195
  • Joined: 03-December 09

Re: Windows Form Command Line

Posted 14 December 2009 - 02:09 PM

What do you mean by application framework enabled?
Was This Post Helpful? 0
  • +
  • -

#3 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2216
  • View blog
  • Posts: 9,352
  • Joined: 29-May 08

Re: Windows Form Command Line

Posted 14 December 2009 - 02:13 PM

  Dim args As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Application.CommandLineArgs



In the solution explorer show all file then navigate to.
WindowsApplication1\MyProject\Application.myapp\Application.Designer.vb

Then you can add the event MyApplication_Startup, which has an e argument that contains the command line arguments.
Was This Post Helpful? 0
  • +
  • -

#4 FlashM  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 382
  • View blog
  • Posts: 1,195
  • Joined: 03-December 09

Re: Windows Form Command Line

Posted 14 December 2009 - 02:18 PM

If I understand you correct, you would like to build normal windows forms application, that would be capable of accepting args if lunched from Command prompt?
Was This Post Helpful? 0
  • +
  • -

#5 Asscotte  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 35
  • View blog
  • Posts: 610
  • Joined: 08-February 09

Re: Windows Form Command Line

Posted 15 December 2009 - 02:37 AM

Yes thanks that's good, do they act like normal args? Or do I have to follow dirrerent rules?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1