Setting the start routine in VB 2005 winforms

Hi,
I am using VB2005 winforms. I am modifying an existing application, which has a start page of modJobMain.vb

I need it to be frmJobSearch_Load
I cant seem to set it to the frmJobSearch_Load at the properties page.

When I "leave out of project" modJobMain, I get an error "No accessible 'Main' method
with an appropriate signature was found in 'JobSearch.JobSearch' "

Any advice

Thanks



Answer this question

Setting the start routine in VB 2005 winforms

  • Adamus Turner

    MSNetDeveloper,

    It seems that there are only classes and functions included in your program. Just add a Main function in your code like this:

    Public Shared Sub Mail (ByVal args() as String)

    End Sub



  • Beast Forever

    Hi,

    Two ideas,

    1) On the default FORM double click it and when the Form_Load Sub appears put in a line to show the FORM you wish to start with and if that doesn't work.

    2) Add a GO or a START button on you application which shows the FORM you are after, this idea should work.

    Regards,

    S_DS



  • anubisascends

    Or just a module with a sub main in and in this method call you simply call the Class/Method you want to execute.


  • Setting the start routine in VB 2005 winforms