Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Winsock Control
#2
Hey Covert2Sting,

Thanks again for posting on BP Forums!

First of all, I am not really sure why VB is not recognizing the State command for Winsocks, I mean.. It is a standard command. That is really strange.

As for opening applications or opening a command prompt command, here is the code
Code:
'To open applications
Process.start("APPLICATION PATH.exe")

Code:
'To send a CMD command via a CMD window
Dim psi As Object = New ProcessStartInfo
psi.FileName = "cmd.exe"
Process.Start(psi) 'Open a new CMD Window
SendKeys.Send("COMMAND HERE" & "{enter}") 'Type in a command (such as 'help' or 'dir') and press enter

Hope this helps a bit, sorry about not knowing the reasons for the unrecognized State property.
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Winsock Control - by Covert2String - 11-25-2011, 05:12 PM
Re: Winsock Control - by brandonio21_phpbb3_import2 - 11-25-2011, 08:19 PM
Re: Winsock Control - by Covert2String - 11-26-2011, 07:53 AM
Re: Winsock Control - by Covert2String - 11-26-2011, 03:18 PM
Re: Winsock Control - by Covert2String - 11-27-2011, 04:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom tab control help and making controls Derek275 4 20,232 11-16-2012, 09:51 AM
Last Post: Snake_eyes
  Help Formatting Credit Number in Textbox Control kismetgerald 11 36,026 08-30-2012, 08:19 PM
Last Post: brandonio21
  Custom Tab Control xolara 5 19,459 04-24-2011, 07:12 PM
Last Post: xolara

Forum Jump:


Users browsing this thread: 1 Guest(s)