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 8133955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:49:45+00:00 2026-06-06T09:49:45+00:00

string one = find; combobox1.text = one; I want to use one i.e string

  • 0
string one = "find";
combobox1.text = "one";

I want to use “one” i.e string value of (combobox1.text) as an existing variable string one.
Is this possible?

All you still didn’t getting my question. I want to use value of combobox1.text that is one and one that is variable string and it value is find. so i want to use variable one‘s value indirectly.

  • 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-06T09:49:48+00:00Added an answer on June 6, 2026 at 9:49 am

    You cannot do it for local variables like this. For member fields you can use reflection; for locals, the simplest approach is to use Dictionary, for example, like this:

    IDictionary<string,string> vars = new Dictionary<string,string> {
        {"one", "find"}
    ,   {"two", "cancel"}
    };
    
    combobox1.text = vars["one"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to find a specific text string in one or more text files
Possible Duplicate: Last but one Char in vb.net String How do I find the
I am trying to use a regex to find text inside a string. For
I am interested in where string literals get allocated/stored. I did find one intriguing
Given a user input string, I need to find if it end with one
I want to identify two kinds of string: one end with numbers (or not
Consider this case: public Class1 { public static final String ONE = ABC; public
I have one string like 8/29/2011 11:16:12 AM . I want to save in
I need to find out how much percentage or chars does one string contains
I'm trying to find the positions of all occurrences of a string in another

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.