VS 2010 Drawing A Line Over DirectX Fullscreen?
Jan 25, 2012
Basically I want to Position a line from The middle of my screen to the bottom right of my screen. But I need to draw over the game to do this. I dont mind if it flickers as long as its there is all i want. Like this VV
View 4 Replies
ADVERTISEMENT
Jun 4, 2010
I've already coded the IRC Client, but what would be the code to make the app overlay in the fullscreen DirectX game ? And i've already tried to the TopMost function.
View 37 Replies
Jul 25, 2009
I need to overlay a small bar along the top of the screen over a fullscreen DirectX game. I have searched for a while but I have not found any code examples for VB.NET 2008 (I've never used any previous version). How can I do this? Would this involve learning DirectX programming?
View 2 Replies
Sep 28, 2011
I'm using using System.Graphics for my latest project (A simple 2D application). Problem is, it gets a horrible FPS and I'm only drawing 8x8 tiles (usually 10-12 is enough to bring it down to 12FPS).
A friend of mine suggested that I use DirectX. He also suggested XNA but I opposed because I don't want my clients to have to install the XNA distributional. DirectX is common enough (to my knowledge) and I can just include the dll's if I need to.
So, my search began. I've been looking only for DirectX 2D tutorials for VB.net. I've had no solid success thus far. In truth, all I need to do is be able to draw bitmap x at position pos.
I've been using System.Graphics and a hacked up bitmap as my buffer thus far so I'll go for any improvement that I can get.
I'm using VB.net so I'll be ok if you give my one for C#, I'm pretty good at being able to read it (and I have a nice converter too). I would just prefer VB.net to save time.
View 1 Replies
Jan 18, 2012
I have been working on an angle calculating program. I have incorprated a feature so you can type the angle and the program draw it. I have since added a few new features and updated everything as such. For the life of me I can't figure out why the draw angle has stoped working. let me just paste some code.
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
[Code]....
Right, the program isn't so complicated. The important bit is that you type an angle in textbox1 and hit enter. Then what happens is the angle is calculated against a base line (one of the new features is that this base line can be moved from left to right and center.) the problem occurs when you hit enter, the program doesnt actually draw the line for you.
View 2 Replies
Dec 3, 2010
This is more of a mathematical problem than programming problem.I have created a very basic 3D engine using Visual Basic .Net. It displays lines on the screen with an additional z axis. The engine works, however when part of the line goes below 0 it messes up and starts drawing the line inverted again.
This is how it calculates the points:
y = (point.y / z) + offset.y + camera.y
x = (point.x / z) + offset.x + camera.x
Can anyone work out a way to only draw part of the line when it intersects the z=0 axis?
View 1 Replies
Jan 4, 2012
how to make a form to show in a game, Sort of like the program steam does.
Or is this even pausbile?
View 8 Replies
Dec 10, 2011
The following code takes a full screen screenshot:
Public Function TakeShotOfScreens() As Bitmap
Dim maxHeight As Integer = 0
Dim maxWidth As Integer = 0
For Each scr As Screen In Screen.AllScreens
maxWidth += scr.Bounds.Width
[Code] .....
I am after some code that takes a screenshot of only a small portion of the screen.... I have to x,y,width and height of the square that I wish to take. Is this possible?
View 1 Replies
Jan 22, 2011
if i use
Dim Gr As Graphics = SomePanel.CreateGraphics()
Gr.Drawline(StartingPoint, EndingPoint)
I want to be able to have a line drawn from point a to b, but be able to rate it 90 degress based on user input so if the user inputs 70 I want it to rotate 30 degree's to simulate a 70 deg relationship to a horizontal line that it touches if that makes any sense. a is starting point b is the user inputs 70 and it draws it at 70 in relationship to the horizontal lineheres the image that i forgot to post above Attached image(s)
View 1 Replies
Nov 6, 2010
I was wondering if anyone could steer me to any good references to using OpenGL in vb.Net? I wanted to try a simple line drawing test to start off with, and came across many old discussions about using CsGl or the Tao Framework. But I could not get CsGL to import into Net2008 (the Add Reference window simply could not see the DLL that was clearly there when using Windows Explorer). And although I could get Tao to import OK, and found portions of one person's project, I figured that somehow the GL window he was referring to had to first be set up as a GL object (new class?).In addition, all the OpenGL books I have looked at only discuss OGL with respect to some version of C.From what I have gathered, you need a connector between vb.Net and the opengl32.dll libraries and that is what CsGL and Tao are about. But the edumucation resources seem very few.
View 13 Replies
Feb 24, 2012
how to draw in vb.net, and I figured the easiest way is to get my hands dirty and start coding. I figure that the best way to start is by drawing a line on the form. What I'm trying to do is use the graphics.drawline(), but I'm failing. This is what I'm using so far
[Code]...
View 2 Replies
May 13, 2009
I have a question about drawing lines. Most of the code snippets I've seen approach drawing a line with the mouse down as the startpoint and the mouse up as the endpoint. But I am trying to draw a line by startpoint as
a mouse click and then an endpoint as a mouse click just as you do on a typical cad program.
View 8 Replies
May 30, 2011
That's vertical and 1 pixel wide. This is for a mulitiprocessor performance monitor.How do I do it....if you tell me which routine to use... I'll take it from there. I don't think the routine is
System.Drawing.Graphics.DrawLine, because it's looks to an external reference like I'm putting random pixels in.If possible I need to put the pixels in by hand. Besides this line of pixeld is another line of pixels for another epoch. They are not related numrically.
View 1 Replies
May 27, 2010
My program is giving the error: "End of statement expected" The red lines are the ones giving errors. I'm trying to draw lines on a picturebox to create a graph
Dim iScale As Single
Const Distance = 1000
pictureBoxGraph.ForeColor = QBColor(0)
[Code]....
View 16 Replies
Dec 12, 2011
I am doing a project with graph (VB.NET). I am drawing a line handling dynamic property ( opacity changes based on DB value). I don't know how to change the opacity.
View 1 Replies
Nov 29, 2010
I'm using vb10.
Is it possible when drawing a line to use a binary pattern? Is there a command for this?
Example:
167 is 1010 0111
Draw a line X32 x Y1 would be: 10100111101001111010011110100111
205 is 1100 1101
Draw a line X32 x Y1 would be : 11001101110011011100110111001101
1's being pixels drawn and 0's not.
View 2 Replies
Mar 21, 2012
If I try to copy/paste simple tutorials such as [URL], Visual Studio freezes indefinitely and I have to force-close it. If I try to use code like the stuff found here
[URL] or even just load up Reed Kimble's XArcade Vengance from this forum, I get this error message:
An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Microsoft.DirectX.Direct3D.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
[Code]...
View 6 Replies
Oct 30, 2010
a WindowsForm application and I need a code to check target's machine installed version of DirectX.If the reg key doesn't match with provided one >>> load the form and launch the DX installer "redistdirectx_Jun2010_redistDXSETUP.exe"If the reg key matches with the provided one >>> launch other application "Setup.exe"
View 6 Replies
Jun 21, 2010
I'm writting program in VB 2010, but I have a problem. I want to draw a temporary line on PictureBox control MouseMove event. That works fine but deleting of that line doesn't work. I tried to draw the white line on the same coordinates (PictureBox's background is white), but won't work.
Here is the code: Private Sub drawing_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles drawing.MouseMove
[Code]...
View 7 Replies
Mar 17, 2011
I'm trying to make a very simple Silverlight application.I want it to be full-screen, and I want to draw a line onto a Canvas.My problem is that the .Width and .Height of the canvas never seem to have a valid value. The website shows the canvas at 400x300 pixels or so, and when you click on it, it goes into Fullscreen mode.I want to use the Height and Width to find the usable space of the screen. I've tried adding events (thinking that the canvas wasn't yet ready to be used immediate after the full-screen line of code) but the LayoutChanged and Resized events don't seem to yield anything.
View 1 Replies
Nov 15, 2011
When I try to play an audio file through DirectX, that isn't my development machine, I receive this error.
The DirectX library I'm using is Microsoft.DirectX.AudioVideoPlayback.dll.
I include the library when I build the application and I thought that would work. Both PCs have the same version of DirectX installed. So what else do I need to install?
The app itself is meant to run on a USB, so I can't install it, but I'm able to install 3rd party libraries during the initial load.
View 3 Replies
Apr 13, 2009
I would like to build a line chart which can redraw or change during a period of time with dynamic data. So that the x, y axis will change if out of range. The graph may be somehow similar to Matlab. I am using vs2005.
View 2 Replies
Nov 14, 2011
I'm playing an audio file like so:
VB.NET Dim audio As New Audio(Application.StartupPath & "est.wav", True) audio.Balance = 10000 audio.Play()
Which works great. But if I need to change that file, I get an UnauthorizedException because the I haven't disposed of it. But, if I add a dispose after .Play, it won't play.
View 2 Replies
Apr 13, 2012
Problem drawing dotted path lines, with even dots along the path line.I want to draw a path line that can be any shape (square, round, outline etc), and along this path line I want even dots to appear.
I also want to be able to resize the shape (as in the example attached)This is very easy to do using "DrawPath" and defining points for the path and using a pen defined as dots.The problem I have is I want the dots to be evenly placed along the path, on any shape or size I draw.In the example I have created, I create a square with 4 points and draw a dotted path.There are 2 buttons that allows me to resize the square (larger or smaller) this helps show the problem more clearly.
The path starts at the top left corner and finishes back at the top left corner, the dots are evenly placed along the path, except the final dots at the end of the path. (Sometimes the dots are even and other times they are not even).The shapes I want to draw can be any size and any shape, but I have used a square in this example to show the problem I have. point me in the direction I need to go that allows me to draw the dots and give the impression that they are even all along the path, for all shapes and sizes.
In the pictures below if you change the size of the shape, one will have even looking dots, the other will not.
[Code]...
View 2 Replies
May 16, 2012
How do i read through a textfile line by line checking for and removing duplicate values?
View 1 Replies
Jan 3, 2012
I have a picture in my picturebox. In that picture, I need to draw a straight line between two points and calculate the length of that line (probably in pixels). Is there any suggestion how to do it?
View 2 Replies
Dec 23, 2009
Why can't i find "Microsoft.DirectX.AudioVideoPlayback" library in VB 2010 .NET References ? Is it because its BETA program?
View 1 Replies
Jul 7, 2011
I want to loop the lines of my RTB and add a vbTab on each line.How do i do this?
View 1 Replies
Oct 16, 2010
Ok, So I have a string that has its formats like this:
Line 1
Line 2
Line 3
[code].....
View 6 Replies
Jul 9, 2011
I have a text file with an unknown number of lines. I want to read this file line by line and send each line's text in a check list box. But how am i gonna do that when i don't know how many lines exist in text the file? [code]The code above reads only the first line. I tried to do it as in vb6 using while not eof(but here i don't know what to write cause my file isn't opened in a certain channel).
View 4 Replies