Skip to content

Changing the background of some parts of the text?(winform)

behnam farhadi

Asked Apr 22, 2016, 8:08 PM EDT1 answer
Share
LinkedInX
i wanna write a program in which by moving the mouse over a chunk of text the color of the background to be changed to black (or other color does not matter) and if the highlighted (black) part of text got clicked again it get turns into another color and the label text to be changed arbitrarily.I am using this control richtextbox. But my idea is to use webbrowser control,What do you think a better idea?
 
for example: 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Umut çelik
    -1
    CSS
    I have a table that I want to tell my friends " IMALAT " I said from the
    Code
    table " CINSI " column by the filter and the values ​​I gather I'm showing another
    Code
    DataGridView . as follows
    Code
     
     
    private void LISTELE()
    {
    string sorgu = "SELECT CINSI, ISNULL(SUM(MIKTAR),0) AS 'TOPLAM' FROM IMALAT
    GROUP BY CINSI";
    SqlCommand cmd = new SqlCommand(sorgu, Baglanti.Con);

    SqlDataAdapter da = new SqlDataAdapter(cmd);

    DataTable dt = new DataTable();
    da.Fill(dt);

    dataGridView2.DataSource = dt;
    }
     
     

    r

    SQL
    then I want to save these values ​​into the database , but said record button is pressed TIMALAT ;
    
    If the value stored in the Type column in the database update , but you do not sign up if you add in terms of column .
    
    SQL statements are as follows:


    pasting

    IMALAT

    TIMALAT

    -1