Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8546303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:59:10+00:00 2026-06-11T12:59:10+00:00

Below is a code I’ve been working with for about two weeks now and

  • 0

Below is a code I’ve been working with for about two weeks now and thought I had it working till I put in the last information (Class MyClient) and now I’m getting a win32 error at the Process.Start(url);
Says the specified file cannot be found. I’ve tried setting it to “iexplorer.exe” to have it load IE for the URL, but no change.

public partial class Form1 : Form
{
    List<MyClient> clients;
    public Form1()
    {
        InitializeComponent();
        clients = new List<MyClient>();
        clients.Add(new MyClient { ClientName = "Client 1", UrlAddress = @"http://www.google.com" });
        BindBigClientsList();
    }

    private void BindBigClientsList()
    {
        BigClientsList.DataSource = clients;
        BigClientsList.DisplayMember = "ClientName";
        BigClientsList.ValueMember = "UrlAddress";
    }

    private void BigClientsList_SelectedIndexChanged(object sender, EventArgs e)
    {
        MyClient c = BigClientsList.SelectedItem as MyClient;
        if (c != null)
        {
            string url = c.ClientName;
            Process.Start("iexplorer.exe",url);
        }
    }
}
class MyClient
{
    public string ClientName { get; set; }
    public string UrlAddress { get; set; }
}

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:59:11+00:00Added an answer on June 11, 2026 at 12:59 pm

    You are using the ClientName as the URL, which is not correct…

    string url = c.ClientName;
    

    …should be…

    string url = c.UrlAddress;
    

    You shouldn’t specify iexplorer.exe either. By default, OS’s open URLs with the default web browser. Unless you really need your users using Internet Explorer, I suggest letting the system pick the browser for you.

    UPDATE
    In respose to OP’s comment…

    It depends on what you mean by “blank”. If you mean null, no this is not possible. Using null as the first entry in your list will result in a NullReferenceException when you try to call c.UrlAddress. You might be able to use a place-holder MyClient instance with dummy values…

    clients = new List<MyClient>();
    clients.Add(new MyClient { ClientName = "", UrlAddress = null });
    clients.Add(new MyClient { ClientName = "Client 1", UrlAddress = @"http://www.google.com" });
    

    But then you would have to change your action method to something like this…

    private void BigClientsList_SelectedIndexChanged(object sender, EventArgs e)
    {
        MyClient c = BigClientsList.SelectedItem as MyClient;
        if (c != null && !String.IsNullOrWhiteSpace(c.UrlAddress))
        {
            string url = c.ClientName;
            Process.Start("iexplorer.exe",url);
        }
        else
        {
            // do something different if they select a list item without a Client instance or URL
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below code is working properly now. But if I replace 'text.txt' with ' http://google.com
Below code not work, but it's work fine for jsf1.2. Now the framework is
The below code rocks in Chrome and FF but not working in IE I
The below code is working only on Firefox, and not working on IE or
The below code simply is not working on my Android Galaxy Nexus running v4.0.2
Below code checks for last item but I need to check for the second
Below code is working but why ? Where does the x and y coming/saved
Below code is not working in IE but working in Chrome... $(this).css(border,solid 1px green)
The below code is working fine. But if i change the html string in
Below code is not working in IE.. input:focus,textarea:focus,select:focus { border:1px solid #fafafa; -webkit-box-shadow:0 0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.