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

  • SEARCH
  • Home
  • 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 8608797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:42:27+00:00 2026-06-12T03:42:27+00:00

My windows application simply lets the user (department boss) choose what PC’s directory they

  • 0

My windows application simply lets the user (department boss) choose what PC’s directory they want to navigate to that’s on our network. Each computer name has a corresponding ID tag. For instance, if I wanted to open the accountant’s C drive, I would select “Accountant’s PC” in the combobox labeled selectPC. I then set the ID tag based on their choice (for instance lets say its “ipx-12345″) and display the ID tag in a text box (for visual verification). I want to invoke the path ” \\ipx-12345\c$\ in my windows explorer. Note, the path will change based on what PC they chose in the combobox) How would I go about doing this using the ID tag in the textbox?

  //snippet of condition that sets the textbox's value to the ID tag of the PC chosen
  // in combo box named 'selectPC'

  if (selectPC.Text == ("Account's PC"))
            pcID.Text = "IPX-12345";
  • 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-12T03:42:29+00:00Added an answer on June 12, 2026 at 3:42 am

    How are you populating this combobox?
    if the data comes from a database (DataSet, BindingSource, etc …) you can use the DataSource, DisplayMember and ValueMember of the combobox. If you are not using a database, and is relying on a list of data can implement something like this:

    Dictionary<string, string> Data = new Dictionary<string,string>();
    Data.Add("Acount1", @"\\ics#$1\");
    Data.Add("Acount2", @"\\ics#$2\");
    Data.Add("Acount3", @"\\ics#$3\");
    Data.Add("Acount4", @"\\ics#$4\");
    
    comboBox1.DataSource = new BindingSource(Data, null);
    comboBox1.DisplayMember = "Key";
    comboBox1.ValueMember = "Value";
    

    So, to automatically select the item in the Combobox, you can get the result according to the ID in the combobox SelectedValue property.

    combobox1.SelectedValue
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Making a simple application, so when the user logs out of Windows, it of
I am trying to write a simple application that runs on a Windows Mobile
I have a requirement to create a simple windows forms application that allows an
For a scientific application I want to design an input form which lets the
I have developed a small windows forms application in C#. This application simply manipulates
I am writing a Windows application that controls an Android mobile wirelessly, such as
I have a Windows MFC application that: (1) Loads the JVM ( JNI_CreateJavaVM() )
There is a simple application that works in Windows. It has very simple interface:
Anybody tried here using Getting Real(37Signals) approach to develop windows application? (C#/.NET). Or simply
I have a solution which consists, to put it simply, a Windows Forms Application

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.