VS 2008 Draw On Screen?

Aug 21, 2010

asking something like this i know it get's asked alot but i haven't found any code for this or i didn't look good enough. My internet is super slow so it is hard to browse the net , Anyways i want to draw on the screen just like when you draw on your form with graphics how would i accomplish this ? if anyone could provide some code or a link that shows a little about it that would be great,

View 2 Replies


ADVERTISEMENT

VS 2008 Draw Directly On The Screen (not On A Specific Window) Just On The Screen?

Jul 1, 2009

I send a message a while ago and no one answerd, how can I draw directly on the screen (not on a specific window) just on the screen, neither if it's on the desktop or anything else.Is there is any option to bring up the switch between applications window (Alt + Tab), I don't want to use sendkeys because the user need to keep the key down and I just want the user to select the application with his mouse.

View 3 Replies

Draw 2 Lines In The Center Of The Screen?

Aug 24, 2009

How would I do this? I want my Program to draw 2 lines in the center of the screen.

View 3 Replies

Draw Directly On Screen And Get FPS In Games?

May 2, 2009

I'm trying to draw directly on my screen using these code and API's[code]...

View 2 Replies

Draw To 800*800 Pixel Box On Screen Efficiently?

Jul 25, 2009

I need to draw 100 lines between 100 semi-random points in a 800x800 pixel square on the screen.

I've been using the built-in drawlines & drawrecangles functions inside of .NET, but my drawing gets erased everytime the form paints.

So, I've been thinking about perhaps drawing to an in-memory bitmap, but I'm not sure if that's a good solution.

View 5 Replies

Common Code To Draw On Screen And Print WYS I WYG

Apr 12, 2010

I've inherited a project in VB6.NET 2008. There is a Panel control where graphs are drawn along with titles, axes, legends etc. What is drawn on the panel is also printed WYSIWYG (on a print command, of course) The problem I have is that the code for printing is entirely separate to the code for drawing. I want to merge the two so that common code is used. I'd like to work in the same units for both, which means setting either the pixels per inch for the Graphics object for the printing (so I can work in pixels) or doing the equivalent of the opposite so I can work in inches (printed inches, not screen inches).

View 2 Replies

VS 2010 Waiting For A Screen Re-draw To Finish Before Continuing?

Oct 16, 2011

I'm writing a simple program that takes a screenshot of tab1 of the GUI, then takes a screenshot of tab2, then tab3, etc. I've got the screenshot code down pat, but the problem with my current code is that it's taking the screenshot of each tab before the screen has a chance to fully redraw, so the resulting images are screwed up.Is there a way to get the program to wait for each tab (and all the controls in it) to be fully visible before each screenshot is taken?I'd like to avoid using a timer for this, as the screen redraw speed will vary depending on the user's computer, and the contents of each tab, etc.[code]

View 2 Replies

VS 2008 Screen.GetWorkingArea And PointToScreen - Dual Screen ?

Mar 28, 2009

I have a button btnRegEx that when pressed shows a ContextMenuStrip, similar to the '>' button in the Find/Replace dialog in Visual Studio when you are using Regular Expressions. I have a ContextMenuStrip cms which I show using its Show(x,y) method.

At first I was simply setting x and y (the location of the ContextMenuStrip) to some point next to the button, but I noticed that when the button is close to the edge of the screen it goes off screen. I wanted to prevent that so I built some logic into the x-y calculation. When the ContextMenuStrip width is larger than the 'remaining space left' I simply show it more to the left. Same for its Height of course. I am using the Screen.GetWorkingArea(point) method to determine the 'remaining space left'. As I understand it, it returns the working area closest to the point you specify (to which I pass the button's location).

As long as I stay on my first monitor, it is all working perfectly fine. The problem occurs when I move the form to my second monitor. The contextmenustrip is still showing on the first monitor for some reason...

Here is the code I am using:

vb.net Private Sub btnRegEx_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRegEx.Click
Dim p As Point = PointToScreen(New Point(btnRegEx.Left, btnRegEx.Top))
Dim x, y As Integer

[CODE]...

I have noticed that when I click the button when the form is on the second monitor, the buttons location (p) is calculated with the first monitor's top-left corner as (0,0), even though it is on the second monitor. This way, the GetWorkingArea function returns something like 1280, while the buttons x-location is something like 1700... So, how do I get the buttons coordinate relative to the actual screen it is on, rather than the entire dual monitor screens as a whole?

View 3 Replies

VS 2008 Screen Flipping - Invert The Screen

Apr 27, 2009

Is there any way to invert the screen. For example, making upside down or having mirror effect?

View 1 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

Get DataGridView To Draw The Way A Professional Control Should Draw?

Apr 26, 2010

I need to get the DataGridView to perform the way it should perform. I'm new to the .NET environment, but I learn fairly quickly. However, I find it difficult to decipher themassive black box of the DataGridView control enough to make it do anything other than what it already does--Draw very slowly.

View 3 Replies

VS 2008 Draw From A Class?

Apr 12, 2010

What I'm trying to do is to draw on to a picturebox with all my code in a class rather than in the main form class. here is the code of what I have in my draw class

[Code]...

View 6 Replies

VS 2008 Draw Image From Rgb Value?

Feb 7, 2012

[code]...

but, how to draw in picturebox? i use this code but not working!

[code]...

View 3 Replies

VS 2008 How To Draw A Square

Aug 24, 2009

I see DrawPath polygon curve everything except for square.

VB
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint

[code].....

View 12 Replies

VS 2008 Trying To Draw Something On Notepad?

Nov 2, 2009

This code is put into a timer, I put "Timer1.Start" in a button, when I click the button, nothing happenes

[Code]...

View 4 Replies

Draw Graph Over Video .net 2008?

Mar 18, 2011

I have series of video files that i need to automatically draw some line over through to the en. The line varies, the values will be provided, is this possible in vb.net?

View 1 Replies

Draw Graph Over Video In 2008

Aug 25, 2009

I am having problems passing data from one form to another form opened from the first form.Here is my scenario: I have my start-up form. From this form I open a form by using the following:

[code]...

I use this because I want to be able to open multiple forms from the start-up form.Then from the PartyDetail form I open another form to display order details, like this:

[code]...

I want this order details form to be able to get a partyid variable from the party detail form.This works, but depending on the order that I open the forms the variables are incorrect Example:If I open the first PartyDetail form and then open the OrderDetail form, it works correctly. I can open as many PartyDetail and OrderDetail forms that I want and the variables are correct.But, say I open a PartyDetail form and then open another PartyDetail form and then open the OrderDetail form from the first opened PartyDetail form, it displays data based on the second opened PartyDetail form instead of the first. Basically, I want to be able to open multiple PartyDetail forms and then open OrderDetail forms based on whichever PartyDetail form it is opened from.Right now I am using Public Shared variables on the PartyDetail form and accessing this variable from the OrderDetail form. I suspect this is my main problem but don't know the best way to pass the variables from the PartyDetail form to the OrderDetail form.What would be the best way to do this?

View 2 Replies

VS 2008 - Allow The User To Draw On The Form?

Nov 2, 2009

How would I be able, with the click of a button, allow the user to draw on the form? Maybe as if, taking a screen shot of the whole form, and then drawing on top of it? Dose not have to be a lot of colors, just a simple way to draw a line.

View 4 Replies

VS 2008 Best Way To Draw This Simple Graph?

Apr 10, 2010

Will any of the free light-weight charting libraries; ZedGraph or NPlot, be able to draw a simple graph similar to attached image (no waste of space, and with colored plot areas)? This plot will act much like the task manager "CPU Usage" plots, with update of last value every 500ms, but only making a new datapoint every 1 minute or so.

Or is this so extremely simple that it's better to hard-code it? What classes should I look into for this?

View 3 Replies

VS 2008 Creating Draw In Tic Tac Toe Game

May 20, 2009

I'm very new to visual basic and I am trying to create a tic tac toe game. I have it working all except a message to say the game has ended in a draw.I just can't work out what to put where. I have looked through the various questions and answers on the forum but can't seem to get any of the coding to work for me.[code]Can anyone point me to what code to use to declare a draw and where should I put it?

View 7 Replies

VS 2008 Detecting Where In A PictureBox Draw

Jun 14, 2012

I've come across involving a PictureBox.I am trying to create a quick Paint-like application, but I want something to happen in it. I want it so that when you draw or have drawn in a certain area of the PictureBox, you trigger events to happen (but they must only trigger once. This doesn't mean only one event can happen, it's just that each event can only happen once). How would this be possible to implement in my code I have now?[code]

View 5 Replies

VS 2008 Draw Lines In VB Form?

Apr 5, 2010

I need to draw lines, in one VB form. Like paint, I need the tool brush, and design some lines and curves in a Vb form. How can I do this? I don't know where to start.

View 3 Replies

VS 2008 Draw Lines Using DirectX?

May 1, 2010

How do I draw lines using DirectX? (on my form)

View 1 Replies

VS 2008 Draw String On Picturebox?

Aug 29, 2010

how to draw a string on a picturebox ? i want to draw a peace of text in the x,y bounds of the picturebox?

View 1 Replies

VS 2008 Using ZedGraph To Draw Functions?

Mar 10, 2010

I'm using ZedGraph to draw functions.I want it so, that the user can input a function.Eg:

txtFunction.text = x ^ 2 - 3

Graphs are drawn with this code

For x = 0 To 100
y = x ^ 2 - 3
list.Add(x, y)
Next x

This doesn't work

For x = 0 To 100
y = txtFunction.text
list.Add(x, y)
Next x

as the x can't be replaced.Is there an other way to draw graphs, by reading the function from a textbox?

View 2 Replies

VS 2008 - Picture Box - Draw On A Line On Top Of The Image

Oct 21, 2009

Is it possible to have a picture box and draw on a line on top of the image that is in there with the basic express package?

View 3 Replies

VS 2008 : Draw Graph From Excel File?

Mar 26, 2009

Is there a way to draw a graph in real time. The excel file has one column with the time in sec.(x) and the other column is data(y). The examples with charts I've seen is about converting to a picture, then paste it to a picturebox.

View 2 Replies

VS 2008 : Draw Multiple Bitmaps Onto Image?

Dec 26, 2009

I want to know if there's a faster way to draw images onto a picturebox based on a list of point.

vb
Dim MyPoints as New List(Of Point)
Dim MyBitmap as New Bitmap("C:MyBitmap.PNG")

[code]....

Now, This code may be a little sloppy, but I just put it together. The image isn't very simple, but it's simple enough. After about 10 images that need to be drawn, it starts to get slow.What would I need to do to ensure it draws the images faster? If I made the image itself smaller would it make it go faster?

View 3 Replies

VS 2008 : Draw Realtime Line Picturebox?

Apr 30, 2009

how to draw in realtime? I have this code in a timer:

Dim picBoxWidth As Integer = PictureBox1.Size.Width
Dim picBoxHeight As Integer = PictureBox1.Size.Height
Dim halfWidth As Integer = PictureBox1.Size.Width / 2
Dim halfHeight As Integer = PictureBox1.Size.Height / 2

[code]....

this would draw a graph, and when x has counted to 1000 it should start again. The center cross is written, but no graph.

View 5 Replies

VS 2008 Custom Draw A Border Around Form?

May 24, 2010

I set my FormBorderStyle of my form to none.This is exactly what i want, except I ran into a problem.When the background is gray (background of other applications running in the background), my form tends to fade in with the background (Still active, but i cant see where my form starts or ends).

View 1 Replies







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