Save Form To Screen Or PDF
Mar 30, 2010is there a possibility to save a complete form including Dataviewgrids and everything to a screen or a PDF?
View 6 Repliesis there a possibility to save a complete form including Dataviewgrids and everything to a screen or a PDF?
View 6 RepliesWhat I would like to do is to be able to save a portion of the screen, from Start_X, Start_Y to End_X, End_Y, and then use it as a resource as follows:
DrawImage(SavedImage, New Rectangle(Start_X, Start_Y, End_X, End_Y))
I would like to take a screen shot and save it in a sub folder in the main folder the application opened from for example C:/~/Application path/Screen shots/ I am using Visual basic 2005.
View 7 Repliesmaking a screen recorder. make it take a screenshot 15-30 times a second, and for each shot there will be a text file that will say the location of the cursor when the shot was taken and what the cursor was, like loading or whatever. Then when the user presses save, it will take all the shots, import the cursor in each one and then create an AVI using each of the frames that were initially shot. Another better way would be to take a screenshot with the cursor in it, if thats possible.
View 8 RepliesI am trying to make a project, but I am beginning and the examples that I see in the forums are giving certain. desire to make a program where web opens definitive page. When opened, the shown content is copied and recorded in an archive. Desire not to copy code HTML, but yes, the text that is appearing in the screen.
View 6 RepliesI am new to VB and having an issue with Print Screen. I'm trying to take a screen shot, show it in a picBox and then save the image to a file. Eventually, I want to add a timer and have the webcam open on screen so that I can take a set of pictures and save them to the hard drive (a very simple "security" cam).What's happening is when I click on my "Start" button the screen shot always seems capture the last screen event (ie: if I move the dialog from left to right and click "Start" the dialog is still showing on left side of screen shot). Not sure what's going on with this. I tried variations to update (picBox.Refresh(), .Update(), and .Show()) without any change. It's as if two clicks are required to make a capture.Also, I'm trying to save the image that's been captured and can't seem to get that working.
Code:
Option Explicit On
Option Strict On
Public Class Form1
[code]....
how do I post a screen shot in my thread. I have save visual studio screen shot in my document. but I don't know how to post it.
View 1 RepliesBTW 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 RepliesI need to save the form settings, like a save state of the form. Because the program allows the user to add controls. I would like to be able to save them and load them. BTW: The controls are Panels and Labels. BUT! The Panels are a modified version of the control, known as NewComp. This simply allows the user to drag the panel around the form.
View 11 RepliesI 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 RepliesI tried it every way I can think off, but nothing can stop it .
View 7 RepliesPublic 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.
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 Repliesim using this code
Dim VideoSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim PIC As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim image As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(PIC)
[code]...
How do I include the cursor with this and save all the screenshots as one video file?instead of saving as 1000 pics?
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 Repliesform1 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 RepliesI'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.
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 RepliesI 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 RepliesI 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?
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 RepliesAnyone 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 RepliesIs 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.
I want the form to automaticly fill up the whole screen when executed.
View 1 RepliesI 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 RepliesI'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 RepliesI would like to know if it's possible run a form without present it in the screen...
View 14 RepliesI 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]....
how to get the form to save some data, but the problem is I only know how to get it to save as the body. since the main parts of the program are third party, but here is the code I'm using to save data.
Private Sub Initialize()
' cmbLabel shows group(student) level
cmbLabel.DataSource = _schedule.DataStorage.LabelStorage.Labels
[Code]....
Since I have them all saving to the "body", whatever the last box is in the code is what shows for all three once I click save.
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