Click here to Skip to main content
15,905,322 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFormal trap with inherited class Pin
Sonhospa19-Oct-08 20:40
Sonhospa19-Oct-08 20:40 
QuestionAnd or combined statement in VB.NET? Pin
User 540919019-Oct-08 13:03
User 540919019-Oct-08 13:03 
AnswerRe: And or combined statement in VB.NET? Pin
Eslam Afifi19-Oct-08 13:52
Eslam Afifi19-Oct-08 13:52 
AnswerRe: And or combined statement in VB.NET? Pin
Anubhava Dimri19-Oct-08 23:28
Anubhava Dimri19-Oct-08 23:28 
AnswerRe: And or combined statement in VB.NET? Pin
Jon_Boy20-Oct-08 3:42
Jon_Boy20-Oct-08 3:42 
QuestionTextBox Scrollbar Pin
Crolus19-Oct-08 8:06
Crolus19-Oct-08 8:06 
AnswerRe: TextBox Scrollbar Pin
Thomas Stockwell20-Oct-08 2:15
professionalThomas Stockwell20-Oct-08 2:15 
QuestionPls help to find the problem Pin
afridy18-Oct-08 9:36
afridy18-Oct-08 9:36 
hai guys, i am using inet to upload a picture to imageshack.
but my code does not work. cant find the problem.
pls help

Private Sub Command1_Click()
    Dim intFile     As Integer  '// Next available number for the Open statement
    Dim ImageData   As String   '// Image contents
    Dim Body        As String   '// Body contents
    Dim Header      As String   '// Header contents

    '// Get the image contents
    imagepath = App.Path & "\" & "test.jpg" ' max 3mb image size limited
    intFile = FreeFile
    Open imagepath For Binary As #intFile
        ImageData = String(LOF(intFile), Chr(0))
        Get #intFile, , ImageData
    Close #intFile

    Body = "Content-Disposition: form-data; name=""fileupload""; filename=""" & vbCrLf
    Body = Body & "Content-Type: multipart/form-data" & vbCrLf
    Body = Body & vbCrLf & ImageData


    Header = "Host: imageshack.us" & vbCrLf
    Header = Header & "Content-Type: multipart/form-data  & vbCrLf"
    Header = Header & "Content-Length: " & Len(ImageData) & vbCrLf & vbCrLf


    'upload now
    Inet.Execute "http://www.imageshack.us", "POST", Body, Header
    
      While Inet.StillExecuting
        DoEvents
      Wend
      
      Dim s$, ret$
      
      s = Inet.GetChunk(1024)
      Do Until s = ""
        ret = ret & s
        s = Inet.GetChunk(1024)
      Loop
      
      'check upload completed
      If InStr(1, ret, "Show Advanced Linking") > 0 Then MsgBox "upload completed"
  End Sub

AnswerRe: Pls help to find the problem Pin
Mycroft Holmes18-Oct-08 17:31
professionalMycroft Holmes18-Oct-08 17:31 
AnswerRe: Pls help to find the problem Pin
EliottA19-Oct-08 5:04
EliottA19-Oct-08 5:04 
GeneralRe: Pls help to find the problem Pin
afridy19-Oct-08 5:16
afridy19-Oct-08 5:16 
GeneralRe: Pls help to find the problem Pin
EliottA19-Oct-08 5:20
EliottA19-Oct-08 5:20 
GeneralRe: Pls help to find the problem Pin
afridy19-Oct-08 5:35
afridy19-Oct-08 5:35 
GeneralRe: Pls help to find the problem Pin
afridy19-Oct-08 5:20
afridy19-Oct-08 5:20 
QuestionDid Charset.Auto use a unicode or ansi string version of the dll? Pin
Duncan Edwards Jones18-Oct-08 7:48
professionalDuncan Edwards Jones18-Oct-08 7:48 
AnswerRe: Did Charset.Auto use a unicode or ansi string version of the dll? Pin
Dave Kreskowiak19-Oct-08 5:42
mveDave Kreskowiak19-Oct-08 5:42 
QuestionVB.NET Pin
onlyehtisham18-Oct-08 7:23
onlyehtisham18-Oct-08 7:23 
AnswerRe: VB.NET PinPopular
Paul Conrad18-Oct-08 7:41
professionalPaul Conrad18-Oct-08 7:41 
GeneralRe: VB.NET Pin
onlyehtisham18-Oct-08 7:46
onlyehtisham18-Oct-08 7:46 
GeneralRe: VB.NET PinPopular
Paul Conrad18-Oct-08 7:48
professionalPaul Conrad18-Oct-08 7:48 
GeneralRe: VB.NET Pin
csciwizard18-Oct-08 8:39
csciwizard18-Oct-08 8:39 
GeneralRe: VB.NET Pin
Paul Conrad18-Oct-08 8:42
professionalPaul Conrad18-Oct-08 8:42 
QuestionUDP Async Send Receive Timeout Issues Pin
ozoid18-Oct-08 4:05
ozoid18-Oct-08 4:05 
QuestionWindows forms and Console window problem. Pin
LloydA11118-Oct-08 3:49
LloydA11118-Oct-08 3:49 
AnswerRe: Windows forms and Console window problem. Pin
Dave Kreskowiak18-Oct-08 5:37
mveDave Kreskowiak18-Oct-08 5:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.