Jump to content
Xtreme .Net Talk

c3b12

Members
  • Posts

    5
  • Joined

  • Last visited

c3b12's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I've built a contrôle inheriting from Panel and associated with a ParentControlDesigner. I would like to force the SnapToGrid property using the PrefilterProperties method (shadowing it if possible from the properties browser). Thank you for your help
  2. I'm writing a dll which runs with an .avi file. This file is in a specified directory. But to use my dll I must include the file (like a .ico in a form header) How can I do? If I have to use a ressource file, how? Thank your for your help
  3. Yes I've tried this. Here is my original code: Dim hwrRequête As HttpWebRequest Dim hwrRéponse As HttpWebResponse Dim hwrFlux As Stream Dim fsrFlux As FileStream Dim octTampon(999) As Byte Dim intLecture As Integer fsrFlux = New FileStream(m_strFichierCible, FileMode.Create) hwrRequête = CType(WebRequest.Create(m_strURL), HttpWebRequest) hwrRéponse = CType(hwrRequête.GetResponse, HttpWebResponse) hwrFlux = hwrRequête.GetResponse.GetResponseStream Do intLecture = hwrFlux.Read(octTampon, 0, 1000) fsrFlux.Write(octTampon, 0, intLecture) Loop Until intLecture = 0 If Not hwrFlux Is Nothing Then hwrFlux.Close() If Not fsrFlux Is Nothing Then fsrFlux.Close() I now know that I have a Proxy to go through. The exception message I got is the following: "The underlying connection was closed: the remote name could not be resolved" My pb is that I don't know the name of the proxy. Instead I have to support an automatic configuration script. If I read the Internet Lan Settings, I have: http://xxxx.yy:8080/cfg as the script.
  4. The tool I'm writing must have the ability to download any file from the Internet and save it.
  5. Can somebody help me on this issue? How to download a file with WebRequest and GetResponse when your are using (compagny security policy) an automatic configuration script (http://xxxx.yy:8080/cfg) to access Internet. (It works with the Wininet API functions but I'm looking for managed code)
×
×
  • Create New...