Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. change the #region Text Color AND some particular part of code

change the #region Text Color AND some particular part of code

Scheduled Pinned Locked Moved C#
questiontutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jojoba2011
    wrote on last edited by
    #1

    hello and have good time ! Q1. How can change the color of #region Text ? for example :

    #region txtName Textchanged
    .......
    ........
    .........
    ..........
    #endregion

    Q2. How can I change the particular code text color? for example :

    private void Reminder_Load(object sender, EventArgs e)
    {
    ModeForm = clsGlobal.FormMode.Ready;

            if (ModeForm == clsGlobal.FormMode.Ready)
            {
                tsmiMain1.btnSaveEnable = true;
                tsmiMain1.btnCancelEnable = true;
                tsmiMain1.btnEditVisible = false;
                tsmiMain1.btnDeleteVisible = false;
                tsmiMain1.tss2Visible = false;
            }
            `cmbDaysWeek.Items.Add("1.شنبه");             cmbDaysWeek.Items.Add("2.یکشنبه");             cmbDaysWeek.Items.Add("3.دوشنبه");             cmbDaysWeek.Items.Add("4.سه شنبه");             cmbDaysWeek.Items.Add("5.چهارشنبه");             cmbDaysWeek.Items.Add("6.پنچشنبه");             cmbDaysWeek.Items.Add("7.جمعه");`
        }
    
    T 1 Reply Last reply
    0
    • J jojoba2011

      hello and have good time ! Q1. How can change the color of #region Text ? for example :

      #region txtName Textchanged
      .......
      ........
      .........
      ..........
      #endregion

      Q2. How can I change the particular code text color? for example :

      private void Reminder_Load(object sender, EventArgs e)
      {
      ModeForm = clsGlobal.FormMode.Ready;

              if (ModeForm == clsGlobal.FormMode.Ready)
              {
                  tsmiMain1.btnSaveEnable = true;
                  tsmiMain1.btnCancelEnable = true;
                  tsmiMain1.btnEditVisible = false;
                  tsmiMain1.btnDeleteVisible = false;
                  tsmiMain1.tss2Visible = false;
              }
              `cmbDaysWeek.Items.Add("1.شنبه");             cmbDaysWeek.Items.Add("2.یکشنبه");             cmbDaysWeek.Items.Add("3.دوشنبه");             cmbDaysWeek.Items.Add("4.سه شنبه");             cmbDaysWeek.Items.Add("5.چهارشنبه");             cmbDaysWeek.Items.Add("6.پنچشنبه");             cmbDaysWeek.Items.Add("7.جمعه");`
          }
      
      T Offline
      T Offline
      TheFoZ
      wrote on last edited by
      #2

      Goto Tools - Options.. Expand the environment node and select fonts and colors. Have fun, there are loads to go through!

      The FoZ

      J 1 Reply Last reply
      0
      • T TheFoZ

        Goto Tools - Options.. Expand the environment node and select fonts and colors. Have fun, there are loads to go through!

        The FoZ

        J Offline
        J Offline
        jojoba2011
        wrote on last edited by
        #3

        Not Clear! Plz give more Info !

        T 1 Reply Last reply
        0
        • J jojoba2011

          Not Clear! Plz give more Info !

          T Offline
          T Offline
          TheFoZ
          wrote on last edited by
          #4

          Not sure what else I can give you. So I've shown you where the options are to change the Fonts & Colours of the text editor. Looking through the display items, I can only assume that the "Collapsible Text" is what you need. Google may be your friend in finding out what each display item is

          The FoZ

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups