Take Screenshot Of Screen BEHIND Form?

Apr 4, 2010

I know how to take a screenshot, but how can I take a screenshot of the screen behind my form without hiding the form, taking the screenshot, then showing the form again?The reason I can't simply hide the form to capture the screen behind it is that I need to take the screenshot repeatedly, and hiding the form each time I need to take the screenshot would cause the form to flicker.

Here is the code I'm using now:

Me.Opacity = 0 ' Hides the form. Can't use this!
Dim bounds As Rectangle = Me.Bounds
Dim screenshot As New Bitmap(bounds.Width, bounds.Height, Imaging.PixelFormat.Format32bppArgb)
Dim g As Graphics = Graphics.FromImage(screenshot)

[code]....

View 17 Replies


ADVERTISEMENT

Crop Form Screenshot - Screen Capture Of Twindows Form And Display Only A Certain Specified Area

Aug 2, 2010

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.PictureBox1.Load(bm2)

[CODE]...

So I'm trying to take a screen capture of the windows form and display only a certain specified area of that screen capture in a picturebox on a different form. Kind of like this. First, take the screen capture of the form: Then get a specified area of that form through x,y coordinates or something and display it on a picturebox on a separate form.

View 1 Replies

Take A Screenshot Of Screen?

Apr 24, 2010

I'm trying to take a screenshot of my screen, and get the picture from memory. Then convert it to a string so it can be sent over a network. So far I've tried to adapt this code.

Dim
ScreenSize As
Size = New

[code].....

View 7 Replies

Get A Screenshot Of The Entire Screen?

Oct 25, 2011

I'm using the code below to get a screenshot of the entire screen.

VB.NET
Dim b As New Bitmap(Me.Width, _
Me.Height, _

[Code]....

But I need to edit it so that it only takes the a screenshot of my form. I'm not sure how to pass the absolute coordinates of my form's top most left corner and it's bottom most right corner.

View 14 Replies

'Print Screen' Button Is Pressed, Screenshot Saved To Desktop?

May 1, 2011

I am looking to create simple application that means that when the 'Print Screen' button is pressed, the screenshot is not just sent to the clipboard but saved to the desktop in either JPEG or PNG format.The application will run at startup so that the 'new' print screen functionality is there but the interface of the app is opened manually.(the app interface includes simple options such as choose where file is saved.)

View 4 Replies

Copy Text To An External Program, Click Somewhere On The Screen, Then Save A Screenshot?

Oct 16, 2011

I picked vb.net for this question since it's the only prgramming language I am fairly familair with, but if C++ or something else is more suited for this, I am willing to learn something new.What I am trying to do is:Retrieve text from database (this already works in vb.net) and copy it to clipboard Switch primary screen to the external application I want to work with (example: word or open office) Emulate key-press "Enter" Paste text and hit enter again Emulate key-press CTRL and then emulate a click on a pre-defined spot on the screen (like 500pixels from left, 740pixels from top). Save screenshot, using a second value from the database as the filename (the naming part should be easy) Emulate another click on another pre-defined spot Repeat for next text in database.I wouldn't know where to start, though. I guess the most important part of what I'm trying to achieve is; switching focus to an external application and emulate keypresses and mouse clicks on it.

View 1 Replies

Screenshot Of Form Controls?

Jul 6, 2009

am wanting to create a blur effect kind of thing, so when I download a file asynchronously in the background the form would be blured. I couldn't work out how to do this, or if it was even possible so I can up with this.1) Take screenshot of form2) Blur the image3) Put the image in a picturebox which is ontop of all the controls (Topmost)So say I had a form like thi

View 8 Replies

Screenshot Still Captures Invisible Form?

May 22, 2009

I'm working on a project, and one thing it's supposed to do is make itself (the form) invisible, take a screenshot of the current screen, and the make itself visible again.[code]I made the 'FinishScreenshot function to call the 'TakeScreenShot' function, courtesy of AdamSpeight2008 and save that result as a specified image file in a specified location. the problem is, the screenshot ends up usually showing the form that was supposed to be invisible, but sometimes not (usually on the first form). I'm guessing this is because the FinishScreenshot and Take ScreenShot functions aren't finished working until after the form becomes visible again, but I'm not sure.

View 4 Replies

VS 2005 - Taking Screenshot From A Region In Form

Aug 19, 2009

I need to capture a screen image of a region in my form. So to say it easily me.captureimage.region (X,Y,Width,hight). I need only to take a screen-shot of the region on my form. So i can set the X adn Y and Width , hight to for example my button. so it has to take an image of my button.

View 17 Replies

[2005] Screenshot Of Small Area On Form?

Feb 10, 2009

I have a form with a webbrowser and other things. I want to know how to take a screenshot of just a small area on my form. I searched and only found how to do a screenshot of the entire screen. how can i provide X and Y values of where I want my screenshot?

View 11 Replies

Screen Blanks After 1 Min Of Processing (of Excel File) / Refresh Or Freeze Screen To Avoid Blank Screen?

Jun 29, 2011

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?

View 11 Replies

Irregular Shaped Form With No Borders Moving Across The Screen Until From Within The Loop The Form Closes?

May 26, 2012

I tried it every way I can think off, but nothing can stop it .

View 7 Replies

Form Height Limit, Make The Form Larger Than The Screen And Allow For Scrolling Down?

Nov 17, 2011

I have read that VB .NET in earlier versions limited the FORM size to that of the development machine screen resolution.I am hoping that there is a way in the current VB 2010 to get around that.However in my attempts to make the form larger, it always resets itself to the screen height on my develoment machine.Is there a way to get around this and have the person be able to use a scroll bar to move down?The data I wish to show actually has two screens worth of information but the stuff in the scroll down section would be used on a limitied basis so scrolling will be useful rather than having to recreat the screen to show less data at one time.

View 2 Replies

'abort' (terminate Immediately) A Form Screen In A Windows Form Application Running Under 'local' Environment?

May 30, 2012

FormA calls DialogB where user cancels DialogB which exits via ForceTermination(), see insert.Caller FormA check for DialogResult not = OK, which it isn't, and I can see this in debug as Abort(3).However, the code continues merrily along its way until I get a 'null reference' error which I'm trying to avoid via Force Termination().This is caused by the user cancelling DialogB, a selection process to get a database (SQL) instance.[code]

View 13 Replies

Stop All The Functions On Parent Form While Child Form Is Still On Screen?

May 1, 2009

form1 has datagridview, when I click "add new", form2 appears(details view, allowing me to add new records into datagridview on form1). when I click "add new" again, form2 appears again, if I click x times, form2 will appear x times. How do I stop the add new button and all the functions on form1 from working until form2 is closed?

View 6 Replies

Form.Left And Form.Top To A Different Screen Don't Work?

Aug 24, 2009

I've run into a little problem recently. My computer has two screens sitting side-by-side.

Here are the dimensions for my first screen: {X = 0 Y = 0 Width = 1280 Height = 1024}

Here are the dimensions for my second screen: {X = 1280 Y = 0 Width = 1280 Height = 1024}

My form saves its position on exit into the Registry. Whenever I start my application, I set its opacity to 0 in the constructor and it goes to my first screen. While its opacity is at 0, I then move it to its previous location (1280, 0) like this:

thisForm.Left = X
thisForm.Top = Y
Where X = 1028 and Y = 0.

I place a breakpoint directly in front of those assignments and when I hover over thisForm.Left, it = -4. Whenever I hover over thisForm.Top, it = -4.

Sure enough, when my form comes up, it's in my first screen.

For those interested, I've now worked around it, by doing some additional testing. What caused it: My Window State was Maximized. Solution: If before I set these positions, I change my Window State to Normal, the form moves. I can then maximize it while it's on the second screen and it remains there. why I can't move my form while it's maximized? It's more for curiosity than to find a solution, since the work-around is actually working quite well.

View 4 Replies

Adjust A Form To A Screen?

Jan 15, 2011

I have a MAC 24" wich I like because I have it working as a Microsoft XP.I make several programs in VB6 using most of the screen (about 80% width).But I have several others PCs from 20" to 11".I'm trying to find an automated system to adjust the form, listboxs, etc., to the smaller screens.

View 6 Replies

Any Way To Create App With One Screen On Form?

Dec 15, 2011

I know that when you are working in vb.net, you are using forms, so in conclusion you will have an application with multi-windows. My questions is next: How you can do it, to have all the application screen in a main form. I have an application which assists me to manage the products and the customers. Normally with the forms, if I press on: Add new customer or Add a new product, I will have a new windows pop-uped. I want to have both on the same form. When I press on new custom to see the specific screen and when I press on the new product to see its screen. I tried now using panels and tableLayoutPanels using the property visible, but I'm sure it is not the best way to do it.

View 9 Replies

Call A New Form Screen?

Nov 19, 2010

I know you can do it with form.show, but are there any other ways of doing this?

So what is the most appropriate way of doing this in vb.net?

View 6 Replies

Dim Screen But Exclude Form

Dec 19, 2009

I was just wondering if there is a way to dim the screen and show a form which is not dimmed (eg. Vista/7 UAC prompts)? If so, how would i be able to it?

View 7 Replies

Fit Form To Screen Size?

Feb 10, 2010

Anyone know of a way to fit a form to the size of the screen automatically? So it is fully visible on a 10" netbook if you designed it to fit a 13" screen?

View 2 Replies

Forcing Form To Be On The Screen?

Jun 18, 2009

Is there a way to force a form to be active and shown?

From another form i am doing:

Me.Hide
Form2.Show

When this code is run, the Form2 is minimized.

I've also tried:

Me.WindowState = FormWindowState.Normal

in the load event, and it still loaded it in minimized mode.

View 1 Replies

Get The Form To Fill Up The Screen?

Apr 10, 2011

I want the form to automaticly fill up the whole screen when executed.

View 1 Replies

How To Center The Screen In Form

Feb 2, 2012

I have a form size is 1092, 626 in design time. i set startPosition screen center. i write a code in loading event Me.Width = 486 i mean resize my form . but when it load i will not center. it was in little bit left size.

View 2 Replies

Opening New Screen In Same Form?

Nov 24, 2009

I'm trying to create a new screen in the same form, the only thing I've done closest to doing that is when you click on a button in one form, another form opens. But I'd like this action to be presented in the same window. So I guess I want to open multiple forms in the same window.

View 1 Replies

Run A Form Without Present It In The Screen?

Nov 10, 2009

I would like to know if it's possible run a form without present it in the screen...

View 14 Replies

Save Form To Screen Or PDF

Mar 30, 2010

is there a possibility to save a complete form including Dataviewgrids and everything to a screen or a PDF?

View 6 Replies

Anchor The Form To The Border Of The Screen?

Apr 16, 2009

1) I want anchor the form to the border of the screen, in this way :

2) and if i change the video resolution (for example from 800x600 to 1024x768) i want that it will be automatically resized

View 7 Replies

Any Way To Capture Screen Of Form Area?

Mar 2, 2010

I was about to create a code for capturing screen of the area of a form.. Below code is capturing only the form size but from the top of the screen.. I want to capture the area of screen wherever it placed..
Code:
Dim loBmp As Bitmap = Nothing
'Dim Somebitmap As Bitmap
Dim screenSize As Size = New Size(Me.Bounds.Width, Me.Bounds.Height)
Dim screenGrab As New Bitmap(Me.Bounds.Width, Me.Bounds.Height)
Dim g As Graphics = Graphics.FromImage(screenGrab)
'Dim FiletoDelete
'MsgBox(lsFile)
g.CopyFromScreen(0, 0, 0, 0, screenSize) ("Need Some changes here!!")
screenGrab.Save(LogLib & lsFile)

View 5 Replies

Application That Contains A MDI Form As Main Screen

Feb 25, 2009

I have an application that contains a MDI Form as the main screen. In the text field of the form, I am trying to display the version of the application using the following syntax:[code]Using the above code, it always looks like 1.0.0.0 when in reality I'm on version 1.0.0.6. What am I doing wrong?

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved