I just don't know what to do with this. Can someone help?
The problem is with the line (Under the timer1_tick near the end of the page):Code:using Microsoft.Win32.SafeHandles; using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Data; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Windows.Forms; namespace Test1 { public partial class UserControl1 : UserControl { private int unitOfMeasure = 0; public int UnitOfMeasure { get { return unitOfMeasure; } set { unitOfMeasure = value; } } public int MeterTypeSelected = 0; public string[,] UOMText = new string[48, 48]; public string TempMeterTitle = "TempTitle"; public UserControl1() { InitializeComponent(); //ToDo: Fill UOMText Array } private void timer1_Tick(object sender, EventArgs e) { lblUOM.Text = UOMText(MeterTypeSelected, UnitOfMeasure); lblMeterTitle.Text = TempMeterTitle.ToString(); } } }
lblUOM.Text = UOMText(MeterTypeSelected, UnitOfMeasure);
The error is: "The name 'UOMText' does not exsist in the current context."
What I find puzzling is the next line does not have the issue. Hmm...
What do I need to do to fix this?
Thanks




Reply With Quote