Check Point Of Origin, Reject TCP Connection?
Oct 25, 2011Check Point of Origin, Reject TCP Connection: Content removed.
View 11 RepliesCheck Point of Origin, Reject TCP Connection: Content removed.
View 11 RepliesPublic Class GameV2
'Easy axis
'horizontal
Dim x1 As Integer = 200
Dim y1 As Integer = 0
Dim x2 As Integer = 200
[Code]...
I would like to know how to make the point of origin where the two black lines meet, because my game is a coordinates game. I will be converting entered numbers into coordinates on the grid. Another problem is that the point of origin will change, if the person chooses hard difficulty.I can provide more code if necessary
If I have some polygon lat lon coordinates stored in sqlserver db. how would I query it to see if a point was in contained within a polygon?
View 2 RepliesI want to check if two directories are pointing to the same place. Of course string based compare can be done easy but I also want to check for the situation in which a mapping points to the same location. Hence if m:dataapplicApicturesjpg n:applicApicturesjpg point to the same location it must be flagged. I have already searched I know there is something like GetFileInformationByHandle but I don't want to create a file, so I have not got a handle.
View 1 RepliesHere's my VB code.
[Code]....
The other night i was reading an article on preventing reverse engineering and i found out that you can check to see if their has been a break point that has been added into your applicaiton.How would i check if their has been a break point added?
View 2 RepliesI'm trying to figure out if there is a way to programmatically determine how a program was exited. For example I'm sure many of you are familiar with the latest malware that detects antiviral software and ends the process and I know we are all familiar with Task Manager's kill process option. The end that I'm seeking is to find out how to utilize WMI, .NET, Win32, or any other Windows feature or programming tool set to determine the source of a process kill command.
Now to be honest I don't want to prevent the kill command from executing, I'm not trying to hinder the user by denying them the ability to end unwanted processes I'm just trying to figure out and document if a users ends a program normally, if TaskMan was used to force kill, or if another program is purposefully interfering.
[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 RepliesI have a very simple ASMX page.[code]...
How do I add Access-Control-Allow-Origin to the response headers so that the webservice can be consumed by multiple websites using AJAX?
I'm creating an admin backend on my site. All the user content that goes on the site will be stored in a database table called Pending. There are other tables where the content will go once approved (Guestbook, Quotes) but if the content is rejected, it'll just be deleted.I know how to delete the content from the database, but I'm having problems will the approval system.On the approval screen, the admin will see a DataGrid that's databound to the Pending table. There's a button that the admin will click to approve the content (based on a checkbox selection or input of a uniqueidentifier entered into a textbox.Can anyone give me an idea on how to move the content from one table to another? Some sample code would be very nice.I'm using VS2005 with SQL Server 2005 Express.
View 1 RepliesI'm doing a programming course at college, and I'm making a simple program that finds the mean of three numbers. Making the basic program was easy, but I can't work out how to validate the text boxes so that they only accept numbers. I've Googled, but I haven't been able to find anything. I have a look on the forums here but couldn't find anything either.
View 3 RepliesI'm developing a winform application. I want to take input from user (i.e. the user provides username) and use that input as part of filename and save to file.How do I check if the username provided by the user didn't contain windows' reserved characters. And what is the list of reserved characters for windows?
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 writing a small application to detect the insertion of USB memory sticks and prompt the user to accept the device or reject it. Rejecting it would prevent its being loaded by Windows. I have the code that detects insertion & removal working fine but have no idea how to cancel the insertion.I was thinking that I could intercept the DEVICEARRIVAL message and kill it off before its actioned by Windows but I am lost with this.code to show the way.Heres the main part of the code I have so far-
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
'This kills off any 'autoplay' capability in the stick
If QueryCancelAutoPlay = 0 Then[code]......
What's the easiest way to check ADO.Net connection is working? my mssql database is on another pc.
View 3 RepliesI have an VB.NET application. This Application is permanently resident in memory and minimized to the tray area because we use it very often. The problem comes in when we VPN into a client's site. These VPN connections trash all other network connections to and from our machines.Then every time my VB.NET application refreshes its database, errors start occurring, because the machine has lost connectivity to the SQL server, however, these are not at the connection level, but only when the reader attempts to read.
I am checking for connection.open, but because of the SQL connection pooling, I just get a previous connection that was valid before the network was cut. Is there anyway to check if an actual SQL connection is valid, prior to re-issuing a connection from the pool?[code]...
I need to check whether If the Internet Connection Is available or not
If My.Computer.Network.IsAvailable = True Then
Return My.Computer.Network.Ping("8.8.8.8")
Else
Return False
End If
Above code returns Whether the PC connected to the internet, But I can't Check It through out the Software, I am only Having Single Form.
I made program which connects sql database via WiFi network. I have timer wich every 10 minutes updates textbox information from database. If Network connection will be lose, i do not whant to get any error and after that lose data wich is in textbox, until sql database connection will not be. How can i check if connection exists and after that update data from database? Something like that:
Conn = New SqlConnection(ConnectionString)
Conn.Open() ' if connection is lost there gets error
If Conn.State = ConnectionState.Open Then ' But this does not works
[Code].....
have this sql connection functionin a class
Class con1
Public Function ConnectToSql() As SqlConnection
Dim conn As New SqlClient.SqlConnection
conn = New SqlConnection("data source=" & Server & ";" & _
[code]....
Im trying to check my internet connection using just a button how do i do that?
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'm writing a Silverlight 4 application and would like to check when opening the installed out of browser application, whether there is a valid internet connection (to then download some data from my website). I realise that I could put a try catch around a WebRequest but that seems a bit hacky to me.
EDIT: What I meant by valid internet connection is just connected to the internet
How I can check if the internet connection is working or not? i have to check every few seconds without getting stuck.
View 9 RepliesThis is the work of one responder for the most part, and is not indicative of the quality of most of the posts.But you can judge that for yourself.
If you are writing a program that is used to monitor the status of your network, then this thread may not be of interest.
If you are an application programmer that uses network resources to accomplish your goal, i.e. you are using SMTP, FTP, HTTP, NNTP, NTP etc., and you think that you need to check for a connection first, then read on.Follow up to this.Before getting all geeky let's take a little detour...
Five days a week I get up, eat breakfast, check my email, forums, etc., take a shower, get dressed, and then drive to school.Many of you probably have a similar routine.What is interesting about that is not what we do, but what we dont do,because of our expectations and experience.Here is what I dont do.
I dont stick my finger in the electrical socket to see if there is electricity for the coffee maker and toaster.I dont fire up the command prompt and ping some host on the internet to see if I have connectivity.I dont check the battery, tires, water level, clutch fluid level, washer fluid level, etc.,before I drive off.
All of that is based on expectation and experience.So why would you write an application that pings the internet before it did something (SMTP, FTP, HTTP, NNTP, NTP etc)???? Is your experience or expectation that the network will be down?To illustrate and hopefully convince you that, like Oblio, it is pointless, create a new form with three buttons. In the following examples I use a WebRequest / WebResponse as my 'Something'.Here is what some think is a good approach, the classic ping-then-do, what I think you shouldn't do.[code]....What is wrong with this code is that all of the network IO is being done without a Try / Catch block.
I want to check the connection of server path eg[ URL] whether exists or notI tried this System.IO.Directory.Exists("http://localhost/MyProject/ ")but it always return false.So does anybody know how to check it?
View 3 RepliesI'm having a problem with some users, my vb tools always check at the splash screen a response from a server with a simple:
Dim MyResult as string = oWebclient.DownloadString("www.mydomain.com/page.php")
This actually works for most users but in some clients the firewalls I think they block this call or bypass or something like that, I found that after telling the user to turn off the firewall everything works ok, now I have some users that according to them they don't have a firewall or they already disable and still they have the problem.
You can see from the image the error message they receive, so my question is do you know any kind of free tool that I can send to the user to maybe log what program or whatever is blocking the program to connect?
I have a little problem with checking if a sql connection is good.
Attached here i have a simple vb.net program that should check if the sql connection to the sql server is good. If i just run it once it works very well. But if i use it in a timer and check the connection to the sql server every 10sec it will only tell me that the connection is good (V=0).
I have tested the code with turning of the sql server service.
Dim connect As String = "Server=192.168.1.2;Database=Test;User ID=sa;Password=12345;Trusted_Connection=False"
Dim sqlconnection As New System.Data.SqlClient.SqlConnection(connect)
[Code].....
We want to developed services to sending fax which should check internet connection after every 10 sec and should be work on all windows operating system.
I cannot use any host like[URL]..to check internet connection because it increase network traffic.
how do i check for sql connection status constantly. Timer?
View 4 Repliesif i go to sql server configuration manager and shutdown the SQL server, the server will be down.
How do i detect for those changes using vb.
Public Sub CheckConnection()
Dim con As New SqlConnection
Dim objCmd As New SqlCommand
[Code]....
I cant make those work because the connection opens and close. WHat i want is to check if the server is alive or dead.