well actually from what i understand the locations in the C# controls such as a form and a panel are by pixels and of the INT data type. I'm trying to move it pixel by pixel.. I do remember I had a formula taught to me by my math teacher that given the coordinates of both ends of a straight line, you can solve all the POINTS in between.
Silvyster
Posts
-
Coordinates problem -
Coordinates problemyeah i was asking for the ratio formula
-
Coordinates problemI have two coordinates on the screen x1 and y1 and i have an object at that location.. now i have x2 and y2 which will be the destination point of my object.. I am planning to move my object 1 pixel at a time following the path from x1, y1 to x2, y2.. is there a formula that you can recommend?
-
Event Handlersoh snap!... ok can you suggest me an object that i can inherit? I mean like a generic object that has it.. i dont want to extend any of the .net controls because I know that they Inherited it from some object.
-
Event Handlersjust the Mouse Click event... Note that my Box.cs is a class that never inherited any object.
-
Event HandlersI have created my own class names Box.cs. Now I want to borrow the mouse Event which I see in most controls found in .Net and apply it also to my box so that If I click my box an event is triggered
-
TableLayoutPanelHello, I have a problem on the table layout panel control. I wanted to create a program that on run time I could set the table layout panel's number of rows and columns. My Problem is that the spaces of each boxes on the table are not evenly distributed. How do I make it evenly distributed?
-
Getting own filenameIs it possible to get the program's own filename on runtime?(exe file)
-
Pinging a portIs it possible to ping a port? like pinging an IP address + port. Although I created an application that does this but it is inefficient and slow because I try to access a certain port using a try-catch block....
-
My Network Service Finder is sooooo slooowwI am only running the scan on a single thread and i'm planning to create more... Regarding the "detection" if the IP exists on the network... how do i do that? i used the Dns.getHostByAddress but it seems like it failed.
-
My Network Service Finder is sooooo slooowwI created a client-server application where I installed the client on 10 computers in a network (LAN)... now since the IP address of each computer are dynamic.. I created my server in such a way that I will scan the network from something like 192.168.1.1 to 192.168.1.255 just to find those 10 computers. It works, it was able to detect the 10 computers which is running the specific service.. My problem is that the detection is too slow.. starts from 192.168.1.1 (30 seconds) then 192.168.1.2 (another 30 seconds) so like an average of 30 seconds for each IP... is there a way to fasten this up?
-
I Need a math formula for this issue.I'm creating a game and I need to rotate this object. Ok i'll make my explanation simple, I have Object1 and Object2.. Let's say Object1 is at coordinates 0,0 (x,y) and Object 2 is at coordinates 10,10... Object 1 is currently facing south, Now I need object 1 to be facing Object 2 so I need the "degree" value from object 1 to object 2. Does anyone have a math formula for getting the degree? or an alternative solution can help.
-
[Message Deleted]oh ok I guess you failed then. Do better next time. :-D
-
button click through another programhmmmm, I wanted to do this for a long time, is it possible if I just use the Mouse? a program that will set the position of the mouse on the screen using coordinates and then the mouse CLICKS (without user interaction) using a code.
-
Help to access Digital Camera from C#yeah, it's simple you don't need shell32. or maybe you asked the question in a wrong way.
-
Image plotting problemI'm having trouble on how am going to start this idea of mine. I have an image and I want to plot points on that image. My Idea is to get the X and Y coordinates of the mouse pointer and save it into a text file so that by the time I re-run the program again, the plotted points is still there. But it seems like this is not a good idea since everything will be messed up if I load the program to a computer with different screen size. I was thinking of placing an invisible grid, but looks like this will be tough to do.
-
Controls OverlappingI'm creating a lot a picture boxes. Each picture box has a constant height and width of 50. So I randomly place this picture boxes on the form. My problem is that some picture boxes overlaps or on top of other picture box. How do I solve this problem?
-
If new drive detected.. an event happensI'm actually using thread to keep on scanning on every time interval but don't you think that's not a good idea?
-
If new drive detected.. an event happensI am trying to create an application where, if new drive has been detected by the windows operating system, an event on the application is triggered. Although what i was planning to do is the application to check for new drives in a given time interval but seems like that is not the appropriate thing to do. Any suggestions?
-
Letter CombinationI want to ask if someone has already have an article or working algorithm where it can get all the combination possible in a given word. Example: "ABCD" possible combinations or arrangement without duplicates: "ABCD" "ABC" "ABD" "BCD" "AB" "AC" "AD" "BC" "CA" <--- is the same as "AC" "CBA" <--- is the same as "ABC" or "BCA" "BD"