Successful Winsock Program But Noticed That There Is Alternative Way Of Creating Connections
Mar 11, 2011
So I was looking around the forums for how to do a successful Winsock program but noticed that there is an alternative way of creating connections, using system.net.sockets. Would you guys say that system.net.sockets has replaced Winsock? Is there a particular one that is better than the other?
View 3 Replies
ADVERTISEMENT
May 17, 2010
I am developing project on cyber cafe using vb .net 2005 and winsock i don't know how to accept connections from multiple clients to a server having winsock control
View 2 Replies
Aug 26, 2010
I need to create/get a simple program that opens up a webpage, writes to a log if it is successful or not, logs out and repeats 5 minutes later.I'm not a coder myself, and I have no coders available at my work, I do on the otherhand have access to Visual Basic .NET 2010.
View 5 Replies
Oct 2, 2009
what i am doing is downloading headers from a web server using a tcpclient which works great the headers describe diffrent files and there are hundreads per file, if i download the headers and write them to a text file using a streamwriter it works great, but i need the headers to be in a text file depending on the name of the file in the header, so i need them grouped together, i am now using streamwriter to write the headers to seperate textfiles depending on the filename in the header but it is reallllyyyy slow for some reason, im not sure if it is because it has to load each file then write to it? i only have to append the new header to the end of the text file i dont have to open it up and read through it.
View 8 Replies
Aug 25, 2011
i have added a winsock control to my program. I know that vb 2008 dosent really support winsock no more but its needed for my project.Anyways i have form1 with a button that does "form2.show"This works as it should and opens form2 but when i add a winsock control to form2 then i get this error when i click the button to show form2
"An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
I dont get it, there are no classes apart from the form class.
View 8 Replies
Nov 1, 2009
How to add winsock listener in Vb 2008
View 1 Replies
Apr 16, 2011
how can i make claint/server program without winsocet
View 1 Replies
Jul 19, 2011
Using VB.Net and SQL Server 2008 R2: I have recently had a database that using sp_who2 reflects a connection ".Net SqlClient Data Provider" is still active even though the .Net application has closed and disposed of all connections.
[Code]...
View 1 Replies
May 18, 2010
if i create a chat program and use winsock to connect me and my friend would my friend have to download MSWINSCK.OCX to run the application?
View 2 Replies
Sep 6, 2009
I am trying to code a client - server program. I have 4 winsock controls on my main form. The client is able to connect to a free one just fine, and can figure out if they are all in use. When testing my program, I found that when I try to send data through a socket, then send different data directly after, it jumbles the data together.
CODE:
That is the code I am using. When the client is connected to the server, and ready for data, it sends the packet "@Ab". When the server receives this packet, It is supposed to send the welcome alert, and then current events posted in the server.
On the client side, there is a message box that is supposed to show the welcome alert, and at the bottom on a status strip, the current events are supposed to be listed.
When the welcome alert shows, it contains the alert text fine, but then shows the packet for the events after it.
View 3 Replies
Jul 18, 2012
Im planning to create a Remote Desktop Application and I'm having problem with viewing other computers monitor or screen.
Im not asking for the code on how to do it. and one more thing is it safe to use winsock in creating a client/server application?
View 3 Replies
Jan 12, 2010
I wrote application which displays tcp connections to the PC, but how can i terminate them? [code]...
View 2 Replies
Sep 3, 2010
im trying to create a simple program that send string data through winsock, there are hundresd of tutorials allover the web, but non of them seem to work! I am fairly new to visual basics but i undersatnd the consept of winsock and 'all that stuff'. [code]
View 5 Replies
Aug 5, 2009
Add a new report to a windows forms project. Now add the table data region from the tools. If you don't already have a strongly typed dataset displayed in the data sources view, get that ready. Now do the tried and true easy-to-use trick of dragging a field from data sources onto the table's details row.
[Code]...
View 3 Replies
May 20, 2010
I have noticed that a form's keydown method has a slight delay the first time you hold a button. How do I get rid of it?
View 3 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
Feb 9, 2010
I am using a MS Access database as the backend of my VB.NET application. I am entering users details into the database using an INSERT INTO statement:
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & config("DatabasePath") & ";")
cn.Open()cmd = New OleDbCommand("INSERT INTO blah blah blah...", cn)
dr = cmd.ExecuteReader
[Code]...
View 3 Replies
Nov 30, 2010
database - Checking if INSERT INTO statement was successful
View 11 Replies
Jun 4, 2012
I've been at this for a bit now, and I have tried using google extensively. I have my application set up: it is a HWID System available only to paid subscribers. I want buyers to be able to click on a 'buy now button', and once they successfully pay it automatically adds their information into the database the app uses. This way there is no waiting after payments. I know this is possible, because I've seen it done before - I just can't seem to find how it works?
View 1 Replies
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
Nov 8, 2011
What I've done so fa
Private Sub LogInToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles LogInToolStripMenuItem.Click
Try
[code].....
View 1 Replies
Mar 14, 2011
Data exported to Excel in Two sheet for successful code without Error?
Dim ComDset As New
DataSet
Dim ComDset1 As New
DataSet
[code].....
View 1 Replies
Mar 18, 2012
I have to design a form that analyzes a poker hand entered by the user in the textbox and then the listbox has to display the type of hand entered. for example, four of a kind, three of a kind, a pair, a flush, a straight if ace is low, an ace-high straight that is the sequence 10 j q k a, etc.I have no idea where and how to start the coding.i am really stuck..
View 9 Replies
Jun 8, 2009
I am creating a program for a camp that I run. I want to install it on several computers and they all share the same database. It needs to be a local database because our network isn't connected to the internet. I want to keep track of student records, staff records, and finances. I also want it to be password protected with certain features avaliable to only authroized users.
View 15 Replies
Mar 23, 2012
Alright I am just starting out with Visual Basic and I am trying to figure out how I would go about doing this. I have the general idea of how I want it to be done but I am not sure of what code I need to use. What I want to do is be able to type in Text box 1 and copy whatever I type into Text box 2. But I also want to be able to send it to anyone else with the program that are listening for a connection. I also want to be able to show the IP address in Text box 3 that the computer is using at the time.
Public Class Form1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
[code].....
View 9 Replies