Click here to Skip to main content
15,893,266 members

Comments by Jo_vb.net (Top 136 by date)

Jo_vb.net yesterday View    
Thank you.

Now I created a new project with same name.
Copied all needed code files to it, installed NugGet packages and compiled.

Then changed project properties for version to 1.1.0.0
Then started Debug - and it works now!
Jo_vb.net 25-Apr-24 16:32pm View    
In combination with an arrow it is a control character.
Jo_vb.net 21-Apr-24 19:47pm View    
Great + thanks.

Adjusted it and that works:

private void DG_Hyperlink_Click(object sender, RoutedEventArgs e)
{

Hyperlink link = (Hyperlink)e.OriginalSource;
Process? process = Process.Start(new ProcessStartInfo(link.NavigateUri.AbsoluteUri)
{
UseShellExecute = true
});

process!.WaitForExit();
}
Jo_vb.net 21-Apr-24 14:00pm View    
Unfortunately with
compiler.StartInfo.UseShellExecute = true;
the same error happens as before.
Jo_vb.net 21-Apr-24 13:22pm View    
Tried

using (Process compiler = new Process())
{
compiler.StartInfo.FileName = "explorer.exe";

compiler.StartInfo.Arguments = link.NavigateUri.AbsoluteUri;
compiler.StartInfo.UseShellExecute = false;
compiler.StartInfo.RedirectStandardOutput = true;
//Console.WriteLine(compiler.StandardOutput.ReadToEnd());

compiler.WaitForExit();

Shows error:// "No process is associated with this object."


Found this solution (not default browser but it works)

Process.Start("explorer.exe", link.NavigateUri.AbsoluteUri);

Thanks for your help.