111,097
社区成员




NaviGroup group = new NaviGroup();
group.Text = "test";
group.Expanded = true;
group.Dock = DockStyle.Top;
naviBand3.Controls.Add(group);
NaviBand band = new NaviBand();
band.Text = "NaviBand" + (naviBar1.Bands.Count + 1).ToString();
band.SmallImage = Properties.Resources.bookmark1;
band.LargeImage = Properties.Resources.bookmark;
naviBar1.Bands.Add(band);
ar1.ActiveBand = naviBar1.Bands[0];
if (saveFileDialogSettings.ShowDialog() == DialogResult.OK)
{
try
{
string fileName = saveFileDialogSettings.FileName;
NaviBarSettingsSerializer serial = new NaviBarSettingsSerializer();
using (TextWriter w = new StreamWriter(fileName))
{
serial.Serialize(w, naviBar1.Settings);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}