public string GetDlgStatus() { string text = string.Empty; for (int i = 0; i < this.formDepth.Count; i++) { int key = this.formDepth[i]; if (this.formList.ContainsKey(key)) { Form form = this.formList[key]; if (form != null) { text += string.Format("{0} \t SHOW({1}) {2} {3} \r\n", new object[] { form.Orignal_ID.ToString(), form.visible.ToString(), form.GetLocationX(), form.GetLocationY() }); } } } return(text); }