Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Event on Scrolling to the end in flowlayoutpanel Pin
Luc Pattyn29-Jun-12 2:56
sitebuilderLuc Pattyn29-Jun-12 2:56 
JokeRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten29-Jun-12 3:01
Nick Otten29-Jun-12 3:01 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Luc Pattyn29-Jun-12 4:19
sitebuilderLuc Pattyn29-Jun-12 4:19 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten29-Jun-12 4:31
Nick Otten29-Jun-12 4:31 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad29-Jun-12 8:28
Ammar_Ahmad29-Jun-12 8:28 
AnswerRe: Event on Scrolling to the end in flowlayoutpanel Pin
Luc Pattyn29-Jun-12 9:00
sitebuilderLuc Pattyn29-Jun-12 9:00 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad30-Jun-12 0:08
Ammar_Ahmad30-Jun-12 0:08 
QuestionHelp for FTP client upload Pin
mikrophun27-Jun-12 21:01
mikrophun27-Jun-12 21:01 
Hi everyone,

I am currently working on developing some code for transfer file from one pc to another. As I read in lot of article, those work can be done by FTP concept.

I'm using win7 and VB.NET 2010

I've got some simple source code for uploading a file, but I'm experiencing a problem which describe below

VB
System.ArgumentNullException was unhandled
  Message=Value cannot be null.
Parameter name: type
  ParamName=type
  Source=mscorlib


it's refers to:
ITCObject = Activator.CreateInstance(ITC)


Here are the source code:
Imports System.IO
Imports System.Reflection
Imports System.Threading

Public Class Main

    Private Sub btnBrowse_Click(ByVal sender As System.Object, e As System.EventArgs) Handles btnBrowse.Click
        OpenFileDialog.ShowDialog()
        tbFile.Text = OpenFileDialog.FileName
    End Sub

    Private Sub btnUpload_Click(ByVal sender As System.Object, e As System.EventArgs) Handles btnUpload.Click
        Dim thisFile As FileInfo = New FileInfo(tbFile.Text)
        Dim ITC As Type
        Dim parameter() As Object = New Object(1) {}
        Dim ITCObject As Object
        ITC = Type.GetTypeFromProgID("InetCtls.Inet")
        ITCObject = Activator.CreateInstance(ITC)
        parameter(0) = CType(tbRemoteServer.Text, String)
        parameter(1) = CType("PUT " + thisFile.FullName + " /" + thisFile.Name, String)
        ITC.InvokeMember("execute", BindingFlags.InvokeMethod, Nothing, ITCObject, parameter)
    End Sub
End Class



is there anyone could help me to resolve this problem.

Thx,
Phann
AnswerRe: Help for FTP client upload Pin
Bernhard Hiller27-Jun-12 21:37
Bernhard Hiller27-Jun-12 21:37 
GeneralRe: Help for FTP client upload Pin
mikrophun27-Jun-12 21:42
mikrophun27-Jun-12 21:42 
GeneralRe: Help for FTP client upload Pin
mikrophun27-Jun-12 22:27
mikrophun27-Jun-12 22:27 
AnswerRe: Help for FTP client upload Pin
Eddy Vluggen28-Jun-12 1:55
professionalEddy Vluggen28-Jun-12 1:55 
AnswerRe: Help for FTP client upload Pin
mikrophun28-Jun-12 17:40
mikrophun28-Jun-12 17:40 
QuestionBasic program, very basic code, but still error, why!. [rich text box] Pin
Student1023027-Jun-12 20:55
Student1023027-Jun-12 20:55 
AnswerRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Bernhard Hiller27-Jun-12 21:39
Bernhard Hiller27-Jun-12 21:39 
GeneralRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Student1023027-Jun-12 23:33
Student1023027-Jun-12 23:33 
GeneralRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Dave Kreskowiak28-Jun-12 1:48
mveDave Kreskowiak28-Jun-12 1:48 
AnswerRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Eddy Vluggen28-Jun-12 1:49
professionalEddy Vluggen28-Jun-12 1:49 
GeneralRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Dave Kreskowiak28-Jun-12 3:25
mveDave Kreskowiak28-Jun-12 3:25 
GeneralRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Eddy Vluggen28-Jun-12 3:30
professionalEddy Vluggen28-Jun-12 3:30 
GeneralRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Luc Pattyn28-Jun-12 5:07
sitebuilderLuc Pattyn28-Jun-12 5:07 
GeneralRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Eddy Vluggen28-Jun-12 8:27
professionalEddy Vluggen28-Jun-12 8:27 
GeneralRe: Basic program, very basic code, but still error, why!. [rich text box] Pin
Luc Pattyn28-Jun-12 8:37
sitebuilderLuc Pattyn28-Jun-12 8:37 
QuestionProblem in creating a new file format to store text and images Pin
Student1023026-Jun-12 21:12
Student1023026-Jun-12 21:12 
AnswerRe: Problem in creating a new file format to store text and images Pin
Richard MacCutchan26-Jun-12 21:54
mveRichard MacCutchan26-Jun-12 21:54 

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.