WorkflowGen.com | Knowledge Base | Documentation | Downloads | Support | RSS

« Can we use other environments other than Microsoft Visual Studio to create our .NET forms? | Main | Can I develop web forms for my WorkflowGen processes using .Net Framework 3.5? »

Is it possible to change the Required and Read-Only field colors that workflowgen uses to different colors in my web form?

Posted on Sunday, April 27, 2008 at 16:54 by Registered CommenterWFG Team in | CommentsPost a Comment

Yes, it is possible to change the colors used by WorkflowGen for the fields that are Required or Read-Only in your web forms.  The WorkflowGen.My.dll contains a property for both that you can assign the colors you wish.  you must include the proper

Add the following to your code in the Page_Load method:

C#

using System.Drawing;

public partial class _Default : WorkflowPage
{
    protected void Page_Load(object sender, EventArgs e)
{
        //  set the read-only border color to Light Grey and required border color to Orange
        this.ReadOnlyFieldsBorderColor = Color.FromArgb(210, 210, 210);
        this.RequiredFieldsBorderColor = Color.Orange;
    }
}

VB.NET

Imports System.Drawing

Public Class _Default
    Inherits WorkflowPage
   
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        '  set the read-only border color to Light Grey and required border color to Orange
        Me.ReadOnlyFieldsBorderColor = Color.FromArgb(210, 210, 210)
        Me.RequiredFieldsBorderColor = Color.Orange
    End Sub
End Class

 

 

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.
Member Account Required
You must have a member account on this website in order to post comments. Log in to your account to enable posting.