Just some sample code for you, edit as you wish (I think this is right from what I understand from your post)
Protected Sub GridView1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.GridItemEventArgs)
'Is it a GridDataItem
If (TypeOf (e.Item) Is GridDataItem) Then
'Get the instance of the right type
Dim dataBoundItem As GridDataItem = e.Item
'Check the formatting condition
If (Integer.Parse(dataBoundItem( "Size").Text) > GridItemType.Footer) Then
dataBoundItem( "Received").ForeColor = Color.Red
dataBoundItem( "Received").Font.Bold = True
Tnanks Jordan. But this is still somewhat too advanced for me.
This on the other hand seems to do the trick (in a maskedtextbox).
Public Class txtBase
Dim nSaveColor As Color
Private Sub txtBase_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.GotFocus
Me.nSaveColor = Me.BackColor
Me.BackColor = Color.Turquoise
Private Sub txtBase_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LostFocus
Me.BackColor = Me.nSaveColor
Well.... it seems to work. I'll wait some time before I set this thread as "solved". What do you think?
public class GrossmontBank
//class variables (global - accessible throughout this class)
//scanner object to be used throughout
private static Scanner input = new Scanner(System.in);