Interface And Graphics :: Getting Multiple Monitor Screenshot?

Feb 12, 2009

I'm working on a small app that takes a series of screenshots to analyze a graph. The problem I'm having is that, on my 3-monitor setup, the screenshot works fine on the primary monitor, but when I drag my app to either of the other monitors, the screenshot is black. I've also tried taking screenshots of the other monitors while the app is in the primary monitor by feeding the coordinates into the CopyFromScreen call directly, and that works, but as soon as I drag my app to one of the other monitors, all my screenshots are black. Also, and I'm pretty sure this will be important later, my primary monitor is attached to the on-board video, whereas the other two are attached to a separate video card. Both the on-board and installed cards are ATI Radeons.

Here's the screenshot code I'm using:

Code:

Namespace ScreenShot
'/ Provides functions to capture the screen, in whole or part
Public Class ScreenCapture

[code]....

View 2 Replies


ADVERTISEMENT

Interface And Graphics :: Take A Screenshot And Save To Bitmap?

Dec 29, 2010

I'm having an issue with some code I'm trying to write that takes a screenshot of the current screen and saves it to a bitmap file on my local PC.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim tempScreenshot = New Bitmap(Screen.PrimaryScreen.Bounds.Width,

[code].....

View 5 Replies

Interface And Graphics :: GDI Output To A Monitor And Projector

Aug 30, 2008

I'm writing a VB2005 program (for WinXP) to implement a lighting show and need to clarify a few things before I buy a video projector.My PC has 2 Geforce 8800GTS cards. One will feed a standard monitor (housing the program control interface) and the other will feed the video projector doing the lighting show.My prog uses GDI DrawString to output text to the video projector.In the prog I want the output of Form1 (control interface) to ALWAYS go to the Monitor (through the primary display adapter) and the output of Form2 (GDI text strings) to go to the video projector (through the secondary display adapter).Can I assign a FORM to a specific Display Adapter or Monitor/Projector so that all output from that form will automatically go to that adapter (monitor/video projector)?If not, what is the best way to do it? Perhaps something like the following? Frankly I have no idea whether this is even remotely correct or whether there is a better way. [code] If the above is correct, will it work for a video projector as well (i.e. is a porojector also set to a specific resolution/bounds and is that resolution/bounds used as its size, as with a monitor?

View 2 Replies

Interface And Graphics :: Monitor Resolution For The Masses?

Jan 11, 2012

Recently I released a �preview edition� of an app to the www for distribution. One of the comments I received back was about it not fitting on the screen properly.So I just wanted to put it out there and get some feedback on how everyone approaches the subject of trying to make everyone happy.Being that it was a preview edition and not a released version I wasn�t all that concerned about things like auto scaling. The purpose was to demonstrate the concept of the program not provide a fully functioning bug free version of the software.I have started on a �preview edition 2� which includes 5 group boxes (3 left side and 2 right side) and I have that fairly well sorted, sizing and positioning the group boxes using the Form width and Height.I am not really interested in improving that section of the code too much as it works fairly well already. My concern is more around the labels, text boxes, drop down boxes etc. in the groupboxes�

Again I can do a similar thing scaling to the height and width of the groupbox properties to align the contents of the groupboxes.My question is� When you try to use a resolution like 800 x 600 (which appears huge after using ~1600 x 1000) how do you squeeze everything on the page?I was thinking of changing the font size for each resolution group i.e. < 900 Horizontal run this font size, < 1000 Horizontal run this font size etc.Or I could work out the font size based on the resolution and round it� FontSize = rnd (Res / 100, 1) since the lower the resolution the bigger the font is going to look anyway.If I can control the font size and I auto size all the labels and text boxes etc. I think I have a far better chance of getting everything on the screen.

View 7 Replies

Interface And Graphics :: Multiple Images To One Gif Animation?

Nov 16, 2010

I have multiple bitmaps(i) in arrays, and I want to know if I can save each of these bitmaps into on animated gif file. I thought about using image.saveadd() but i'm not sure if that will work.

View 2 Replies

Interface And Graphics :: TabControl And Multiple DataGridviews?

Apr 8, 2011

I have a strange problem; on my form there is a TabControl, and every tab contains a DataGridView.I set all DataGridViews Autosize column property to DataGridViewAutoSizeColumnsMode.Fill and then I set for every column the width with FillWeight, using the same set of values for every DataGridView.Although all these DataGridViews should look the same, the one on the first TAB looks different, it looks like I used different FillWeight values.All others DataGridViews on subsequent tabs looks the same, only the one on the first tab looks different..

View 2 Replies

Interface And Graphics :: Working With Multiple Combobox?

Oct 4, 2009

How to work with multiple combobox. I have several combobox. I it to have same itemlist and set a default value for this.I used to do:

Code:
Dim MyItemToBox(3) as System.Object
For i as integer = 0 to 3
MyItemToBox(i) = "A" & i
Next

[code].....

View 1 Replies

Interface And Graphics :: Accessing Controls Using Multiple Forms?

Aug 28, 2008

I don't know the best way to use multiple forms in VB, but I have created a problem and I'm not sure where it came from or how to fix it.

Background: I start the program at Sub Main. This is the main function:

Code:
Module modFunctions
Dim frmD As frmDAQ
Dim frmT As frmTrendView

[Code].....

it works, but I don't want to have to change the entire project.

View 1 Replies

Interface And Graphics :: ComboBox With Multiple Images Per Line?

Feb 16, 2009

insert images in a combobox. I understood the code, but what I'm asking is how do I add multiple images per line of the combobox?? I mean the way, the smileys are displayed in dropdown grid in Yahoo! messenger or the sort when you click on the smiley button..

I'm using Microsoft Visual Basic 2008 Express Edition with .NET Framework 3.5

View 1 Replies

Interface And Graphics :: Special Characters In Multiple Text Boxes Via Buttons

Nov 14, 2008

I need to be able to add (specific) special characters to text boxes. Problem is, there are five of them spread across two forms and three tabpages. What I'd like to do is bring up a form when the user presses something like "F2" while the text boxes are focused, then on that form would be a grid of buttons. When the user pushes a button, the character is added to the box. How do I get this form to reference the box that called it without passing a global variable or calling a public function? I tried Form3.Parent.Name, but that always seems to refer to nothing. Also, once this is done how can I get it to just insert a character where the cursor on the calling box is? It probably shouldn't even be on a form either since that will take the focus when it's called (which I don't want)

View 3 Replies

Make A Screenshot Of A Specific Monitor

Jan 23, 2012

How can my app screenshot a specific screen (in a multiscreen environment)? I need one screenshot per screen. And one more thing, how can the form change the screen it's working on?

View 4 Replies

Interface And Graphics :: Adding Multiple Checkboxes On FormLoad Depending On Amount Of Items In Database

Oct 20, 2008

The Title says it all Adding Multiple Checkboxes on FormLoad Depending on Amount of Items In Database. [code]

View 4 Replies

Interface And Graphics :: Dynamicaly Center Multiple DrawText "Labels"?

Feb 23, 2010

I've drawn a graph where each gridline represents 15 minutes. (Every 4, 1 hour of time)The resolution is 100 dpi per inch. Each column is 12 DPI. (Not very big)Each gridline can have zero to multiple "Lines of data" which must be centered under the associated gridline using a vertical transform. (Each drawtext label represents an event that happened at that point in time)This I can figure out. The problem is that there can be 3 labels at 3:00AM, then another 2 labels at 3:15 AM with more labels as time progresses through the day. If each "label takes up 24 dpi of space, I need to center 120 dpi of data under 12 dpi of space.(Drawing the lines from the gridline to the associated data should not be an issue depending on how the "label is centered)How can I center all 5 labels at runtime. I've considered an array but each time a "label" is added, I would have to recaculate each labels position. Besides that, how can my program recgnize that the data it is coming up to (data is read one line at a time) is a group or how large the group is?

View 17 Replies

Interface And Graphics :: E.Graphics.Drawstring Length Overflow Page?

Nov 19, 2010

Im working on a project that needs to print a report of one client.Everything went smooth untill i came across my multiline input text data.When i display it in the PrintPagePreview the text go's outside my page. Even when im printing it only the halve of my text is displayed. I googled and looked everywhere but i can't get a clear fix for it.

[Code]...

View 3 Replies

Interface And Graphics :: Passing Bitmaps & Graphics To Subroutines As Arguments

Jan 22, 2011

I used to program with Visual Basic 6, so I have alot of old programs that I'm updating, plus I'm learning the new VB2008 methods. I'm writing a program that replaces the old "BitBlit" function which is no longer supported by Visual Basic 2008. It involves three picture boxes, one holds the sprite bitmap, a second holds the mask (silhouette) of the sprite bitmap, and a third has a background image.

[Code]...

View 3 Replies

Interface And Graphics :: System.Drawing.Graphics.DrawString On Other Window?

Aug 14, 2009

drawing text on a window which is not the current form's window.I remember doing this in Win32 api with getwindowdc(handle) to obtain a DC for the Window, then textout() on the DC.

View 2 Replies

Interface And Graphics :: Create A User Interface In A Game Such As The Application XFire Using VB?

Jan 12, 2010

how to create a user interface in a game such as the application XFire using Visual Basic?

View 3 Replies

Interface And Graphics :: Use A Graphical User Interface That Contains A Drag And Drop Form?

Oct 19, 2008

I'm working on a design project where I have to use a Graphical User Interface that contains a drag and drop form. It consists of having a window dropped on a wall. Both of them are images to scale. I would like to know what kind of code I would have to use to show the x and y coordinates of one of the points of my window when dragged so when I drop it, I'm dropping in it on the desired coordinate of the wall.

View 2 Replies

Interface And Graphics :: Creating A Class Holding Some Graphics?

Jan 12, 2011

Ok, I want to create a class that will handle a special rectangle graphic.In my form, I want to have two of these special rectangles. So, basically, I need two instances of that class in my form, right?I manage to initialize two, alright. But, how exactly am I supposed tomanage drawing/graphics etc in a class, and the results to be displayed in my form?

View 13 Replies

Interface And Graphics :: Error - Graphics Paths For Designing

Oct 29, 2008

Using graphics paths for designing...but am getting an error when trying to add a shape to : _shapelist.add(createshape())

It says : Value of type 'system.drawing.drawing2d.graphicspath' cannot be converted to '1-dimensional array of system.drawing.drawing2d.graphicspath'

View 2 Replies

Interface And Graphics :: How To Procede With An Interface Design Approach

May 18, 2012

I was wondering if I could elicit some tips on how to procede with an interface design approach.That is. What is a good way to go about establishing a "work area" where one can have multiple "floating forms" in this area.Can you have a form which occupies the entire windows desk top and the other forms "float" in this space? the "floating" forms would need to interact with each other where pressing buttons etc on them would affect other forms on the "workspace") Or what would be a good way to start accomplishing that? Or is there a better way to get the same effect?

View 4 Replies

Interface And Graphics :: Link A Class / Object To An Interface?

Apr 21, 2010

I'm trying to make a .dll that contains a lot of basic functionality that a program can use. Currently i am trying to use interfaces to make a lot of this functionallity independend of the program using it but i hit a snag. The Basic idea is that a programmer will create his own object using the interface discribed in my .DLL file. Then implements those functions as he likes. He can then instanciate a controller (found in the same DLL) and sends his custom object implementing the interface to that Controller. The controller can then be started and will take over all the work. I do not know what type of object is send to the controller and idealy i want to program it in such a fashion that i shouldn't care as long as the object send implements that interface.In code I am trying to achieve the following: (quite simplyfied)

.Dll:
Code:
Public Interface MyInterface '<----Decleration of the interfaceFunction GetData() As Integer
Function SetData(Data As Integer)
end interface

[code]....

this propperly. I know that the second i set the interface adaptor in the Controller VS comes nagging that it can not be converted to a "MyInterface" Class. Obviously i am doing something wrong. I can change the datatype that the controller expects to the "MyController" type but that would completely ruin the whole idea of flexibillity. I am hoping someone sees what i am trying to do and can point out where i made the thinking error.

View 6 Replies

Interface And Graphics :: Picture Of Interface And Get Feedback On Changes For Easier Use?

May 21, 2012

Is this where i would post a picture of my interface and get feedback on changes for easier use? If not is there someplace on this forum or any other forum to do this?

View 1 Replies

Interface And Graphics :: Draw On Tabpage's Graphics?

Jan 19, 2011

So I decided to make my famous tile selector project, but instead of drawing in a form's graphics, do it inside a tabpage.Well, I managed to get it working, but it seems to... flicker.Normally, setting the form's DoubleBuffered property to True would help a lot there, but apparently, the tabpage has no such property.

When I invalidate the tabpage, I draw two images and fill one rectangle.Following past advice, those two images were created before, just once, and are stored in a variable so I don't create them every time I invalidate the tabpage.

View 1 Replies

Interface And Graphics :: Save Graphics As Png With Transparency?

Aug 1, 2010

Ok I have this: This makes a sub called 'graphicspaint' then writes "demo version" to a picturebox1

Code:
Imports System.Drawing
Imports System.Windows.Forms

[code]......

View 8 Replies

Interface And Graphics :: [VB2010] - Some Graphics Effects?

Dec 5, 2011

i whant do my own shadow effect. i can do the shandow. but how can i plus 2 bitmap images(1 above the other)?

View 15 Replies

Interface And Graphics :: Keep Graphics Over Image

Oct 28, 2011

I load my picturebox with a jpeg. If I put my DrawObjects() sub into picturebox paint event.When ever a picturebox.refresh or picturebox.visible = true (vb.net seems to draw my DrawObjects() first, then load the jpeg Image over my drawing - erasing drawing) Is there a way to get the picturebox to redraw the jpg image first then draw on it, in picturebox paint event?

View 10 Replies

Interface And Graphics :: Possible To Do Image Map

Apr 4, 2011

Just want to know if it is possible to do an image mapping in VB2010?..

View 3 Replies

Graphics, User, Operator Interface

Feb 16, 2012

I am using Visual Basic 2005 for an Operator Interface in an industrial setting. Where should I be looking to help make my Operator Interface even more eye pleasing and practical?

View 2 Replies

Interface And Graphics - Datagrid Wrapping In WPF

Oct 4, 2010

I am having a datagrid in WPF application and I need to show the text wrapped in the cells. Basically I am reading from SQL server and displaying them in the Datagrid. Some of the fields having more than 255 character length and I want to show them as wrapped. To do this, I created my own style and trying to apply that to a data grid cell, but it is not working. [Code]

View 1 Replies







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