Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why do we have properties? Pin
V.16-Nov-06 2:34
professionalV.16-Nov-06 2:34 
QuestioniPod like menu for pocket pc development Pin
HRiazi15-Nov-06 23:07
HRiazi15-Nov-06 23:07 
QuestionProblem in building DirectShow Application Pin
alpa shah15-Nov-06 22:06
alpa shah15-Nov-06 22:06 
AnswerRe: Problem in building DirectShow Application Pin
AB777115-Nov-06 22:33
AB777115-Nov-06 22:33 
GeneralRe: Problem in building DirectShow Application Pin
alpa shah15-Nov-06 22:46
alpa shah15-Nov-06 22:46 
GeneralRe: Problem in building DirectShow Application Pin
Amar Chaudhary15-Nov-06 23:01
Amar Chaudhary15-Nov-06 23:01 
GeneralRe: Problem in building DirectShow Application Pin
AB777115-Nov-06 23:01
AB777115-Nov-06 23:01 
GeneralRe: Problem in building DirectShow Application Pin
alpa shah15-Nov-06 23:07
alpa shah15-Nov-06 23:07 
yes, it's throwing me exception.

I've implemented the sample application from this site only...

sample code is:


try{
//get the graph filter ready to render
OpenFileDialog ofg = new OpenFileDialog();
if (ofg.ShowDialog() == DialogResult.OK)
{
String fileName;
fileName = ofg.FileName;
graphBuilder.RenderFile(fileName);
Text = fileName;
//set the trackbar
isSeeking = (graphBuilder.CanSeekForward() == -1) &&
(graphBuilder.CanSeekBackward() == -1);
if (isSeeking)
trackBar1.Enabled = true;
else
trackBar1.Enabled = false;
trackBar1.Minimum = 0;
trackBar1.Maximum = (int)(graphBuilder.Duration * 100.0);

Text = fileName;

//prepare and set the video window
videoWin = graphBuilder as IVideoWindow;
videoWin.Owner = (int)panel1.Handle;
videoWin.WindowStyle = WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN;
Rectangle rc = panel1.ClientRectangle;
videoWin.SetWindowPosition(0, 0, rc.Right, rc.Bottom);
mediaEvt.SetNotifyWindow((int)this.Handle, WM_GRAPHNOTIFY, 0);

//set the different values for controls
trackBar1.Value = 0;

minutes = (int)graphBuilder.Duration / 60;
seconds = (int)graphBuilder.Duration % 60;
statusBar1.Panels[0].Text = "Duration: " + minutes.ToString("D2")
+ ":m" + seconds.ToString("D2") + ":s";
graphState = State.Playing;

//start the playback
mediaCtrl.Run();
}
}
catch( Exception ) { Text = "Error loading file"; }

alpa shah

GeneralRe: Problem in building DirectShow Application Pin
AB777115-Nov-06 23:33
AB777115-Nov-06 23:33 
GeneralRe: Problem in building DirectShow Application Pin
alpa shah15-Nov-06 23:43
alpa shah15-Nov-06 23:43 
GeneralRe: Problem in building DirectShow Application Pin
AB777115-Nov-06 23:55
AB777115-Nov-06 23:55 
GeneralRe: Problem in building DirectShow Application Pin
alpa shah16-Nov-06 0:02
alpa shah16-Nov-06 0:02 
GeneralRe: Problem in building DirectShow Application Pin
AB777116-Nov-06 2:22
AB777116-Nov-06 2:22 
GeneralRe: Problem in building DirectShow Application Pin
Blekk16-Nov-06 1:03
Blekk16-Nov-06 1:03 
GeneralRe: Problem in building DirectShow Application Pin
AB777116-Nov-06 2:23
AB777116-Nov-06 2:23 
GeneralRe: Problem in building DirectShow Application Pin
alpa shah16-Nov-06 2:30
alpa shah16-Nov-06 2:30 
QuestionHow to add buttons inside PopUps? Pin
crazy_mads15-Nov-06 20:04
crazy_mads15-Nov-06 20:04 
QuestionBurn CD Pin
freshonlineMax15-Nov-06 19:55
freshonlineMax15-Nov-06 19:55 
AnswerRe: Burn CD Pin
Eduard Keilholz15-Nov-06 20:16
Eduard Keilholz15-Nov-06 20:16 
QuestionNeed to Insert into TEXT1.TXT from TEXT2.TXT Pin
M Riaz Bashir15-Nov-06 19:45
M Riaz Bashir15-Nov-06 19:45 
GeneralRe: Need to Insert into TEXT1.TXT from TEXT2.TXT Pin
Tamimi - Code15-Nov-06 20:00
Tamimi - Code15-Nov-06 20:00 
GeneralRe: Need to Insert into TEXT1.TXT from TEXT2.TXT Pin
M Riaz Bashir15-Nov-06 20:07
M Riaz Bashir15-Nov-06 20:07 
GeneralRe: Need to Insert into TEXT1.TXT from TEXT2.TXT Pin
Eduard Keilholz15-Nov-06 20:20
Eduard Keilholz15-Nov-06 20:20 
GeneralRe: Need to Insert into TEXT1.TXT from TEXT2.TXT Pin
M Riaz Bashir15-Nov-06 20:32
M Riaz Bashir15-Nov-06 20:32 
QuestionPull/Driverless printing Pin
cathy_d'souza15-Nov-06 19:29
cathy_d'souza15-Nov-06 19:29 

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.