Note that there are some explanatory texts on larger screens.

plurals
  1. POClick Once, question regarding open it with arguments
    primarykey
    data
    text
    <p>I created my ClickOnce application witch will install a small windows form application that consists on a WebBrowser control... I need to pass some arguments (this is made per client instalation) in order to open it correctly...</p> <p>as an example, let's say that I need arg(0) to be the url to open, if I generate a normal Setup I will end up with the .exe file and all I need to do is:</p> <pre><code>myWebBrowser.exe "http://www.google.com" </code></pre> <p>but because I'm using ClickOnce method, I'm ending up with </p> <pre><code>myWebBrowser.appref-ms </code></pre> <p>if I open it it contains as normal the URL and other parameters</p> <blockquote> <p><a href="http://www.myWebSite.com/My.WebBrowser/MyWebBrowser.application#My" rel="nofollow noreferrer">http://www.myWebSite.com/My.WebBrowser/MyWebBrowser.application#My</a> Web Browser.application, Culture=neutral, PublicKeyToken=5f83fa0e3f8a8c2b, processorArchitecture=msil</p> </blockquote> <p>and I can't pass arguments in it :(</p> <p>What is the trick for this?</p> <p><strong>added</strong></p> <p>I do have "Allow parameters" active</p> <p><a href="http://www.balexandre.com/temp/2009-06-15_1051_clickOnceAllowURLs.png" rel="nofollow noreferrer">alt text http://www.balexandre.com/temp/2009-06-15_1051_clickOnceAllowURLs.png</a></p> <p><strong>resources</strong></p> <p>I found out about this <a href="http://weblogs.asp.net/marianor/archive/2008/03/08/simulating-command-line-parameters-in-click-once-applications.aspx" rel="nofollow noreferrer">blog post</a>... I will try it and post my findings</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload