Glossary Item Box

Agilix InfiNotes

Web Page Sample

Click here to download the sample source code: Download

The Web Page sample illustrates how to wrap a Note control into another user control, attach functionality to custom buttons, use standard images for custom buttons, and display the wrapping user control in a web page.

This sample shows how to use the Note control on a Web page. See Embedding Note Box on a Web Page for a detailed description about embedding controls.

One interesting aspect of the sample is the use of buttons rather than a toolbar. The buttons in the sample use the public Images class to reuse the images from the InfiNotes toolbar in this control.

public NoteTaker()
{
  // This call is required by the Windows.Forms Form Designer.
  InitializeComponent();
  //Add any initialization after the InitializeComponent call
  fPenButton.Image = Images.Pen;
  fHighlighterButton.Image = Images.Highlighter;
  fEraserButton.Image = Images.Eraser;
  fLassoButton.Image = Images.Lasso;
  fInsertSpaceButton.Image = Images.InsertSpace;
  fCutButton.Image = Images.Cut;
  fCopyButton.Image = Images.Copy;
  fPasteButton.Image = Images.Paste;
  fDeleteButton.Image = Images.Delete;
  fUndoButton.Image = Images.Undo;
  fRedoButton.Image = Images.Redo;
  fExtendRightButton.Image = Images.ExtendRight;
  fExtendDownButton.Image = Images.ExtendDown;
  fColorButtonBlack.Image = Images.ColorBlack;
  ...
}

Images