c# - I want to call some code when my web browser application opens -


i've been looking time find (i know sounds stupid) how can call code when start application. i'm using c# on windows forms. know sounds stupid use unity3d has simple method:

void start()  {     //whatever goes here } 

i'm trying make web browser.

you can put code in winforms generated main

    static void main()     {         application.enablevisualstyles();         application.setcompatibletextrenderingdefault(false);         // code goes here         application.run(new mainform());     } 

or in load event of mainform


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -