Hi,
you can use shawndg's approach, below are more detailed steps:
1. Add a new user control with code behind which needs to extend the Message Create Module:
namespace
YourNamespace
{
public
partial
class
CustomMessageCreate : MonoSoftware.MonoX.ModuleGallery.SocialNetworking.MessageCreate
{
protected
override
void
OnLoad(EventArgs e)
{
base
.OnLoad(e);
txtSubject.Text =
"Custom subject"
;
}
}
}
2. Markup: copy the markup from MonoX MessageCreate module to your custom module and make some changes:
from:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MessageCreate.ascx.cs" Inherits="MonoSoftware.MonoX.ModuleGallery.SocialNetworking.MessageCreate" %>
to:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomMessageCreate.ascx.cs" Inherits="YourNamespace.CustomMessageCreate" %>
PS: do not forget to replace the test "YourNamespace" namespace with the one you use.
Regards.