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?

    i want all the text inside the red box that start in the word abad_string.cpp until the blank line only will be displayed in the richtextbox.. like on the image above..
  3. 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!
  4. 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...
  5. P

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

    how about change the color of number into a 2 color like this if the number is greater than or equal to 50.00 then its color will be RED. if the number is less than 50.00 then it's color will be BLUE. it is possible?
  6. 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...
  7. P

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

    yes i comparing words inside the two lines at a time fron RTB.. i see the solution for that nested loop :) i just only add an condition then boom.. it works. hehe thanks for the help :) i really appreciate all your suggestion and helpful comments :)
  8. 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...
  9. P

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

    that code is running but i dont know.. why the variable b and d always incrementing at the same time.. :( i dont know why they always increment at the same time..
  10. P

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

    here is with comments.. //this is the first loop variable for (int b = 0; b < fileCount.browseCount; b++ ) { var rtb = tabControl1.TabPages[b].Controls.OfType<RichTextBox>().Single(); //this is the second loop variable for (int d = 0; d < fileCount.browseCount; d++) {...
  11. 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) {...
  12. 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...
  13. P

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

    i have only the tabcontrol and browse file button in form.. i created the richtextbox programmatically. here is my code foreach (String file in browse.FileNames) { //Create Tab control and tab pages TabPage tab = new...
  14. 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()...
  15. 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 :(
  16. P

    How to count a selected words?

    thank you sir. :) i helps a lot i use String.Split method only.. i dont know how to use String.IndexOf for loop although i know i need to use it.
  17. 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++...
  18. P

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

    yes you're right but.. my panelist suggested and recommend to put progressbar for the purpose to show the process when scanning.
  19. P

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

    i tried to run that. i compare 5 texts in a single run that contains a thousand lines.. it ends up with a single second. i dont know i set the progressbar maximum value to all richtextbox strings. int progval = richarraycom.Count() + richarraycom2.Count(); progressBar1.Maximum = progval;
Back
Top Bottom