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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:06:53+00:00 2026-06-18T02:06:53+00:00

I looked all over Google can no one asked this question or there isn’t

  • 0

I looked all over Google can no one asked this question or there isn’t any answer for this. What i am trying to do is to make a slider‘s maximum value the text in my textbox, i have tried to to do this:

This code is in my textBox1_TextChanged Event

textBox1.Text = slider1.Maximum.ToString();

and this:

this.slider1.Maximum = textBox1.Text;

And some other ones but it doesn’t work, it says:

Cannot Implicitly Convert 'String' to 'Int'

If anyone knows how to do this please post it here or show me where i can find the code.


Second Problem

I have another problem, i have this code:

private void slider1_ValueChanged(object sender, EventArgs e)
    {
        textBox1.Text = slider1.Value.ToString();
    }

It shows up the value of the slider just fine but the slider piece that you grab stays at the end, if this is too confusing here is my problem:

When i grab the slider the text in textBox1 is the slider’s value.
The problem is is that the slider part that you grab to change the value stays at the end. does anyone know how to show the grabber part at the real value instead of the end?

  • 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-18T02:06:55+00:00Added an answer on June 18, 2026 at 2:06 am

    You should use Int32.TryParse:

    int sliderValue = 0;
    Int32.TryParse(textBox1.Text, out sliderValue);
    

    And if try parse fails provide an error message explaining why..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have looked all over and cannot figure out why this code isn't working.
Preface: I have looked all over stackoverflow.com and google for this. I have found
Ok I know a thousand people asked this but I have looked all over
I've looked all over the internet trying to find an answer to my problem,
I looked all over on google, I guess I just don't know what to
I've looked all over and can't seem to figure out why my c# windows
I have looked all over the web and I can not find the information
I have asked this question countless times on various forums. Ultimately all I need
I've looked all over the Google code site but am just not finding anything
I've looked all over for some documentation on this, but haven't found it. Some

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.