Search results for query: *

  • Users: huhhuhhuh
  • Content: Threads
  • Order by date
  1. H

    DB hardcoded?

    I read and followed various faqs regarding deployment and everything works fine accept that the newly installed app will only access the database at the original pre-deployment location, not the new install folder. Don't the database connectionstrings get converted or modified after deployment...
  2. H

    Parse string

    Dim strRetPage As [String] = Nothing strRetPage = strRetPage + Encoding.ASCII.GetString(buffbyte, 0, rBytes) While rBytes > 0 rBytes = IPsocket.Receive(buffbyte, buffbyte.Length, 0) strRetPage = strRetPage + Encoding.ASCII.GetString(buffbyte, 0, rBytes) End While...
  3. H

    Listening Loop

    mylistener = New TcpListener(MyIp.Any, Port) mylistener.Start() While True If Not mylistener.Pending Then Console.WriteLine("Awaiting Requests") Else listenerThread = New Threading.Thread(AddressOf listen) Console.WriteLine("Accepting Request") listenerThread.Start() End If End While I'm...
  4. H

    Overloading

    I refer to the code by Pramod Singh at http://www.vbdotnetheaven.com/Code/Aug2003/2146.asp I've converted most of it into a class. How can I implement it so that I can create a new instance of it in a form? I tried overloading New Sub but got some kind of warning instead.
  5. H

    Passing arrays

    How can i pass arrays to a class? I tried passing it to my global class but seem to have a problem assigning it to a property.
  6. H

    Client IP

    Suppose I've accepted a request using tcpclient=tcplistener.accepttcpclient How do I get the IP address of the client/source of the request? What format should I store it in?
  7. H

    DB access outside form

    I've been creating and managing database connections in forms using drag and drop items to this point. What I want to know is what do I need to achieve this outside a form, say a class. For instance in my class, I import the dataset from the main form. Then I assign these imported datasets...
  8. H

    Listbox items to string array

    How can I read all items in a listbox into a string array; eg. item1 into array(0), item2 into array(1) so forth?
  9. H

    GetItemText

    Dim strtemp As String = list2.GetItemText(list1.FindStringExact(surl)).ToString I want to get the text of an item in list2 at the index of where surl was found in list1. The above code doesn't seem to be working. Any ideas?
  10. H

    IE proxy settings

    Is there any way to manipulate browser or IE proxy settings from an application?
  11. H

    Can't write to text file

    Dim strconf As String = "config.txt" strcont = "Settings" writefile(strcont, strconf) If Setting1() = 1 Then strcont = "Setting=True" writefile(strcont, strconf) I'm calling a function to write into a text file. The first statement gets written but the statement in the if block and all...
  12. H

    tcplistener not working

    I've implemented a tcplistener listening on port 8080 in my application. It doesn't seem to work. Do browsers send http requests to ports other than 80 or am I doing something wrong? Based on what I can understand from the sample code here, upon intercepting a request using tcplistener, the...
  13. H

    Controls disappearing

    I opened my VB.NET project and all of a sudden, all of the controls on the form were gone. I tried running it and the form opens normally with all the controls and stuff showing up like they normally do after my login screen. The only difference is a whole bunch of errors cropping up stating...
  14. H

    Proxy app

    I've been looking at sample code using sockets and TcpListener. They all demonstrate how to write data in a stream to a console. Is it possible to implement this so that I can read the URL and content of an IE request, modify the content, and return it to the browser? Will all IE http...
Back
Top