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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:21:15+00:00 2026-06-08T19:21:15+00:00

I got an textbox1.text=J001 when the form insert is showed up. there’s a button

  • 0

I got an textbox1.text=”J001″ when the form “insert” is showed up. there’s a button in “insert” so if we click that button, mbox said “J001 is added”.

But then, I want to change the textbox.text = “J002”; so I’m using.

string splitter=textbox1.text.toString().subString(1)

It will return 001. and now what do i have to make it 002? I can’t +1 on it though, in additional, I’m not using any database, so it will become “J001” again when we close the form, and reopen them. click the button, the text become “J002”. close the form, reopen, it shows “J001” and infinite loop.

  • 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-08T19:21:19+00:00Added an answer on June 8, 2026 at 7:21 pm

    It’s quite difficult to understand what you want, but maybe this is what you are looking for:

    string splitter = textbox1.Text.ToString().Substring(1);
    
    try {
        int number = Convert.ToInt32(splitter) + 1;
    } catch (FormatException e) {
        // Not a number...
    }
    
    textbox1.Text = String.Format("J{0}", number.ToString());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a simple WPF dialog with these two controls: <TextBox Text={Binding MyText}/> <Button
Trying to develop a text editor, I've got two textboxes, and a button below
I've got a form with several search (text) fields. When text is entered into
I've got a button, two textboxes and some text. How to put all this
I have got a textbox on a form with a method being called from
I have got a dropdownlist, a submit button and a textbox in my view.
Title is pretty self-explanatory. I've got a DataGrid for a Windows Form Application, and
I've got a Windows Form User Control with a string property for setting the
I've got a simple little winforms app that performs a long running process on
I am hoping that someone can help me with a problem I've got at

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.