VS 2008 Checking If COM Ports Work?
Aug 3, 2010I want to make a program where I can chose a COM port (For example COM 1), then check if it's working. It would be really useful for me, seeing as I work a lot with broken COM cards.
View 1 RepliesI want to make a program where I can chose a COM port (For example COM 1), then check if it's working. It would be really useful for me, seeing as I work a lot with broken COM cards.
View 1 RepliesI want to get the details of a com port on my machine. To be more precise the com port presents itself in the device manager as:
MyPort(COM3)
I know how to get the name of the port i.e. COM3. Is there a way to get the rest of its description i.e. "MyPort".
i saw Anti virus auto run when usb enable but i don't how to check port usb? my idea.i want to run my program when have port usb open
View 8 RepliesThere are some programs like uTorrent that allow me log into them through the url...How would I be able to create a port like that, and display information there?
View 3 RepliesI'm making an application that tracks jobs we log in our IT department and as I'm often out and about it would be handy to be able to use this app from my laptop and connect in to our server at our office. The problem is that a lot of the places I go block all outboundtraffic apart from port 80 and 443 (for HTTP and HTTPS). Now I know I could write an ASP.NET front end that I could just access over the internet but to be honest I just plain dont like making ASP.NET web pages and so if there is any way I could do this just through my standard desktop app that would be good.
I've heard a bit about "web services" and to me this sounds like a solution but I dont know enough about them to decide if I should use one or not.The main thing that will decide this is whether or not I can make this web service listen on port 80, is that possible?Also, is it hard work making something use HTTPS instead of HTTP so that the data is encrypted? I mean, do you have to do all of the encrypting yourself or is there some sort of automatic function you can use to handle this?
able to open and utilize a single serial port within with my VB 2008 program (i.e., set port parameters, open&close port, send&receive data via port, etc.), but I want to open two or more serial ports concurrently within my VB 2008 program so that I can read data from one port, say COM1, make decisions and calculations based on that data, and send instructions out through another port, say COM2.
View 1 RepliesVS 2008: Send commands to a local UDP port. The port is 5975. Let me know if im being to vague or you need more info.
View 3 RepliesI have been stumped on this for about 3 weeks now. In the beginning me and my partner have been trying to hit this at the internal angle. only problem is different html tables are constructed different than others. We are needing to extract from multiple pages and sites so we know that Regex will be the best solution. We can use the same script for everything. This is my first time working with Regex, I got it actually extracting the very first ip[proxy]. I have no idea why it isn't extracting every one on the page. I also have to add the . in between each each octave of the ip. That is weird because I have it in the Regexpession to find the .'s.What I'm Needing is for this to basically scan the whole page and grab all the ipsorts and add them to a listbox.Here is my
Dim request As HttpWebRequest = Nothing
Dim response As HttpWebResponse = Nothing
Try
[code].....
I have the following code to create an array of serial ports.
[Code]...
I have a form that works on my local Machine I created into. I have Office 2007 on this machine. I created the Form with the Excel 12 Reference. I move the Entire conetence of the Project folder to my work computer. Which has Office 2003. Do I need to recreate the form with the Excel 11 reference. I could not get the form to work on work computer. IT has a com error. I am acessing the EXE for the debug folder w/in the Bin Folder.
View 7 RepliesIn my project I'm trying to get the caption property of serial ports available on computer. But when I run this code below I get "A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll" exception. I tried putting "Option Strict On" and then I'm getting build error saying it disallows Late binding.
[Code]...
Is there any better performance by checking for a true value like this:
[CODE]..............
Than like this:
[CODE]..............
i have a textbox in a calculator and i want an if function so that it checks that there cannot be 2 .'s in it:[code]
View 2 RepliesI'm trying to determine the framework version that is installed via the registry. When poking around, I found this key: HKLMSOFTWAREMicrosoft.NETFrameworkPolicyv4.0 I've created the following function to determine if the key exists:
[Code]...
I've verified the key exists, but it keeps returning False.
i know My.Computer.Network.Ping but as alot of people know, it's glitchy and bugged.
I want something that checks to see if it can connect with something, as simple as it sounds.
I'm experimenting with sockets at the moment, but having trouble so i thought i would come and ask here
What i'm up to:
VB
IP = Net.IPAddress.Parse(getinfo("settings.inf", i & "IP"))
socket = New Net.Sockets.Socket(Net.Sockets.AddressFamily.InterNetwork, Net.Sockets.SocketType.Stream, Net.Sockets.ProtocolType.IP)
[Code].....
However the problem with this it that i pinged 1.1.1.1 and it still connects, ALSO i would like to be able to check a hostname not just an IP to make things more convenient, please help me to find a way to properly check a connection with IP or hostname.
Note: The getinfo function is defined by me
In the following code, a Date variable is declared but not set to anything:
Dim myDate As Date
What's the proper method of checking if the Date variable is "new" and not set to anything?
For example, getting the lowest date value from an array of dates:
Dim dtMostRecent As Date
For i As Intger = 0 To myDateArray.Count - 1
If myDateArray(i) < dtMostRecent Then dtMostRecent = myDateArray(i)
Next
In the code above, I need a way to check first if dtMostRecent is unassigned, in which case just give it the first value, after which it can be compared with subsequent values. How to check if a Date variable is unassigned.
I've created the following function and thrown it inside of a timer:
[code]...
It works, but it keeps trying to open media player for each process it looks like. I need to continuously run the function so that Media Player opens when it's closed.how to make sure it opens only once when the process doesn't exist?
Can someone tell me why this code works exactley the opposite of the way I thought it should?
[code]...
I have a combobox (cbKeyWords). I want to make sure tbAddEdit.Text does not already exist before I save. To me I should be testing for a False result not True. But the above code, goes to the msgbox if findstringexact=false and saves the data if it's true.
I was curious why this bit of code won�t detect that the ARGB value is Blue:
[Code]...
When I run the code it says that the color isn�t Blue.
I have agroupbox control and on this groupbox control there is upto 10 checkboxes, if any of them are unchecked i was going to throw a warning "No checkboxes selected" i'm not sure how to go about it so far i have:
For Each ctrl As Control In GroupBox10.Controls
'Not sure what to do here...
Next
[code].....
I have 22 text boxes that have to be checked to see if the value has changed. I am using the TextChanged Event handler to do this thus:
Private Sub TextStringChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
DataChanged = True
RemoveHandler ........
[code]....
The Handler would be added after the data had been loaded. The question is:Is there another way of checking for text changes without having to add and remove 22 handlers.
I'm having trouble using the HasChanges method.I'm trying to get a message box to show if a user hits the edit button, makes a change, then hits the close button without hitting the save button first. From what I understand, the HasChanges(DataRowState.Modified) statement should work.In reality, when I hit the edit button, make a change to a field (zip for example), then hit the close, it just closes without showing the messagebox.Here's my code so far...
Private Sub CustomerForm_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) _
Handles Me.FormClosing
[code].....
I am trying to have my program check for the existence of a registry key so I do not get a null reference exception error. The key may or may not exist depending on the computer. How can I check to see if it exists and then change its value if it does exist or skip over it to the next one if it does not exist? (I already know how to change the value part of it) Im just not sure how to check for the existence of it for example would be trying to set the value of a key that does not exist called test below... this obviously would throw a null exception error so how do I check for the existence of the key before executing these instructions and then if it does not exist it skips this and keeps going to the next code ?
Dim testkey As RegistryKey = Registry.LocalMachine.OpenSubKey("SystemCurrentControlSetTEST", True)
Dim keyval As Int32
' Set to ON
keyval = 1
testkey.SetValue("ON", keyval)
I also check the status of the registry entry on form load
Dim Test As RegistryKey = Registry.LocalMachine.OpenSubKey("SystemCurrentControlSetMYTEST", False)
'Get the reg value.
Dim Testflag As Integer = CInt(Test.GetValue("ON"))
[code]....
I have tried to solve this myself and I know I am probably doing something really silly here what I have is two different registry values that control what is displayed in the combobox on my form RegistryKey1 has the following values:0,1 or it does not existRegistryKey2 has the following values2,3, or 4 the combobox has the following values 0,1,2,3 However here is the problem if the RegistryKey2 is 2 then it further has to be checked if RegistryKey1 is either 0,1 or does not exist
if it is 1 then the selectedindex = 0
if it is 0 or does not exist then the selectedindex = 1
if RegistryKey2 is 3 then the selectedindex = 2
[code].....
Suppose I have 5 Integers(A, B, C, D, and E) and 5 Textboxes. When the program run, the user is going to input 5 numbers to those 5 textboxes. When a button is pressed, a label will show up and write the textbox number with the biggest number.
View 1 RepliesI'm very green with VB Express 2008 and am going through the tutorial. I'm skipping over a lot of the exercises as some of it is review for me - I've a fairly solid background in MS Access VBA and forms design there. But I have a simple question on VB Express forms design (I'm not worried about data handling or anything yet).How do I test a form? In my first form on my project, I just press F5 (Start debugging) and it opens just fine. However, I'm playing around with a second form in design mode and can't seem to get it to open to test some of the code (simple msgboxes associated with buttons).
In Access 2003 and earlier, there was a design mode and form view. The Access design mode was the equivalent of the design tab in the VB project, but I can't seem to find the equivalent of the Access form view in VB so that I can open that form. VB F5 only seems to open the first form.BTW, is VS 2008 the correct tag/prefix for this question on VB Express 2008? I see there's a separate tag list - is there an approved list of tags aside from the prefix before the title in the posting screen?
I'm checking is a file exists as follows.
If txtGradeObs.Text = "" Or Dir(txtGradeObs.Text) = "" Then
MsgBox("Specify the Grade job of Obstructions", vbExclamation, MsgBoxTitle)
Exit Sub
End If
I get an error if the drive does not exist - i.e. G: rather than C:. It used to work in VB6. How can I get it to work.
as title says. and if it has the same values, delete one of them and add (2)
so itll be like: - before the filter:
[Code]....
I have a project in which I turn a picturebox into a bitmap and I want to check if picturebox2 exists within picturebox1. NOT THE SAME IMAGE.Picturebox2 is a smaller image and isnt THE SAME image as picturebox2.For eg.If picturebox1 was The google logo.and if picturebox2 was Now they arn't the same but picturebox1 CONTAINS picturebox2.I want it to be able to check if it exists in picturebox2 and get the COORDS of the location WITHIN picturebox2I have this code so far but don't know how to finish it
Dim bmp As Bitmap = DirectCast(PictureBox1.Image, Bitmap)
Dim bmp1 As Bitmap = DirectCast(PictureBox2.Image, Bitmap)
For x As Integer = 0 To bmp.Width - 1
[code]....
I have started to Build my Server Monitoring/Alarm system and I have built all the components that check network connectivity and internet connectivity etc and alarm if anythingis bad.However I am now struggling to find a way that I can check the following local services are running ok:
[code]