VS 2008 - WinXP Ping Successful But Not Win7
Jan 19, 2012
I have a sub that I just discovered does not work for my windows 7 users but works fine for my windows XP users. This is basically a sub for a ping monitor to ping devices on a timer. What happens is that when the windows 7 user tries to ping, it always reports "down" on a windows 7 whether actually up or down. But, windows xp will report correctly with "up". 3 different windows 7 boxes, users say it worked before. Can't quite debug correctly as i'm on xp myself and it works just fine. Also, I haven't changed anything in the code in quite awhile and this is a recent bug that just started.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim itm As Object
Sec = Sec - 1
If ListView1.Items.Count = 0 Then Me.Close()
If Sec <= 0 Then
[Code] .....
View 3 Replies
ADVERTISEMENT
May 16, 2012
I develop my VS2010 project in my laptop with SQL 2008 Standard. In my laptop everything is working good, using the following connect string as global public string when the main form loads:
[Code]...
View 12 Replies
May 15, 2011
Within a VB.net program I used IO.File.GetCreationTime to read the file system's creation time of a file. I was irritated, because the returned value didn't match with the time displayed in the explorer. On another machine the time was displayed correctly.
[Code]...
View 1 Replies
Sep 20, 2011
ive decided to try out win7 since its finally a bit more debugged, ive backed up very carefully all my projects, however there semms to be a problem with the one i was working on, this first chance exception error has been avoided and not even mentioned in winxp however in win7 it not only mentions it but makes the application crash, This is what its nagging me about, i dont get it isnt windows7 the same when it comes to mydocs? Was not possible to locate part of the path: C:UsersEugenDocumentsIOrganizeSettingsCalendarConfig
Sorry i had to translate it, its in portuguese language, yeah i know... if i could i wouldve changed it but win7pro doesnt gimme that option, anyways back to the topic:
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
This is the code i came up with:
If My.Computer.FileSystem.DirectoryExists(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "/IOrganizeSettings" & "/CalendarConfig/") = False Then
My.Computer.FileSystem.CreateDirectory(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "/IOrganizeSettings" & "/CalendarConfig/")
End If
View 30 Replies
Jun 12, 2011
here a simple class to change the wallpaper in winxp and win7. i think it will work on every windows version.
[Code]...
View 2 Replies
Jul 8, 2009
i have tried altering some code i have to ping an ip address and store the result in an access db.i had it working when i had the ip hardcoded in as a string but I am now gettin an error.instead of having the ip address hardcoded in to the code i want it to be read in from the access db but im now getting this error:System.nullreferenceExceptionbject reference not set to an instance of an object at...button1.click event args ei have underlined the piece of code i tried to change
Imports System.Data
Public Class Form1
Dim Ping As Net.NetworkInformation.Ping
[CODE]...
View 39 Replies
Jun 6, 2011
I know the propertys transparency key and opacity. It isnt what I am looking for. I need to have my form to have the same Glass Effect the as win7 does while runing under win7 plataform. Like, if i have glass effect in the top I should have it in the background.
View 14 Replies
Feb 15, 2010
code for ping an ip? i want to do something like pinging in cmd, with shwoing results in a richtext box or listview...i found some codes and they don't work and i didn't make it up.
View 11 Replies
Feb 18, 2010
i have a little problem with the ping in vb. i have a richtextbox and i want to write in a text file the result. I done it, but my txt file loks like this:
[Code]...
View 21 Replies
Sep 14, 2008
Ok so for a while now ive had a program that pings about 15 computers on my network, but the way i have it is pretty messy, id like to somehow make the code a bit cleaner. so what i have is something like this
[Code]...
View 39 Replies
Jul 30, 2010
How would i delete only the successful inserted rows for insert and then move the non successful rows up and allow the user to correct the data and get it ready for an insert. If i dont delete the successful rows then i will have multiple inserts of the same dataRow and we dont want that! AND if i dont move the data up then it will have blank rows uptop and will end the try and not insert the corrected data. You can better see what logic i am trying to perform at the bottom of my code, right after I insert into the database. Here is my code.
Private Sub btnLaserGenerateTicket_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLaserGenerateTicket.Click
'Function declarations
[code]....
View 1 Replies
Dec 6, 2009
I was trying to edit to get the reults output to a text file. I needed to do this for a few hundred IP addresses, and found kleinma's code. It works great as is, but since the number of IP addresses to ping is so large, I lose some of the info from the console session. I tried to make changes to write the information into a text file, but it doesn't output the results. I am relatively new to VB.NET, so I was wondering if you could please point out the flaw(s) in the edited code. I was trying to use the My.Computer.FileSystem.WriteAllText(File, lineContent, True) method to do this. This does export the IP address list just fine, but the results of the async ping to not get output.
'KLEINMA
'WWW.VBFORUMS.COM
'THE PING CLASS IS IN THIS NAMESPACE
Imports System.Net.NetworkInformation
[code]....
View 1 Replies
Apr 13, 2011
I created an application for Windows XP, now it needs to run on Windows 7. I have had some issues to resolve, but rather small ones. I am now stumped on this one... Here is my code block
vb.net
Private Shared Sub RenameFileAfterDownload(ByVal File As String)
Try
[code]....
The code works perfectly for Windows XP, but the ftpRequest does not work in Windows 7 for renaming. That said, the code runs that entire sub becaues WriteToEventLog get's written, but seems to ignore the ftpRequest lines.
View 4 Replies
Dec 22, 2009
I have an app developed in VB that works fine on Vista machines but fails on Win7. The offending line of code merely references a variable stored in a module. Evidentally, something is quite different on Win7. How to I find and fix this behavior?
The code is very straightforward. The error occurs in the Application Startup event.
Public Sub MyApplication_Startup(ByVal sender As Object,
ByVal e As ApplicationServices.StartupEventArgs) _
Handles Me.Startup
[Code].....
View 5 Replies
Mar 23, 2011
Is there an easy way to just ping a server by IP or URL and return the minimum, maximum and average milliseconds? Actually the same results I get in CMD when using the ping command. Can't find any tutorial that describes it. So let's say I have a Textbox1 and a Button1 and a Label1 for the results. How can I do it?
View 1 Replies
Jan 3, 2010
I work as an IT Administrator and manage a few Servers, Routers, VPN Connections over a number if locations. What I am wanting to do is create a vb.net app that will go out and ping say every 2-5mins each of the servers, routers, that are listed and then shows beside the Hostname a Green Circle which means online and if its a Red Circle its offline, and the screen refreshes if their is a problem or a device / service comes back online.
Then if its offline email a particular email address showing the hostname of either the server or router and which location saying its offline. If possible to make it easier to change the devices to show possible have a txt file or something like that with the Hostname, IP Address, Location.
View 2 Replies
Jun 1, 2011
It seems like this would be a very easy thing to accomplish, but, from what I can tell, it's most definitely not. My OS is Windows 7. All I need to do is get the current volume/audio level - the master volume. When you click the little speaker icon in the task bar and change the volume - I need that number. All I need to do is get the current volume and assign it to a label. So if the volume is at 74 when the application starts, I need my label to display 74. I've been searching for days now for a way to do this and I'm starting to get frustrated. I've looked everywhere. I've tried 3 different classes, at least a dozen different codes, assorted imported dll's- none of it even came close to what I need. From what I can tell, the current methods are all designed for windows xp. I need a way to do it in windows 7.
View 7 Replies
Sep 16, 2010
My app is a tray icon which scans the Outlook Inbox periodically. It seems, from testing in my VMWare WinXP machine, that the app stops Windows from shutting down. I press StartShutdown but nothing happens. I have to exit the app first then StartShutdown will shutdown the PC.
[Code]...
View 1 Replies
Jan 16, 2012
I am wondering if I can use VB.NET(I am using visual studio 2010 express) to get and set a environment variable.
I want to add path of my application on system environment. I want to preserve what is already there and then I wan to add my string. This can be done by getting value of PATH and then append my string then re writing it.
I have 2 questions here:
How to get/set system variable in vb.net 2010? Will it be on the fly, I mean will it be immediatly avaialble in dos prompt or there will be delay?
As just for experiment i opened a command prompt then updated the PATH variable manually and it was not updated. I am wondering it I do it through programe it will be same.
View 1 Replies
Jun 10, 2010
I am trying to make my controls look as cool as xp theme enabled controls like gradient fill background in container controls and colour thames support etc
EnableXpVisualStyles()
I found it to enable visual styles but didn't give me visual thames to apply. So in order to apply thames or colour schemes what should i do?What other commands should i use with combination with it? as I have seen my application giving ugly look even applying that command and other program showing nice loook in my win2003 server
View 1 Replies
Sep 3, 2009
I've found this code and it works in XP: [code] When I run the same code in Vista, I get an exception at the line "System. Environment.Get FolderPath(":See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. [code] I assume this has to do with the Vista UAC. Is there a better way to retrieve the "My Documents" path of either XP or Vista with one piece of code?
View 2 Replies
Sep 4, 2011
msgbox(System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName()).AddressList(0).ToString())
is showing Ip address in Win XP but in Windows 7 it is not showing.
View 7 Replies
Nov 13, 2009
I'm currently setting up TortoiseSVN 1.6.6 on my WinXP system here at work and since I use VS2005 and VS2008 regularly here I'm considering installing AnkhSVN 2.1.7444 to make things easier as at my other job I use VSS (Visual Source Safe) which integrates into VS2003, VS2005 and VS2008 and works very nicely.So for those of you who have used AnkhSVN 2.1.7444 and VS2005/2008 what's your opinion?
View 1 Replies
Sep 28, 2004
i used an old VB6 algorithm to subclass a window and made a few changes at the 'hook method' to make it work in .NET.
Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hWnd As Integer, ByVal nIndex As Integer, ByVal dwNewLong As delWindowProc) As Integer
[Code].....
View 2 Replies
Jul 27, 2011
The code i have so far inputs the users username and pas that they inputted into 2 textboxes. Next the user hits login and it submits the info. Here is where i have a problem. Some users are already logged in when they get to the site, this is a problem because i need to make sure they are logging in correctly. Here comes another problem, lets say they log in correctly, how can i know that the login was successful?
Simplified:
1) How can i find out if the user is already logged in so i can log them out.
2) If they are not logged in, and they log in successfully. how can i confirm that?
If there is any other way to login without web browsers?
'Code to enter the user and pass into the webpage
WebBrowser1.document.GetElementById("Username").InnerText = TextBox1.Text
WebBrowser1.document.GetElementById("Password").InnerText = TextBox2.Text
'Code to click login on the webpage
WebBrowser1.document.GetElementById("submit").InvokeMember("click")
View 1 Replies
Jan 20, 2010
When I am building my web-poject it is successful and giving no error but when I check the Error list too many errors are showing. One more thing that when I am taking even empty events the error increases
Errors in Error List are:
Error 1 Name 'nserted' is not declared. C:Documents and SettingsVisual Studio 2005WebSi
[code].....
View 2 Replies
Jan 19, 2010
Is there a Visual Basic Best of the Best showcase?I am talking about commercial programs that really shine.Where can I go to goggle at the the most successful VB apps around?
View 15 Replies
Sep 16, 2011
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]....
View 3 Replies
May 5, 2010
How can I recover my last succesful build.When debugging the last build will run but I cannot edit anything due to errors in the current code.Does anyone know.Oh I am using VB.net 2008.
View 5 Replies
Jun 16, 2010
i want to make condition statement in my function. i use this method : [code]if i try to insert a data already in the database, the function will directly go to the updateDatabase()the problem is, if i try to insert the data that currently not in the database, the function will directly go to update database as well.
View 1 Replies