EventArgs for saving and loading events
Inheritance: System.EventArgs
Example #1
0
		private void saving(object sender, RegistrySaveLoadEventArgs e)
		{
			RegistryKey key = e.OpenKey;
			foreach(CustomListColumn cc in columns)
				key.SetValue("strLen"+name+cc.Index,cc.Width);
		}
Example #2
0
		private void loading(object sender, RegistrySaveLoadEventArgs e)
		{
			RegistryKey key = e.OpenKey;
			Graphics g = Graphics.FromHwnd(this.Handle);
			foreach(CustomListColumn cc in columns)
			{
				try{cc.Width = (int)key.GetValue("strLen"+name+cc.Index,cc.Width);}
				catch{cc.Width = (int)g.MeasureString(cc.Title,Font).Width+2;}
			}
		}