Get X / Y Point Of Actual Form?
Jan 2, 2012How can I get the coordinates of a form (current form => Me) of the upper left angle of it on the screen?
View 2 RepliesHow can I get the coordinates of a form (current form => Me) of the upper left angle of it on the screen?
View 2 RepliesI know lots of you have had problems with the form designer giving errors and refusing to show the actual form, mostly because of some transition in software i take it (i aren't a Full time programmer, its just a hobby.)My problem is similar, vb refuses to show me my form and now i have even more problems.the last thing i did before this happened was try to add an imagebox to the form.Heres a few errors i get:every label i have is no longer declared?event 'load' cannot be found- My other problem is, i managed to close the designer window during this problem and i cant remember how to get it back up
View 13 RepliesIs it possible to make a program with visual basic 2010 that does not use the actual form but instead only uses other components (e.g. Message Box) to form a complete program?
View 2 RepliesI'm attempting to download a file with a custom "message" i.e. with specific bytes sent to a server. I am using the lightweight utorrent setup file which could be easily downloaded with the statement in the first code tag or even using a WebRequest, WebResponse, StreamReader etc. But for some reasons I need to be able to code the "message". I would explain why but that would just be a diversion...Anyway the problem is that the packet gets saved in its native form but I need to be able to save the packet to the actual file without the header and etc. The sample code is in the second code tag.
My.Computer.Network.DownloadFile()
Dim server As String = "download.utorrent.com"
Dim mySocket As Socket
[Code].....
I hve been working with points a lot recently, and I have been wondering if there is a way to set a point without setting point.x and point.y separately. For example for (3, 5): Point1 = (3, 5) But that isn't right
View 4 Replieshow to set location of child form to a specified point of parent form.Below is my code but it is not working for setting the location.[code]
View 1 RepliesI have a Diagonal line drawn on a picture box on my forum and i need to know if the user has clicked the line I have the Start point and End Point of the Line and the mouse x,y location So i basically need to find out if the x,y of the mouse is on the line.
View 2 RepliesI'm trying to extract a piece of text from within the string, defining both a starting point and an ending point. For instance, say I want to search for the text found between "That is a " and " car" in the string "That is a red car", so it would return "red".I know you can use .SelectionStart and SelectionLength, but the length of the word can change, so the selection length can vary. What I want is to establish a specific starting point and a specific ending point from which to extract the text from the string.
View 5 RepliesI want to know if its possible to loop in a variable and grab info from point a to point b
This is what I have stored in my Variable
PHP
</div> <!-- div reviews end white-space:nowrap; margin-bottom:5px; class="reviews" -->
<div class="list_address">
[Code].....
i have a picturebox which displays a map i have 2 modes add point and delete point when the user clicks the picture it creates a point on the picture where the user has clicked that works perfectly its when i try and delete the point when it doesent work :/ i have all the points loading from an xml file this is the code i have:
[Code]...
basicly i want it to when the user clicks the point it fines the x any y in the xml delete the node then delete all the points on the map then reload them all according to the xml
I designed a form and managed to fit graphics inside it. Picture box is 465 pixels high. Form1 is 500 pixels high. SnapShot of the screen verifies that the 500 pixel height is the overal height. It includes the upper Bar and lower frame. Is there an instruction to set the From's inner pixel size and not overal?
View 2 RepliesI have a small "options" form that when shown, the user submits some changes, clicks a button, and then it fades out. I want the form to open at the mouse location. How would I do that?
View 1 RepliesI'm trying to calculate the direction between two points on a two-dimensional grid. Actually I want to determine if that vector is within a range of two values. Suppose the grid's origin is 0,0 at the upper left corner, and 0 degrees represents north. I have a point A on that grid. I want to know if a line from point A to point B on the grid is within a range of directions between 111.8 degrees (a little south of east) and 158.2 (a little east of south). Those are approximations; the 111.8 is 90 degrees plus the arctangent of 2/5, and 158.2 is 180 minus that value. I worked out a series of calculations worthy of a medieval astronomer, but I suspect there is a simpler way. I'm going to have to do this for a variety of other vectors, and I'd like to generalize
View 4 RepliesI know how I can construct an icon setting point by point, but that isn't what I want. I want to use a bitmap file or a jpeg -is easy to convert an jpeg to an bitmap- and built an icon that looks like this picture.
View 2 RepliesI want to make a drawing application which needs a few drawing functions I cant handle myself as im not very mathematicly inclined The first on the list of functions is to create an arc from a start point, end point and radius. The method signature is as followes.
Function CreateArc(byval StartPoint as PointF, EndPoint as PointF, Raduis as single) As PointF()
'Code to create an array of points...
[Code]....
I'm just getting started, and it's as simple as that: I need guidance to draw a rectangle or place a dot or a point on Form1, in VB 2008 Express. I knew how in VB6 -- let's build on that.
View 3 RepliesI have some apppliction....interface is good but its not that advance in visual style...so i manage to implement power point slide in web browser (webbrowser.navigate "pps "to twick the look of the program...but when im changing the tabs or opening other windows and then go back to tab where is pps it wont refresh properly.(web browser spec. fill)And i got flickering when im changing tabs or pages.
1.Is it because i have slow comp?
2.Or it have another way (faster) to implement power point slides in application instead of the web browser?
3.Or in general the visual basic is a poor program(when u talking about visual stile) that have some limitations and works very slow when u implementing some visual staff?
How can I Access the Enty point method of Form Based Applications?How can I set their attributes?
View 2 RepliesEveryone knows of the yellow triangle with a exclamation point in it on a message box. I would like to use that same image on one of my forms. Is this possible? If so, how do I do it?
View 8 RepliesI do not want to disable Application Framework feature and turn to main function technique
View 1 RepliesI have a DataGridView that will occasionally have a RowError icon displayed in the RowHeader (shown below)I have code that displays a small form when the users mouse moves over the row header or clicks the row header.I would like to draw aline from the top-left of the form to the middle-right of the row header.I basically want to point from the form to the error icon.
View 1 RepliesI need to move an ellipse from a known point on the screen to another known point on the screen.
I've tried using For.....Loops with less than desired results.
I can't remember everything I've tried, a lot of trial and error has been layed to waste. Lol
I've ended up with this code after putting together what I've tried, what I've learned elsewhere, and a couple of posts I've read on here.
All I want to do is move the ellipse from one point to the other along a straight line that forms the angle between the two points (X1,Y1) and (X2,Y2), make it grow from 2 pixels at it's start, to about 80 pixels by the time it reaches half way, then shrink from 80 pixels back down to 2 pixels by the time it reaches the point (X2,Y2).
Easier said than done.
Here's what I have at the present.....
Dim W As Integer
Dim H As Integer
Dim Num As Integer
[Code].....
....This seems like such a simple task, yet it's been a week since I came up with the idea, and I've had little success.
come out with the codes for moving the mouse pointer from point (200, 100) to point (300, 400), repeatedly. Using VB 2008.
View 8 RepliesI looked around the forum can't find something really simple.I want to scrape everything between the
<!-- google_ad_section_start -->
to
<div class="ad_editorial-sponsorship"></div>
copy it and use it right after it's website and I navigate using webbrowser1.
i want to work on a shooting game,and i already have a code for the rotation of the image but i have a few problemFirst problem(for the tank /ship): i want the image to AUTOMATICALLY rotate facing the mouse cursor,i know how to rotate but but i dont know how to convert the location of the mouse to an angle that the image will face,,
View 1 RepliesI am looking for away to include a power point slide show inside a form in vb.net 2005. Office 2007 will be installe on all of the client machines which run the program. I have found ways to launch and control a power point slide show in an exteral window, but no way to attcah it and place it on the form window.
View 1 Repliesassuming i have an isoceles triangle, where i know the height + base width, how
can i calculate the width of that triangle at 1/3 of the distance from the point + 2/3 of the distance from the point?
i thought it'd be simply 1/3 base width + 2/3 base width, but my drawing is +/- a few pixels when i resize it?
How do yo convert a 3d point into a 2d point that can be displayed on the screen? This is the basic code that I need:
Dim ScreenXCoord as integer
Dim ScreenYCoord as integer
Private Sub ConvertPoint(PointXCoord as integer, PointYCoord as integer,
[Code[,,,,,
how can I determine the actual date?
Of course I know the Now() function, but what, if the user sets the date on the computer f.e. 2 days back? I have tested it, I get the date from 2 days earlier.
Is there another way to determine the REAL actual date?
I have a screen full of puzzle peices they are all rotated at different angles (90,180,270). is there a way to track the peices rotation? I was thinking of using a 2d array to store there rotation. however, I am using this code to rotate the peices:
[Code]...