הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Saturday, September 17, 2016 12:23 PM
Hello every one.
I was wondering is there any way to connect to wifi using vb.net. I mean there must be two textboxes in the gui form one for ssid and ther for password and when the user clicks connect then the app helps to connect the system to the wifi network. it is not like my wifi drivers are not working or adding ssid and password in textbox would make me easir to connect. It is just my curiosity.
i want to know is it possible in vb.net if it is then how and if it is not then why not cause i have seen a lot of libraries developed for different tasks in vb.net.
i already have searched in google but i did not find any good information on this topic
kind regards
vinay pant
All replies (12)
Friday, September 23, 2016 8:18 AM ✅Answered
Hi repulsive1,
From the code which you provided, if you want to get a list of SSIDs and connect to them, you’d be using the Wireless Network API. And I found a same issue, please refer that: How to connect to access point using vb.net
Please check this sample project about Managed Wifi API for some reference.
It’s likely that you will get some ideas about Network security in following article:
http://www.codeproject.com/Articles/9510/Network-Security-for-Small-and-Medium-sized-Busine
Hope it will be helpful to you.
Thank you for participating in the forum activities and sharing your issues.
Best Regards,
Neda Zhang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Sunday, September 18, 2016 9:47 AM
Well that was harsh but i understand your point i will research on it
thanks anyway
kind regards
vinay pant
Sunday, September 18, 2016 10:10 AM
Hello repuslive1:
https://code.msdn.microsoft.com/Wifi-Hotspot-C-a5f9b8db
ASP.NET Forum
StackOverFlow
FreeRice Donate
Issues to report
Free Tech Books Search and Download
Monday, September 19, 2016 9:52 AM | 1 vote
This forum is for asking from people who already knows and for them who needs help we all are free to ask anything here cause this website is not yours . As for the matter of fact if you think this is childish then you have done anything like mature people here just mocking people and saying that is is childish that is childish is not professional.
as for the answer if you know the answer spit it and if not it is better to keep your mouth shut cause no one is interested in hearing all this what you are asking as for my question a lot of people have seen this and it may be true that they have considered this as childish but they did not reply all they passed it but you came here wasting all my time.
you know what people like you are the reason that people refrain asking questions from these forums cause you people do nothing just wasting all of us time. If you don't know then there is no need to come here say all this s**t cause i am not asking it to you anymore maybe another person will answer me
vinay pant
Tuesday, September 20, 2016 2:47 AM
see let me tell you one thing i am not a vb.net professional nor i am like you who have worked in prestigious companies don't get me wrong bit i am a rookie as for the code i have tried it already using netsh
by the console
Private Function RetrieveNetworks()
Dim proc As New Process
proc.StartInfo.CreateNoWindow = True
proc.StartInfo.FileName = "netsh"
proc.StartInfo.Arguments = "wlan show networks mode=ssid"
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.UseShellExecute = False
proc.Start()
Return (proc.StandardOutput.ReadToEnd())
proc.WaitForExit()
the problem is it only shows the available networks i mean i want to connect to one of them using the ssid and password but i am unable to do that
one more thing it is not like each time i come here and spam here ans waste time of all of you guys and also i do my research all the time before i post anything here. but you guys are far from my level of programming and i think maybe any of of have worked in the project of which i am asking about i did not asked for the code nor did i say that you do my research and complete my work why would you it is not your work i have to do that but you have far more experience then me at least you can do is give me a hint a direction so that i could work on that direction to achieve what i am looking for.
as for my previous threads it was never my intention to spam here i have seen my threads after i saw your comment and each time i ask something i tired to provide code here it is not like i spam here.
apologies from my side if that is spam but i did not expect that kind of behavior from people who are much more experience in this language either.
vinay pant
Tuesday, September 20, 2016 3:24 AM
see let me tell you one thing i am not a vb.net professional nor i am like you who have worked in prestigious companies don't get me wrong bit i am a rookie as for the code i have tried it already using netsh
by the console
Private Function RetrieveNetworks() Dim proc As New Process proc.StartInfo.CreateNoWindow = True proc.StartInfo.FileName = "netsh" proc.StartInfo.Arguments = "wlan show networks mode=ssid" proc.StartInfo.RedirectStandardOutput = True proc.StartInfo.UseShellExecute = False proc.Start() Return (proc.StandardOutput.ReadToEnd()) proc.WaitForExit()
the problem is it only shows the available networks i mean i want to connect to one of them using the ssid and password but i am unable to do that
one more thing it is not like each time i come here and spam here ans waste time of all of you guys and also i do my research all the time before i post anything here. but you guys are far from my level of programming and i think maybe any of of have worked in the project of which i am asking about i did not asked for the code nor did i say that you do my research and complete my work why would you it is not your work i have to do that but you have far more experience then me at least you can do is give me a hint a direction so that i could work on that direction to achieve what i am looking for.
as for my previous threads it was never my intention to spam here i have seen my threads after i saw your comment and each time i ask something i tired to provide code here it is not like i spam here.
apologies from my side if that is spam but i did not expect that kind of behavior from people who are much more experience in this language either.
vinay pant
No I won't give you a hint. Now I will just provide all the code.
Because no hint will provide you any ability to understand all the code or where to get it or how to make it work.
This will take a day or two to make it all work correctly as none of it is simple.
And I am not any kind of expert in anything vb.net related except perhaps "Hello World" which mostly anybody should be an expert in regarding vb.net.
La vida loca
Tuesday, September 20, 2016 4:55 AM
i have seen your profile and your youtube link you are an expert you are angry that is why you are saying this. you have more than 70000 points which proves your expertise.
vinay pant
Tuesday, September 20, 2016 9:10 AM
i have seen your profile and your youtube link you are an expert you are angry that is why you are saying this. you have more than 70000 points which proves your expertise.
vinay pant
Well……Plz don't be so angry:)
What about my point to the problem?
ASP.NET Forum
StackOverFlow
FreeRice Donate
Issues to report
Free Tech Books Search and Download
Tuesday, September 20, 2016 11:36 AM
Sorry for not replying to your answer and thank you so much for this solution but sir i was not looking for this solution. Rather then creating a hotsopt i want to connect to a wifi connection via a ssid and password
vinay pant
Tuesday, September 20, 2016 11:38 AM
Sorry for not replying to your answer and thank you so much for this solution but sir i was not looking for this solution. Rather then creating a hotsopt i want to connect to a wifi connection via a ssid and password
vinay pant
This example also includes SSID and Password.
ASP.NET Forum
StackOverFlow
FreeRice Donate
Issues to report
Free Tech Books Search and Download
Wednesday, September 21, 2016 4:15 AM
Yes i have seen it sir but it does not allows connecting to a wifi hotsopt although it makes own wifi hotspot and sets a ssid and a password for people to connect.
I really appreciate your help but frankly speaking this is not what i am looking for mr. moneyboy knows the answer and i am still not sure he is helping or not
see i want to connect to a existing wifi hotspot rather then goinf to wifi button and clicking connect i wan to make a desktop utility in which i will be able to connect to wifi by putting ssid and password i tried it my self by using console but i can't figure out how to connect via password
i really thank you for your help
kind regards
vinay pant
Wednesday, September 21, 2016 4:55 AM
i totally agree with you and i understand your point but frankly speaking i tried to do it my self and was unable to do so also i searched on internet but cannot find anything which i could apply or understand out the so many code lines o found the one i have posted above was i understood property that they are using netch command via console and reading data of the available wifi networks but still i cannot find any solution to connect to any wifi host via a password.
not only this i also tried to do this via console using netsh command but i could not find anything on connection via password cause if there exists any code i may have converted it to vb.net code to connect just as above
i know it is not easy cause i think vb.net does not allows direct interaction with the hardware may be c would be the preferred language for this work but i don't want to do this in c ( now i request you please don't say anything why i don't want to use c )
as for your this comment "You admit you don't know much so since you don't know much you decide to get curious because you don't know much and don't research before asking questions on how to do something so far out of your skill level that you would never understand the code unless somebody else had to provide you with step by step information on how it works if you actually wanted to understand it as well as provide it to you."
yes i admit that i don't know much but this doesn't means i am illiterate or doesn't know how to read
every time when you guys help me i don't do just copy paste i break the code and try to understand each line i am not sure weather you will help me or not but all i can do is expect some help from you guys
kind regards
vinay pant