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...
Step-by-Step Guide
-
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.,,,, -
Step 2: Click on File --> New Project and choose Windows Forms Applications (Mono)
-
Step 3: under the Mono section.
-
Step 4: From the Toolbox --> Drag and Drop the following controls onto the Form: MenuStrip ToolStrip StatusStrip StatusStrip ContextMenuStrip RichTextBoxControl
-
Step 5: For the MenuStrip and ToolStrip controls
-
Step 6: set to insert standard items.
-
Step 7: For the ContextStrip Menu
-
Step 8: add the following three items: Cut Copy Paste
-
Step 9: Write some code to implement a simple Cut
-
Step 10: Copy and Paste functionality.
-
Step 11: Bind the ContextMenuStrip to the Rich Textbox and copy and paste the above code for the respective actions
-
Step 12: in the ContextMenu Strip.
-
Step 13: Press F5 and run the Application.
-
Step 14: Type some text and right click to launch the Context Menu.
-
Step 15: Verify that you are able to perform the required functions
-
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
Jack Wood
Enthusiastic about teaching lifestyle techniques through clear, step-by-step guides.
Rate This Guide
How helpful was this guide? Click to rate: