Block Ip Address Individual And Reange Ips
Sep 21, 2009i want to block ip address individual and reange ips.
View 1 Repliesi want to block ip address individual and reange ips.
View 1 RepliesIs there a way I could block connections to an IP address (Incomming and Outgoing) in visual basic 2008? I have a different method, using the windows hosts file. I could make it redirect, but on the host file, could I make it launch a certain application when it blocks an IP. Like, launch a file called blocked.html that says "Webpage blocked" on it? and if u get this far, how can I see when an app attempts to connect to the internet. Like on bit defender firewall, say aim6.exe trys to connect to a server, how could i warn the user of this???? (Maybe using winsock)
View 1 RepliesDoes anyone know the code to address Logical Block 0 of a disk? This is my dump of block 0 of a multipartition disk.
[Code]....
Is there a way I could block connections to an IP address (Incoming and Outgoing) in Visual C+/C#/C???
I have a different method, using the windows hosts file. I could make it redirect, but on the host file, could I make it launch a certain application when it blocks an IP. Like, launch a file called blocked.html that says "Webpage blocked" on it? [code]...
What i want is :
There is one windows app ( made in .NET 3.5, VS2008, C# ) for Windows XP SP2 & SP3
generally users can change there IP or modify their IP Address.
Now,when my apps starts i dont want users to change there IP Address untill my app stops.
I have to create a block of code that detects the Local IP address of connected adapter and returns it as string to a TextBox.
View 7 RepliesSo I have a code atm that has 2 combo boxes, one to select the make, then it will enable the model, I have 3 model choices, here's code: [code] Once I have selected my model of the car, it takes me to that specific form with a picture of that model, I then want to display individual parts, with individual prices that will add up in a text box above.
View 2 RepliesAre there any IP Address filters or masks available in Windows Forms as per following screenshot? A backslash shouldn't be allowed or it should be filtered somehow.
View 1 RepliesSocketException was Unhandled: Only one usage of each socket address (protocol/network address/port) is normally permitted I get this error every time i click collect a second time.
[Code]...
Can anyone point me to some code which can help obtain the network address from the host IP and subnet mask?
View 3 RepliesI made web browser which consist address bar that I use it to type addressess in it i.ewhen I type [URL] it opens [URL] but when I go to anther page in google it doesnot show it's link in address bar lix InterntExplorer or other international browsers so how to show any link or any sub page's link in my browser address bar ?
View 1 RepliesI'm trying to use the DHCP API (using the references on pinvoke.net) to retrieve a computer's MAC address when given the IP address but I can't get the code to work. I've run all the C# code on pinvoke.net through the C#-to-VB converter but I'm stuck now.
Here's what I have so far. The value of res is always 5 (should be 0). Thing is, I can't find any documentation on what the return codes mean
vb
Private Sub GetMACDim client As String = "1.1.1.1" Dim server As String = "0.0.0.0" Dim si As New NativeMethods.DHCP_SEARCH_INFO si.SearchType = NativeMethods.DHCP_SEARCH_INFO_TYPE.DhcpClientIpAddress si.ClientIpAddress = Convert.ToUInt32(StringIPAddressToUint32(client)) Dim res As UInteger Dim oInfo As IntPtr
[code]....
' Use Your work Group WinNT://&&&&(Work Group Name) Dim DomainEntry As New DirectoryEntry("WinNT://Wokgroup") DomainEntry.Children.SchemaFilte
[code].....
In member register page, I added email address validation but it only check the email address format, such as .com, .net, .org.If user inputs fake account such as aaabbb01010@gmail.com, how to verify it and return an error?
View 2 Replieshow to assign a static ip address and dns adress by VB2008?
I search in MSDN,use system.net.ipaddress??or something else?
does anyone know how to get a computer's mac address with an IP address?
View 25 RepliesBasically I'm designing a program atm for my college coursework and have been trying to get a search button to work. Basically, I need a way so that after the customer id has been found, my variable (in this case inc) needs to set itself to the row which the customer id that has been found is in. the idea is that it finds the row, and fills in the textboxes which I have with the data Here's the bit of code I have atm: (And btw, inc is set as an integer earlier on in the program)
Dim CustomerID As Integer
'asks for the customer's ID number so that their results can be found.
CustomerID = Val(InputBox("what is the Customer number?"))
Try
Sql = "Select * from tblQuotes WHERE CustomerID = " & CustomerID
[Code] ....
Hopefully with the text Whatever the Row Number is being replaced by actual code to get it to that row.
Can I send and detect individual SYN or FIN packets using VB.NET Sockets or any other process in VB.NET?
View 2 RepliesI have thius code that gets the html results of google search
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Dim PageElements As HtmlElement = WebBrowser1.Document.GetElementById("rso")
TextBox2.Text = PageElements.OuterHtml
Dim text = TextBox2.Text
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(TextBox1.Text)End SubAnd it returns the html code.I want to get each list item and takes it html and put each individuals html in to a variable. How would this be done.
I have a a multiline textbox, I want to take each and every character that the user enters and on a button press it replaces them with a set of characters, like:
i with x75d
or:
f with g8r
but the only way i have figured out how to do something like this is using a character in between each character and the split method, like:
Dim input() As String
Dim txt as String
Private Sub Encode_Click(ByVal sender As System.Object, ByVal e As
[Code]....
I'm converting a library from C# to VB.net which so far hasn't been too difficult. One class though implements IEnumerable and IEnumerator and contains a block of code like this:
public class MyClassCollection
{
// Assume all other necessary code is in place
[code].....
I am making a HTML editor and thats the easy par ie saving as .html etc, but i want to also add in the thing thats in VB wherein it picks up the word your typing and make suggestions, i have made it so it can have a data base of a thousand words (1000) and you can add and it loads all fine. Now i need to add in the functionallity to read every Key, i tryed
Code:
If e.KeyCode = Keys.Space Then Scan = ""
But none of this works, is there a better way of getting the the key press and adding it to a string untill space is pressed in which the array is cleared.
Code:
Imports System.IO
Public Class Form1
[code]....
So say i had a Tag stored that was "HTML" then as soon as i pressed the < key it would start checking my keys then if i pressed H it would display all word is the drop down box with H at the start then if i followed it with T then M it would show HTML in the box and maby a couple of others that began with HTM, if i then hit enter it would add in the L> thus compleating it and printing "<HTML>"
if this is in the wrong spot i believe this is the proper spot. anyways, i am using the code below to read a text file and then separate the line where it finds a :: - my problem is what if i have a line like:
[Code]...
I am looking to add individual lines of user inputed text into a rich text box. I've been working with .text and .appendtext however I can't assign individual lines of text.[code]...
View 4 RepliesI am very new to VB, and am programming in VB 2008 express. Sorry if this thread is in the wrong spot I need to add two 40 digit numbers together and was thinking that the simplest way to do it would be to input them as a string and then convert the string to a single dimensional array where x(1) is the 1st digit in the number, and x(30) is the 30th digit, etc. I would do the same for the other number where y(1) is the 1st digit. I would then add the x(40) and y(40) (which are the last digits of the number) together and carry the remainder into the next addition (39th digit, 38, ...)
[Code]...
Is it possible to change the forecolor if individual cells depending on its value (for instance changing from Navy to Red if negative in currency columns?
View 1 RepliesI have a mature VB6 program that depends heavily on flexgrids for the display.It appears that DataGrids are somewhat of a replacement for flexgrid?I need to update individual cells over and over and I don't see how to address a single cell. Appears to me that most samples are tied to a database which I don't have.If I set up a datagrid that is say 3x3, how do I read and write from and to say the center cell?
View 2 RepliesI have a vb.net project that loads "plugin" dlls at runtime to crunch some data in slightly different ways and return the results. To do that, all the plugins implement the same interface, so the GUI couldn't care less how the plugin arrives at its final dataset, just so long as all the plugins deliver it back to the GUI in the same way.
I'd like to set up per-plugin options in addition to the main program options. I have an options form that accepts an object of type System.Configuration.ApplicationSettingsBase and displays the contents in a PropertyGrid control, so it'll show any My.Settings object the same way. Question is, how do I pull the My.Settings object out from a plugin that's loaded at run-time?
I'm trying to teach myself arrays as I have not extensively worked them. So I thought of a basic program to hash the contents of an array and list the output of the array word next to the hash value of it.
[Code]...
I have an application that has 4 WebBrowser control to monitor a commercial website. I would like each WebBrowser to be using its own proxy however it looks like the proxy setting affects all the browsers and cannot be set on an individual basis.
Is there a way to have individual proxies for each WebBrowser control?