FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CreateButtonEventArgs Class : DisabledImgUrl Property |
'Declaration Public Property DisabledImgUrl As String
'Usage Dim instance As CreateButtonEventArgs Dim value As String instance.DisabledImgUrl = value value = instance.DisabledImgUrl
public string DisabledImgUrl {get; set;}
The image file can be located anywhere that can be defined by a URL path.
Tip: Because only files that are part of the project are deployed with the application, we recommend that you add the image file for the button to your project.
Use the EnabledImgUrl property to specify the image to display in a command button if the button is active.
private void FpSpread1CreateButton(object sender, FarPoint.Web.Spread.CreateButtonEventArgs e) { bool b; if(e.Command == "Update") { b = e.Disabled; if(b = true) { e.DisabledImgUrl = "Images/unchecked.gif"; } } }
Private Sub FpSpread1CreateButton(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.CreateButtonEventArgs) Handles FpSpread1.CreateButton Dim b As Boolean If e.Command = "Update" Then b = e.Disabled If b = True Then e.DisabledImgUrl = "Images/unchecked.gif" End If End If End Sub
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6