Archive for Aprile 4th, 2008

Site is UP

maurodx Aprile 4th, 2008

Welcome everybody! Site is now ready to start…

Software is coming, i’m working for a new release to introduce some new features…

If you want some feature that you consider important please register and post a new topic into the forum!

See you soon.

Mauro Destro

passing values from window to another window

CodeKeep C# Feed Aprile 4th, 2008

Description: passing values from window to another window

Link: http://www.codekeep.net/snippets/805d56a1-5c70-4722-b9d5-58d30eecdd6c.aspx

in first window buttonclick
=============================
 string fileinfo="c:\\test.txt";
 WinViewImage winimage = new WinViewImage(fileInfo);
 winimage.Show();

in second window
=================

        public WinViewImage(string imgpath)//Pass String
        {
            InitializeComponent();
            strimgpath1 = imgpath;
        }

       public string strimgpath1;

        private void WinViewImage_Load(object sender, EventArgs e)
        {
           textbox1.Text= strimgpath1;      

        }
  }

Data Binding - Previous and Next Record

CodeKeep C# Feed Aprile 4th, 2008

Description: change the selected record in the “bound source”

Link: http://www.codekeep.net/snippets/26653cef-10af-41e3-90f4-098dacccc96f.aspx

        private void btnPrev_Click(object sender, EventArgs e)
        {
            customerBindingSource.Position--;
        }

        private void btnNext_Click(object sender, EventArgs e)
        {
            customerBindingSource.Position++;
        }