How to Deploy .Net Applications to the Linux Platform With Confidence Using Mono With Delphi Prism

Launch Delphi Prism by clicking on Start --> All Programs --> Delphi Prism in Visual Studio 2010.,Click on File --> New Project and choose Windows Forms Applications (Mono), under the Mono section., From the Toolbox --> Drag and Drop the following...

16 Steps 1 min read Advanced

Step-by-Step Guide

  1. Step 1: Launch Delphi Prism by clicking on Start --> All Programs --> Delphi Prism in Visual Studio 2010.

    Ensure that you run Visual Studio as an Administrator.,,, Dock the Rich Textbox Control.,, method Mainform.cutToolStripMenuItem1_Click(sender:
    System.Object; e:
    System.EventArgs); begin richTextBox1.Cut; end; method MainForm.copyToolStripMenuItem1_Click(sender:
    System.Object; e:
    System.EventArgs); begin richTextBox1.Copy; end; method MainForm.pasteToolStripMenuItem1_Click(sender:
    System.Object; e:
    System.EventSrgs); begin richTextBox1.Paste; end; end.,,,,
  2. Step 2: Click on File --> New Project and choose Windows Forms Applications (Mono)

  3. Step 3: under the Mono section.

  4. Step 4: From the Toolbox --> Drag and Drop the following controls onto the Form: MenuStrip ToolStrip StatusStrip StatusStrip ContextMenuStrip RichTextBoxControl

  5. Step 5: For the MenuStrip and ToolStrip controls

  6. Step 6: set to insert standard items.

  7. Step 7: For the ContextStrip Menu

  8. Step 8: add the following three items: Cut Copy Paste

  9. Step 9: Write some code to implement a simple Cut

  10. Step 10: Copy and Paste functionality.

  11. Step 11: Bind the ContextMenuStrip to the Rich Textbox and copy and paste the above code for the respective actions

  12. Step 12: in the ContextMenu Strip.

  13. Step 13: Press F5 and run the Application.

  14. Step 14: Type some text and right click to launch the Context Menu.

  15. Step 15: Verify that you are able to perform the required functions

  16. Step 16: and close the application.

Detailed Guide

Ensure that you run Visual Studio as an Administrator.,,, Dock the Rich Textbox Control.,, method Mainform.cutToolStripMenuItem1_Click(sender:
System.Object; e:
System.EventArgs); begin richTextBox1.Cut; end; method MainForm.copyToolStripMenuItem1_Click(sender:
System.Object; e:
System.EventArgs); begin richTextBox1.Copy; end; method MainForm.pasteToolStripMenuItem1_Click(sender:
System.Object; e:
System.EventSrgs); begin richTextBox1.Paste; end; end.,,,,

About the Author

J

Jack Wood

Enthusiastic about teaching lifestyle techniques through clear, step-by-step guides.

62 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: