I am trying to make a simple personal program and cannot figure out how to capture a section of the screen.I want it to work like prt scr does except it captures a specified rectangle instead of the entire screen. I am thinking I have to use Drawing.Graphics but am not sure.
I'm just wondering if it's possible to add the mouse when capturing the screen or monitor in vb.net?
because I'm doing a project that would record the screen and I'm actually successfull doing that by capturing the screen and include it in a timer, but my only problem is the mouse or the cursor isn't showing.
below is my sample code. Dim ScreenSize As Size = New Size(TotalScreenWitdh, MonitorHeightArray(0)) Dim BMP As New Bitmap(TotalScreenWitdh, MonitorHeightArray(0))
I'm looking to make a program that would capture your whole screen, then have the picture display on the screen (simulating a frozen screen) to where the person handling the program could select a partial segment of the screen with their mouse and then save to a folder. 1. I have no idea how to go by doing this 2. My form is constantly minimized, so I have to do it without MouseDown on the form and whatnot. How would I go by doing this?
Hi.. Im using an application to capture selected part of screen by resizing the form and capturing area of it!! now i want to reset the form once my work id done!! i mean if i press a "RESET" button the form should be load as first time it was loaded.(the real form size..)
I am working on a vb.net app that is capturing a screen shot then crops down to the "status bar" of a particular application this image is then converted to black and white. I crop off the left portion of this to compare to a preset image. this is where the app breaks as for some reason it shows the images being the same no matter what. here is where i think the problem is but i also attached full source in case its needed
I am creating a custom config section that will allow me to manage what ELMAH exceptions I want to ignore from my VB.NET/ASP.NET app. Here's my code. I made it easy to paste in a blank code file if anyone's up to the challenge of diagnosing the problem.
CODE:
When I execute this code:
CODE:
I get the error An error occurred creating the configuration section handler for IgnoredExceptionSection: Could not load file or assembly 'WEB' or one of its dependencies..
What boggles my mind is that this all works fine in my C# console test app after I convert the code from VB.NET using a web utility. However, when I paste the VB code from my web app into my VB.NET console test app, it doesn't work there, either, so it appears to be a C#/VB issue. What am I doing wrong here?
BTW this issue occurs in any MS office program when the VB.Net (or even VBA) is processing information.Example: In Excel, a worksheet is displayed on the screen. I start either, a VB.Net or VBA procedure and within 30 seconds the Excel worksheet (previously displayed) blanks out. In both VB.Net and VBA,ScreenUpdating = False. My expectation is that the previously displayed screen would stay static as if I left my desk to get a cup of coffee; came back and the same ole Excel worksheet was still there?Of course, setting VBA Screen Updating = False accomplishes two goals: 1) speeds up processing and 2) saves the user from seeing unnecessary "garbage-processing" steps.Why does VBA or VB.Net ScreenUpdating = False not freeze the screen at the time of its invoking?
I was creating some complex applications in Visual Basic .NET 2008 and since they are in the testing phase right now, people manage to find an error or two every so often that causes the program to crash. The problem is that there is a tracking piece to it that logs who is currently using the programs. When a user logs in, it logs that they are currently logged in, and if the form close event is fired, the log is deleted to show that they have closed it.
Now my problem comes whenever the form crashes from an error since it won't trigger the close event and therefore makes the log become inaccurate. My question is if it is possible to capture any error that the form would have in the form of an event?
I am trying to modifying the "Math Quiz" tutorial to be more user friendly.
The initial tutorial does not consider the users efforts to answer the math problems as quickly as possible.
The problem is that you must use the mouse or tab key rather than the "enter" key to move to the next control after answering. I believe using the "Enter key to be much more intuitive.
Therefore, I wish to modify the program to either:
1. Check the KeyPress event of the NumberUpDown controls to watch for the "Enter" key to be pressed, and if it is, check to ensure that the current NumberUpDown control is not empty (= Nothing) and if both are True, to then TAB to the next control in the TAB order; OR
2. Uses the PreviewKeyDown event to transpose the "Enter" into a "Tab" automatically so the application will then TAB to the next control in the TAB order.
With all of the new changes to VB 2010 from the last version I actually used professionally (VB6), things are REALLY different, so I no longer know how to accomplish this same task in the new manner. especially if it contains working CODE, because I have always learned better the first time from an example. here is my version of the tutorial Code:
'--- Create a Random object to generate random numbers. Private objRandomValue As New Random '--- The Integers will store the numbers for the ' addition problem.
Okay, so I know how to capture a screenshot of the Active Window, but if the active window is a game, then the screen is just black. What do I need to do to be able to also capture ingame screens?
I was wondering if there is an easy way to analyse sound that is sent to the speakers (just before it's played). For example when playing a song in winamp or windows media player. Or is it easier to write plugins for those programs to form an interface with your own program?
I have a datagridview (unbound). Fields are Name, Family Name and Phone No and a checkbox colum.
There are ten rows in that DataGridView.
There is an OK button
I need to get message of showing which rows user has checked. The message should appear when user clicks OK button. There could be several message, checking each row one by one, in a loop.
I am not able to get this message. I tried following code in OK button
Dim strCB As String = dgvChooseQs.Rows(0).Cells(3).Value.ToString
Cell(3) is my checkbox. Donot consider Rows(0), at the moment I am just checking value at row 0
I have read and tried a dozen or more examples of trying to capture the Enter key in a datagrid, but I have yet to find something that works. My scenario is :
ds.Tables.Add(dt) dt.Columns.Add("Inventory Nr", GetType(System.String)) dt.Columns.Add("Cases", GetType(System.Int32)) Inventory Nr in the next row.
I'm currently trying to Capture through DirectSound, I've been trying toying around with WaveLib(Ported to VB) but this is very confusing. Anyway, I cant figure out how I am supposed to do this and would like some assistance. The end goal of this project is to: Record Microphone > Encode with Speex Codec > Send over UDP > Decode > Play on Speakers
I would really like to get some VB.net program code for still image capturing using a Webcam.I've searched the web for quite a while now but did not get any codes. Currently i have a code for capturing video. In that code an image can be captured, but only with 640 X 480 resolution (Maximum Video resolution for my web camera). The WM_CAP_DLG_VIDEOFORMAT dialog box only allows the resolution to be set up to 640 X 480.
We are using avicap32.dll for capturing Pictures from Webcam,and we want to display the list of connected Webcam names but we are only able to get the driver name for webcam by using capGetDriverDescriptionA method. Is there any method to get the name of the webcam like "asus W120"
I'd like to start by saying that simply though searching, DreamInCode has taught me alot about VB.NET. In fact, I would imagine without DIC as a resource, I probably wouldn't have been able to move forward and learn most of what I know now, just because I got stuck on some things here and there.Anyway, I searched around for information regarding how to "capture" a minimize event in VB.NET. I am working on the GUI for an application that I would like to have minimize to the system tray. Currently, instead of accomplishing this with the minimize function, I do it on the FormClosing event like this:
Private Sub MainFrm_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing 'Cancel the attempt.
[code]....
That code works, and upon making the form visible again with Me.Visible = True the form is restored to its original position. However, prior to the form being hidden, the window manager draws a minimize and restore effect before eventually hiding it. Any change to the WindowState _after_ hiding the form does not appear to have any effect, so when the form is unhidden it is still minimized.is there a way to capture Minimize events, and when captured, is it possible to cancel them in a manner similar to what I did with the FormClosing event?
I have an application that primarily moves files from one location to another. I need to get the user's response when asked by Windows if they would like to overwrite or rename the new file because it already exists in the destination selected on the form. I basically need to receive a boolean value so i can update the transaction logs.[code]
how I can detect the mousedown,mouseup etc even outside my application using vb.net? I have an API here,but,doesnt seem to work the way I expect it to..
VB
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
[Code]....
Should that API be modified to be used or something?? or what should I do to capture the mouse click events..both left and right buttons...
Basically I have created a windows service using VB 2008 where I am trying to capture screenshots periodically.
The timer is working fine and I have tested this.
The purpose of the service is to monitor the desktop over night when the user is logged off, by capturing screenshots and saving them to file. This is so admin can be alarmed about security breaches etc.
The problem is is that I have not found a way to capture desktop screenshots as a windows service (or otherwise) while the windows logon screen is active (i.e: when the user locks the computer). I have used google extensively but to no avail
I need to capture still's from 2 different video cameras. I am using a 4 channel usb dvr. I have tried to use DirectShow but I only get 1 camera. How can I get a list of all the cameras connected to my pc. I use Visual Studio 2008.
Is there a way of capturing the current contents of all the variables in a VB .NET application when the .exe crashes?Ideally I would like to write out the current contents of all variables to a flatfile when an .EXE crashes.
How do I capture the cell value of an entry in a new row in a datagridview? This is what I have so far but it's capturing the previous row's cell value: