Click here to Skip to main content
15,848,758 members
Home / Discussions / C#
   

C#

 
AnswerRe: Crystal Report Designing Issue Pin
Richard MacCutchan23-Dec-11 1:45
mveRichard MacCutchan23-Dec-11 1:45 
AnswerRe: Crystal Report Designing Issue Pin
Blue_Boy23-Dec-11 5:18
Blue_Boy23-Dec-11 5:18 
QuestionDetecting silence / low level in a WAV file Pin
SimonwHill22-Dec-11 5:55
SimonwHill22-Dec-11 5:55 
AnswerRe: Detecting silence / low level in a WAV file Pin
Alan Balkany22-Dec-11 6:43
Alan Balkany22-Dec-11 6:43 
AnswerRe: Detecting silence / low level in a WAV file Pin
Albert Holguin22-Dec-11 8:43
professionalAlbert Holguin22-Dec-11 8:43 
GeneralMessage Removed Pin
22-Dec-11 8:57
professionalN_tro_P22-Dec-11 8:57 
GeneralRe: Detecting silence / low level in a WAV file Pin
Albert Holguin22-Dec-11 9:44
professionalAlbert Holguin22-Dec-11 9:44 
QuestionHelp Me ! How to add the video OSD? Pin
is90057james22-Dec-11 0:33
is90057james22-Dec-11 0:33 
How to add the video String(OSD), I use DirectX.Capture Class Library?

C#
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        private Capture capture = null;
        private Filters filters = new Filters();
      

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           
            capture = new Capture(filters.VideoInputDevices[0], filters.AudioInputDevices[2]);

            //capture.CaptureComplete += new EventHandler(OnCaptureComplete);
            try
            {
                if (capture.PreviewWindow == null)
                {
                    capture.PreviewWindow = panelVideo;
                    // mnuPreview.Checked = true;
                }
                else
                {
                    capture.PreviewWindow = null;
                    // mnuPreview.Checked = false;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Unable to enable/disable preview. Please submit a bug report.\n\n" + ex.Message + "\n\n" + ex.ToString());
            }
            


        }

        private void button2_Click(object sender, EventArgs e)
        {
            capture.FrameEvent2 += new Capture.HeFrame(CaptureDone);
            capture.GrapImg();
        }
        private void CaptureDone(System.Drawing.Bitmap e)
        {
            this.pictureBox.Image = e;
            capture.FrameEvent2 -= new Capture.HeFrame(CaptureDone);
           // pictureBox.Image.Save("ddd.jpg");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (!capture.Cued)
                capture.Filename = @"F:\demo.wmv";
            capture.RecFileMode = DirectX.Capture.Capture.RecFileModeType.Wmv;  // Vidow Format is wmv
            capture.Cue();
            capture.Start();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            capture.Stop();
        }
    }
}


modified 22-Dec-11 5:44am.

QuestionIIS Problem Pin
Zeyad Jalil21-Dec-11 21:37
professionalZeyad Jalil21-Dec-11 21:37 
AnswerRe: IIS Problem Pin
Rajesh Anuhya21-Dec-11 21:51
professionalRajesh Anuhya21-Dec-11 21:51 
GeneralRe: IIS Problem Pin
thatraja21-Dec-11 23:57
professionalthatraja21-Dec-11 23:57 
GeneralRe: IIS Problem Pin
Rajesh Anuhya22-Dec-11 0:00
professionalRajesh Anuhya22-Dec-11 0:00 
AnswerRe: IIS Problem Pin
#realJSOP22-Dec-11 4:57
mve#realJSOP22-Dec-11 4:57 
QuestionIs "Type" serializable? [SOLVED] Pin
Richard Andrew x6421-Dec-11 19:05
professionalRichard Andrew x6421-Dec-11 19:05 
AnswerRe: Is "Type" serializable? Pin
Not Active21-Dec-11 19:41
mentorNot Active21-Dec-11 19:41 
GeneralRe: Is "Type" serializable? Pin
Richard Andrew x6421-Dec-11 19:44
professionalRichard Andrew x6421-Dec-11 19:44 
GeneralRe: Is "Type" serializable? Pin
SledgeHammer0122-Dec-11 7:29
SledgeHammer0122-Dec-11 7:29 
GeneralRe: Is "Type" serializable? Pin
Richard Andrew x6422-Dec-11 8:26
professionalRichard Andrew x6422-Dec-11 8:26 
AnswerRe: Is "Type" serializable? [SOLVED] Pin
PIEBALDconsult22-Dec-11 6:13
mvePIEBALDconsult22-Dec-11 6:13 
GeneralRe: Is "Type" serializable? [SOLVED] Pin
Richard Andrew x6422-Dec-11 8:27
professionalRichard Andrew x6422-Dec-11 8:27 
QuestionHow to prevent remote log off Pin
turbosupramk321-Dec-11 9:57
turbosupramk321-Dec-11 9:57 
AnswerRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 9:58
SledgeHammer0121-Dec-11 9:58 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 10:06
turbosupramk321-Dec-11 10:06 
GeneralRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 11:15
SledgeHammer0121-Dec-11 11:15 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 11:44
turbosupramk321-Dec-11 11:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.