StarBurn OCX
ContentsIndexHome
Example
 try
        {
            stbStatus.Text="Getting disc info";
            DiscInfo= Device.GetDiscInfo();
        }
        catch
        {
            stbStatus.Text += " - Failed!";
            // Show error message
            MessageBox.Show("Exception = "+Device.ErrorMessage);
            stbStatus.Text = "Ready!";
            return;
        }

        string Message;

        if (DiscInfo.IsBlank)
            Message="Disc is blankn";
        else
            Message="Disc is not blankn";

        if (DiscInfo.IsErasable)
            Message+="Disc is erasablen";
        else
            Message+="Disc is not erasablen";

        Message +="Free LBs = " +DiscInfo.FreeLBs;
        Message +="nNext Writable Address = " +DiscInfo.NextWritableAddress;
        Message +="nTrackNumber = " +DiscInfo.TrackNumber;
        Message +="nLast Session Status = " +DiscInfo.LastSessionStatus;
        Message +="nDisc Status = " +DiscInfo.DiscStatus;
        stbStatus.Text = "Ready!";
        MessageBox.Show(Message);
        stbStatus.Text = "Ready!";