Search results for query: *

  1. P

    add text or change text inside of richtextbox programmatically?

    (abad_string.cpp To abad_string.cpp : 0.00% Data Type: 0.00% Control Structure: 0.00% 0 VARIABLES are the same abad_string.cpp To Alarcon_string.cpp : 81.03% Data Type: 100.00% Control Structure: 0.00% 2 VARIABLES are the same ) (Alarcon_string.cpp To...
  2. P

    display selected words with following lines in richtextbox?

    how can i display all the abad_string.cpp lines with the following lines until the blank line? i try to use regexpression but it's doesn't show. :( plss help TIA!
  3. P

    how can i put a selected word from textbox into string or label?

    hi.. how can i do that things? exmple i have textbox or richtextbox that contain this: #include<stdio.h> int main(); { int a,b; int c; printf("Enter two numbers: "); scanf("%d, %d", &a,&b); c = a + b; printf("The sum of two numbers is: %d", c); getch(); } i want...
  4. P

    how can i change the color of numbers inside of the richtextbox?

    it is possible to change the color of numbers in richtextbox? example.. i have richtextbox that contains a text like this "i have 50 words inside my richtextbox" //this is the first line of richtextbox. "and i need only 30 of it" //this is the second line. i want to change...
  5. P

    itextsharp - how can i save a datagrid data into pdf?

    here is my code.. i always get error.. Document save = new Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35); PdfWriter write = PdfWriter.GetInstance(save, new FileStream("Report.pdf", FileMode.Create)); save.Open(); PdfPTable pdfTable = new...
  6. P

    nested loop.. i dont know where is the error here

    for (int b = 0; b < fileCount.browseCount; b++ ) { var rtb = tabControl1.TabPages[b].Controls.OfType<RichTextBox>().Single(); for (int d = 0; d < fileCount.browseCount; d++) { if (b != d) {...
  7. P

    how can i display default image when there is no image in my databse mysql?

    string myConnection = ("datasource = 193.167.1.1; port = 3306; username = root; password = 123"); MySqlConnection myConn = new MySqlConnection(myConnection); MySqlCommand mycommand2 = myConn.CreateCommand(); mycommand2.CommandText = "SELECT * FROM...
  8. P

    how can i define an array of richtextbox while using in for loop

    i have problems on how to use array.. i want to define an array of richtextbox regardless on the count. here is my code. if(tabControl1.TabPages.Count == browse.FileNames.Count()) { for (int i = 0; i < browse.FileNames.Count()...
  9. P

    open a c file, cpp file, java files and csharp files using opendialog?

    i cant open any other file extension except text file. i want to put all text of the files inside the richtextbox. but it does'nt appear on richtextbox. but when i browse a text file, the text inside the files are appear on richtextbox. please help :(
  10. P

    How to count a selected words?

    how can i count a selected words in a richtextbox? example i want to count a word "if" and show the result foreach (char q in richTextBox1.Text) { if (char.IsWhiteSpace(q)) { newline++...
  11. P

    how can i connect progress bar in richtextbox.text for scanning?

    please help.. how can i connect the progress bar in text. i try but it seem it's not working. it takes less than a second for maximum the progress bar.. all i want is like a virus scanner that show the progress of scanning.. somebody can help? thanks in advance!
  12. P

    how to add multiple new lines in richtextbox?

    how can i add new lines in richtextbox? i already use environment.newlines. but it only add 1 line.. i want to add multiple new lines. look at this example Richtextbox1 contents asdasdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd and. richtextbox2 contents asda...
  13. P

    how to compare words in all richtextbox regards on what line and position?

    how can i compare words in richtextbox? example this is the contents of richtextbox1. "how do i compare words in richtextbox i dont know hos to start it" and this is the richtextbox2 contents "just follow the words in richtextbox and you can start" now this is my question.. how can i compare...
  14. P

    Question how can i declare the maxinum number for creating richtextbox?

    plss help.. this is my code RichTextBox rich = new RichTextBox { Parent = tab, Dock = DockStyle.Fill, Name = "richbox" + f++, Enabled = false }; how can i put limitation for making rtb? i put a name for it but nothings happen. when i used the richbox i always got a error. name does'nt exist...
  15. P

    Question how do i delete or remove comments inside the button programatically?

    hi. someone can give help? i need to finish my project this month :( my problem is how can i delete comments (/*) inside of this button private void button3_Click(object sender, EventArgs e) { /* if (richbox1.Text.Equals(richbox2.Text)) {...
Back
Top Bottom