ColdandUgly Posted July 20, 2005 Posted July 20, 2005 Seems like this should be easy enough. Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove If boolFull = True Then Try mobjVideo.Fullscreen = False boolFull = False Catch ex As Exception MsgBox(ex.ToString) End Try End If End Sub But this doesn't work... Quote
Administrators PlausiblyDamp Posted July 20, 2005 Administrators Posted July 20, 2005 When you say doesn't work could you give a little more detail as to what you are expecing to happen. If you step through in the debbuger is boolFull = true? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ColdandUgly Posted July 20, 2005 Author Posted July 20, 2005 Re: Sorry. Doesn't work means it doesn't leave fullscreen mode. I was unable to check mobjVideo.Fullscreen as Boolean So to determine if the video was playing at full screen I set a boolean variable. Private Sub cmdFull_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdFull.Click Try mobjVideo.Fullscreen = True boolFull = True Catch ex As Exception MsgBox(ex.ToString) End Try Debug.Write(boolFull) End Sub The debug log shows false fasle false false false true <- set full screen false <- subsequently moved the mouse boolFull is declared in the General declarations as boolean. And looks like it holds its value. I am geissing the following 'false' is because I moved the mouse in full screen mode. But DX didn't return the window to normal view. Quote
ColdandUgly Posted July 21, 2005 Author Posted July 21, 2005 Um, I just realized there was a (sub) forum for DirectX inside this forum. This post should be moved. Quote
ALEX_0077 Posted August 1, 2005 Posted August 1, 2005 The simple reason is that once your in full screen, you can't writ back to the video object. (At least, thats what im told) Check this article on the video obect, and what to do in your case: msdn article on the video object Quote Me = 49% Linux, 49% Windows, 2% Hot gas. ...Bite me. My Site: www.RedPierSystems.net -.net, php, AutoCAD VBA, Graphics Design
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.