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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:06:05+00:00 2026-06-09T02:06:05+00:00

Hello I’m currently self teaching C# and have run into a bit of a

  • 0

Hello I’m currently self teaching C# and have run into a bit of a wall.

EDIT:I am doing Using a Windows Form application.

The program I’m currently working on can open existing .XML files for editing or create a new one. What I am tying to do is allow the user to click the radio buttons on the left that will auto populate the lines of code on the right which in tern at the end will be able to be exported.

The question is how would I bind a section of code to to a radio button so that when the
radio button is selected it will add the code to the Richtextbox1 on the right?

For example I have three radio buttons in a row such as -all - none -one. and when all is selected it will write the code I linked to the radio button starting at line 17 to however long it is, and when I select None it will remove that code from those lines (mainly for cases that the user starts playing with button).

Thank you ahead of time for any help, I do apologize also because I feel this might be an
easy issue I may just not be wording my searches correctly. I’ve finished most the program
so far from the help of google but this has me stumped. Thank you again for your time.

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

    i would bind the IsChecked property of the CheckBoxes to a enum property in your viewmodel. If your enum property changed, you edit the source property for your richtextbox and call a PropertyChanged for it.

        private RadioButtonEnum _radioButtonEnum
        public RadioButtonEnum RadioButtonEnum
        {
            get { return _radioButtonEnum; }
            set
            {
                _radioButtonEnum = value;
                OnPropertyChanged("RadioButtonEnum");
                RefreshText();
            }
        }
    
        private void RefreshText()
        {
            switch (RadioButtonEnum)
            {
                case None:
                    //Do your changes to your TextProperty
                    break;
                case All:
                    //Do your changes to your TextProperty
                    break;
                case One:
                    //Do your changes to your TextProperty
            }
            OnPropertyChanged("YourTextProperty");
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i'm doing a application in php, and i have a list of items
Hello I have the following code to retrieve data from my db using nhibernate
Hello I have created an application using qt and I managed to save some
Hello I have a problem using latest vim with omnicompletion while editing a file
Hello i have this scenario currently i have 3 default sections. A , B
Hello I have like this 2 tables class User public int UserId{get;set;} { ....
hello all i am working on a project in which i have a webpage
Hello , I am using arshaw fullcalendar v1.5.2 (only month view ) for property
Hello i have a TextField on my scene. It haves only digits, user input
Hello I have this problem with PyQt4-dev-tools that include: * a user interface compiler

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.