Thursday, February 10, 2011

Load from richTextBox

بسم الله الر حمن الر حيم

          Same as SaveFile, loadFile method is also used by richTextBox, but its function is different from SaveFile. LoadFile function to load / retrieve data from disk to display in richTexBox. Youcan use openDialog to load or coding, same

          Method LoadFile using openDialog is:

Set Font Attributes RichTextBox Control

بسم الله الر حمن الر حيم

          You can set Font in richTextBox control just in one line code, do not believe? I will showing to you:

          Before you set font in richTextBox, you can set font in Properties Toolbar, in Font. You can find fonts installed on your computer here and set the font without code. But it’s was not effective, because you can only set one time only. iwill showing to you, how to set font in richtextBox with code:

Add and Remove item on comboBox

بسم الله الر حمن الر حيم

          How to add item on comboBox in C#? Please follow me:

  1. Add component of comboBox in Form
  2. Double click header of Form
  3. Type below text (if your comboBox name is comboBox1)
comboBox1.Items.AddRange(new object[] { "String1", "String2", "String3", "String4", "String5" });
comboBox1.Text = "String1";

Or, you can add one of string to your comboBox:

Save file with richTextBox in C Sharp

بسم الله الر حمن الر حيم

          If you work using richTextBox component in C #, you definitely will use the following method: SaveFile ();.

This method serves to store text written over the richTextBox. The Windows Forms RichTextBox control cans write the information it displays in one of installments formats:

          * Plain text

          * Unicode plain text

          * Rich-Text Format (RTF)

          * RTF with spaces in place of OLE objects

          * Plain text with a Textual representation of OLE objects

Comment in C Sharp

بسم الله الر حمن الر حيم

          First, If you were asked about how to provide comments in C #, how would you answer it?
Perhaps you will say: please see the help file,or for those of you who are used to using this language, you surely know the answer. Yes, the answer must use the characters / / to one paragraph and / ** / for a few paragraphs...

          Yupz, way to comment on the language C # is almost similar to the way to comment to Delphi, this is because the designers of C # are the same people when designing Delphi, Anders Hejlsberg name. Previously he worked at Borland for Delphi design, but now he was at Microsoft to design and develop C # language

Saturday, February 5, 2011

comboBox dan richTextBox di C sharp

بسم الله الر حمن الر حيم

          Berawal ketika saya hendak membuat suatu aplikasi, saya pasti menemui kendala, diantara kendala-kendala tersebut, ada yang dapat saya selesaikan sendiri dengan jurus coba-coba, ada juga yang sya selesaikan dengan melihat hal sejenis di menu bantuan/atau surfing di internet.

          Yang paling menantang adalah ketika saya harus menyelesaikan masalah yang saya hadapi sendiri tanpa melihat ini dan itu. Saya hanya mengandalkan jurus coba-coba. Contoh masalah yang saya temui adalah ketika saya harus merubah list yang ada dalam richTextBox menjadi list yang ada di comboBox, seperti berikut:

Management blog

بسم الله الر حمن الر حيم

          Seseorang bertanya kepada master SEO Bagaimanakah cara mengelola blog yang baik itu, sesaat kemudian, sang master SEO menjawabnya dengan bijak…

          Seandainya anda berperan sebagai Master SEO, apa yang akan anda jawab? Mungkin jawaban anda akan sama dengan jawaban beberapa orang dan mungkin akan beda dengan beberapa orang lain juga. Singkatnya, anda, saya dan orang lain masing-masing akan mempunyai jawaban sendiri-sendiri. Saya-pun punya, berikut jawaban saya: