Ive been trying to build a simple application that runs a single website, as a promotion for a friends new project.The problem is, he wants it to exit when ESCAPE is pressed.Since neither of us have any expierence building apps, were fully relying on stuff we find on the internet.I was able to make the webrowser work in full screen,I was able to make it quit when ESCAPE is pressed.But for some reason, when I combine the code, it doesnt work anymore.This is what I have sofar:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.WindowState = FormWindowState.Maximized
I am trying to make a web browser for a school project... and I have a few questions...
The first being that I have a textbox for my address bar and I want it to do a few things, I want it to expand when i set my browser to fullscreen , be able to press enter when typing in it and it will take me to that webpage and for it to show recent history... (i know it seems like a ton of expectations mainly i would like the first 2 the third is not as important) So i dont know how to do any of that...
I also would like to know how to go about making new tabs on demand and not have a bunch of tabs just sitting there...
last question how do i go about making new windows not just for browser windows but, making something like firefoxes options window.. not necisarily to do that but just to make i guess another form pop up...
I have created a <acronym title="Visual Basic">VB</acronym>.NET project that includes WebBrowser control. The web browser control navigates to html page that embedes a flash movie. Everything works fine except that when I want to exit the fullscreen mode of the video by pressing (Esc) key, it doesn't exit. If I view the html page with any other browser (Internet Explorer, Firefox, ...) it works perfectly. You can download the project from the link below. The files are in the Debug folder. Download Link: FlashinWebBrowser.rar - [URL] - online file sharing and storage - download
I'm having a bit of a problem getting my application to close properly. Basically I have one main form from which all other forms open. If a user tries to close that main form, I want to bring up a MessageBox asking if they want to exit the application.However, when I try to do that it asks the question twice. It seems that the Application.Exit() is triggering the FormClosing event again for some reason, but I don't know of another way to exit the application. BTW, the main form isn't the startup form so I can't use the option to close when the startup form closes.
Now I have a sub to validate a bunch of textboxes and combo boxes.I previously used many IF statements to validate and pop up different messageboxes and Exit Sub in every IF statement.But I heard that too many Exits will decrease the efficiency and they were not recommended to use. Instead, nested IF is better because it will let the process naturally go to the end.Then I found out that if I use nested IF,it will be hard to read, since messageboxes are all separated from conditions.
How do I exit from the recursive loop from the code below. I would like to notify the end-user to select a checkbox in a msgBox before I exit the loop.
I have just done my program, just skeleton not completely, the final problem has not been solved up to this time.When I run my application, the Icon of its will be showed at TaskTray. I would like the icon is there when I exit fom of application and then If I double click on the Icon, the application will be showed.
This will be a simple one I bet as totally new to VB but have to start somewhere.I need the code to make a program called td4.exe on my I: drive be called from a VB app and it MUST run in Fullscreen mode with no borders. If just run the td4.exe it is windowed and will not alter even from the properties settings.
how to write the fullscreen video opening vb.net code? Currently,I am doing the project opening full screen video by moving the sensor.I can do the maximized video opening when run the program,but not full screen.I heard about ActiveX for fullscreen before, but I don't know how to put it and make the fullscreen.
Now my question is, is it possible to use Hotkeys and ScreenCapture in a Fullscreen game?If so, how?What im acutaly trying to do is a program to take a screenshot ingame (for some reason, this game doesnt have an option to take screenshots ingame.. Bad Company 2)
I have created 2 forms: "Form1" and "Form2"....Form1 is MDIcontainer and it contains Form2. In Form2 I have inserted the windows media player OCX. When I run the program and try to set the media player to fullscreen (via command button) appears an error: {"Errore irreparabile (Eccezione da HRESULT: 0x8000FFFF (E_UNEXPECTED))"}
Here's the Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click AxWindowsMediaPlayer1.fullScreen = True [Code] .... If I open a new project and I copy the code and the media player it works! I think problem is when I use MDIforms.
I have this one project going on, and I has media player inside the form, and other staff too. How I can make only the media player to go in fullscreen?
I need to create a vb-application which plays video-files as a fullscreen mode on computer's external screen. At the sametime user must have control to these files on another screen shown on the computer's (laptop) own screen.
So far I have managed to open the videofile as a fullscreen mode so that user has to first drag the videopanel (not a problem in this case) to the another screen and then click the "Fullscreen"- button on the control-form. Now the problem is that when another screen is playing on a fullscreen-mode and user clicks the control-form on the main screen: the fullscreen-mode ends and the videopanel results to the video's actual size.
Is there any solutions to this? So I'd need to continue the fullscreenmode on the other screen while there are user actions on the main screen. I am using DirectX / AudioVideoPlayback by Visual Basic 2008 Express Edition. And yes, I am quite a newbie with VB-related things :)
The following code takes a full screen screenshot: Public Function TakeShotOfScreens() As Bitmap Dim maxHeight As Integer = 0 Dim maxWidth As Integer = 0 For Each scr As Screen In Screen.AllScreens maxWidth += scr.Bounds.Width [Code] ..... I am after some code that takes a screenshot of only a small portion of the screen.... I have to x,y,width and height of the square that I wish to take. Is this possible?
i make a simple winform application with AxWindowsMediaPlayer and timer.
My objective is about to make the application play the clip with interval (that's why i use timer)
When AxWindowsMediaPlayer finish playing the first clip, everything's okay. But when it begin playing the next clip. It CAN'T HAVE FULLSCREEN MODE. I have to double click the control manually to have it fullscreen. I use vb 2005 in 7 ultimate.
Here is my code
Private Sub AxWindowsMediaPlayer_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles AxWindowsMediaPlayer.PlayStateChange
I've a really nice fullscreen code I found on the internet, the only problem I found was that you can't make msgbox show or open another form! Which is really bothering me making panels.visible = true/false to make a cheap way of "Forms"orm1.
Private Sub TryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Call normalScreen()
I'd need to show an image in fullscreen mode on my application when a music-file is being played. Is it possible to define a form and an image (picturebox) to be shown as a maximum size on the screen?One thing that makes it even more interesting is that I'd need to show it as a fullscreen mode on a external screen.
Is there a way to add a Full Screen button to the embedded media player? I know that you can add a 'button' that will set it to full screen after it is running, or you can add code that will make it go full screen, but is there a way to actually put a button in the embedded player to make it go full screen?
Is it possible to create a menu when wmp comp is in fullscreen mode. I mean when wmp goes fullscreen a toolbar or something appear, showing play pause etc! Generally all the controls of a player...
Basically I want to Position a line from The middle of my screen to the bottom right of my screen. But I need to draw over the game to do this. I dont mind if it flickers as long as its there is all i want. Like this VV