Get IP Address Using Program?
Dec 5, 2010What kind of IP address does whatismyip.com provide?
How can I get it using VB.Net code?
What kind of IP address does whatismyip.com provide?
How can I get it using VB.Net code?
I want to get current internet ip address in vb.net. not localhost ip address. like as [url]...
View 5 RepliesHow to get ip address in vb.net. i used below code to get local ip address but it showing dns is not declared. can any one tell me what is that Dns in the [code]...
View 5 RepliesMay I expose my "small" problem?Here, i'm following a course in my University, called Introduction to Programming, there are only beginners in our class. i'm also a newbie, to say so.And some stupid students were not paying attention so he gave us a crazy assignment for Friday 30th.This is what his assignment consists in. I have created a PDF file from his requirements and some samples of Code.[url]
View 6 RepliesHow to get email address collector in vb.net
View 2 RepliesHow am I able to send a data packet from my program, to an IP Address on a certain port (using Udp).
View 4 RepliesI want to print the current port address of the usb stick which is connected to the computer ? By using Visual Basic 2010
View 1 RepliesIm trying to make a little program that gets the computers IP address i have got it to do all of that and have got it to use the default email program to add the email address, subject and body but i cannot get it to add an attachment.
Imports System.Net.Mail
Public Class FrmRemote
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[CODE]...
How to add get this code to add an attachment?
I need to make a program for my school (I`m the principal), that reads the text in the memory address of the program and write it down in a txt. I already have the address numbers. For more information, I use VS 2008.
I was trying to make one code to get the memory address. So, after I succeed this, I'll make the correct program.
The code I made(adapted from [URL] returning-0 ):
Public Class Form1
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
[Code].....
I need to make a program for my school (I`m the principal), that reads the text in the memory address of the program and write it down in a txt. I couldn`t find a professional here in my city so, I already have the address numbers. For more information, I use VS 2008. I was trying to make one code to get the memory address, and after I succeed this, I'll make the correct program.
[Code]...
1. It only gets the first 4 bytes(is it?) of the memory address. I want it to get all of them.
2. I haven't discovered how to convert each byte(?) into a character. Is there a function for this?
3. When the program runs, after clicking ok on the MsgBox, it highlights the Next and debuggs:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I'm trying to write a text strings into a binary file and then call it back from another sub.[code]...
View 6 RepliesI am developing a program that will manage students details. I have bound the program to an access database but i want the program to be able to retrieve a students first name and address when i enter the students first name in a text box and clicking a button.
I tried this code below but it didnt work.
Private Sub btnGetData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetData.Click
dt = StudentDataSet.Tables("Mystudent")
[CODE]...
i am trying to run a .vbs script that is not in the same directory as the program is in
Dim CustomInstalaionPath As String = "C:UsersuserDesktopTest"
Process.Start(CustomInstalationPath + "/run.vbs")
the program is running in the normal directory for de-bugging
C:UsersuserDocumentsVisual Studio 2010Projects...
i have tried loads of ways but nothing is successfully running it
Imports System.Net
Imports System.Net.Mail
Public Class Form1
Sub sendMail()
Try
Dim AnEmailMessage As New MailMessage
[Code]...
I use this code to send an email through gmail account but the thing I want to do is, I want to check whether the given email and password exists or not and if it exists then pop out a text box with the body of the mail and type the text and then send it as a mail. But in the above code you have to log in and type body and when you send the mail , It verifies for the email and password while sending and if anything goes wrong says there is no such gmail account.but i want to check it whether the email and password exists or not, when the user enters the email and password at the beginning itself.So that he enters the right email to log on to compose a mail.Is there any way to check whether the given email and password is correct at the beginning only ?
Are 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].....
when i run my program this come up "The specified string is not in the form required for an e-mail address." this is my code. textbox4 is in email address form.
CODE:
I have to make a basic program that: Create a program with a simple interface that
1. Asks the user type his/her email address into a textbox.
2. When the user clicks the "Evaluate Email Address" button, one of two message boxes pops up: "That is a valid email address!" with an "Information" icon, or "That is an invalid email address!" and on a second line, "Please retype your email address.", with an "Exclamation" icon
3. To be considered valid, the email address must -include an "@" symbol, and -it must end in either ".com", ".net", or ".org" or ".edu" (I don't know how to check a string and test if its last four characters end with any of these and make it say not valid email address. I think I might have to use a case statement)
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 RepliesI have an account with a website and I want my software to automatically download files that are generated.
I go to the website and login, and then I click a link that downloads a file. Unfortunately, I can't use the My.Computer.Network.DownloadFile function, because the first argument of that function is a file address (http:// www . website . html/file.txt). Instead of that, the address if I look at the link to download the file is something like this (http:// www . website . com/pid=1&output=csv&action=view&pview=pview).
You see how this won't work? I'm looking to use my software to automatically download the file that's available, but I can't use the DownloadFile function.
how 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 Replieswhere i put the *'s i get the error "The parameter 'address' cannot be an empty string. Parameter name: address".
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim mail As New MailMessage()
Dim SmtpServer As New SmtpClient
[code].....
I want to run a FTP url in explorer. (Not in IE) What i want is some how when the button clicked the URL should appear in the address bar of the windows explorer.
This is because the ftp I access should be accessed in that way (By typing the url in the address bar of..lets say ..mycomputer window.)
I don't knw whether both do the same thing. But when I do I manually I could access the FTP by typing the URL in address bar in mycomputer(I think it is windows explorer) but not by typing it in the address bar of IE.
way to put an address in the address bar in windows explorer
Private Shared Function GetMacAddress() As String
Dim qstring As String = "SELECT * FROM Win32_NetworkAdapterConfiguration where IPEnabled = true"
[Code]....
I need to develop a VB code able to set the follows:
-IP
-Subnet mask
-Gateway
-DNS 1
-DNS 2