none
Substring control from richtextbox RRS feed

  • Question

  • The disappearance of control from the form Suddenly

    The problem has been solved but all control of the form must be placed in the matrix and re-save the form


    NOW CODE  LINE FROM DESIGNER &  but in RichTextBox2

     

    Friend WithEvents Label3 As System.Windows.Forms.Label Friend WithEvents Label4 As System.Windows.Forms.Label Friend WithEvents Label5 As System.Windows.Forms.Label

    I want to Substring ( LABEL3,LABEL4,LABEL5)  BUT IT IN ARRAY

    To become    {"LABEL3","LABEL4","LABEL5"}  as follows and are placed inside form designer and save


    • Edited by monemas Friday, March 23, 2018 12:15 PM
    Friday, March 23, 2018 12:14 PM

Answers

  • Hi

    Very very difficult to think what you are asking for.

    Are you wanting the Label Names in an Array? (BTW: perhaps a List(Of String) would be a better choice)

    Show the code where you set the Properties for each Label please.


    Regards Les, Livingston, Scotland

    • Marked as answer by monemas Saturday, March 24, 2018 12:43 PM
    Friday, March 23, 2018 1:17 PM
  • I want to Substring ( LABEL3,LABEL4,LABEL5)  BUT IT IN ARRAY

    To become    {"LABEL3","LABEL4","LABEL5"}  as follows and are placed inside form designer and save

    You can't change that code in the designer. It will just get changed back to what the designer understands.  You need to describe what result you want to achieve (why do you want to make that change?) not what code you want to change.

    • Marked as answer by monemas Saturday, March 24, 2018 12:43 PM
    Friday, March 23, 2018 9:14 PM

All replies

  • Hi

    Very very difficult to think what you are asking for.

    Are you wanting the Label Names in an Array? (BTW: perhaps a List(Of String) would be a better choice)

    Show the code where you set the Properties for each Label please.


    Regards Les, Livingston, Scotland

    • Marked as answer by monemas Saturday, March 24, 2018 12:43 PM
    Friday, March 23, 2018 1:17 PM
  • I want to Substring ( LABEL3,LABEL4,LABEL5)  BUT IT IN ARRAY

    To become    {"LABEL3","LABEL4","LABEL5"}  as follows and are placed inside form designer and save

    You can't change that code in the designer. It will just get changed back to what the designer understands.  You need to describe what result you want to achieve (why do you want to make that change?) not what code you want to change.

    • Marked as answer by monemas Saturday, March 24, 2018 12:43 PM
    Friday, March 23, 2018 9:14 PM
  • Hi

    Very very difficult to think what you are asking for.

    Are you wanting the Label Names in an Array? (BTW: perhaps a List(Of String) would be a better choice)

    Show the code where you set the Properties for each Label please.


    Regards Les, Livingston, Scotland

    @Monemas

    Please remove the Answer from my post as it does not answer anything.


    Regards Les, Livingston, Scotland

    Saturday, March 24, 2018 1:23 PM