611,8 → 611,20 |
|
// save default values |
defaultCaption = this.Text; |
} |
|
|
messagesBox.BeginUpdate(); |
messagesBox.Clear(); |
|
for(int i = 0; i < 50; ++i) { |
messagesBox.AppendNewLine(); |
messagesBox.AppendText(String.Format("Line {0} 12345689 12345689 12345689 12345689 12345689 12345689 12345689 12345689 12345689 12345689 12345689", |
i+1), Color.Black, Color.Transparent, false, false, 0, 0); |
} |
|
messagesBox.EndUpdate(); |
} |
|
protected override void Dispose(bool disposing) |
{ |
clearing = true; |
950,7 → 962,9 |
int winTop = (int)subkey.GetValue("Window.Top", -1); |
int winLeft = (int)subkey.GetValue("Window.Left", -1); |
|
if(winTop == -1 || winLeft == -1) { |
if(winTop < 0 || winLeft < 0 |
|| winTop >= SystemInformation.WorkingArea.Height || winLeft >= SystemInformation.WorkingArea.Width) |
{ |
this.StartPosition = FormStartPosition.WindowsDefaultBounds; |
} |
else { |
1437,7 → 1451,7 |
messageView.Nodes.Add(treeNode); |
treeNode.EnsureVisible(); |
if(messageView.Nodes.Count == 1) { |
messageView.SelectedNode = messageView.Nodes[0]; |
//messageView.SelectedNode = messageView.Nodes[0]; |
} |
} |
|