Click here to Skip to main content
15,920,602 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to Get the MSI installer Path Pin
The Man from U.N.C.L.E.30-Nov-09 7:07
The Man from U.N.C.L.E.30-Nov-09 7:07 
GeneralRe: How to Get the MSI installer Path Pin
coolpjmartin9-Dec-09 0:26
coolpjmartin9-Dec-09 0:26 
QuestionFTP Question Pin
Member 470558430-Nov-09 4:03
Member 470558430-Nov-09 4:03 
AnswerRe: FTP Question Pin
Dave Kreskowiak30-Nov-09 7:04
mveDave Kreskowiak30-Nov-09 7:04 
GeneralRe: FTP Question Pin
Member 470558430-Nov-09 7:46
Member 470558430-Nov-09 7:46 
GeneralRe: FTP Question Pin
Dave Kreskowiak30-Nov-09 10:57
mveDave Kreskowiak30-Nov-09 10:57 
GeneralRe: FTP Question Pin
Member 470558430-Nov-09 11:01
Member 470558430-Nov-09 11:01 
AnswerRe: FTP Question Pin
Member 47055841-Dec-09 8:50
Member 47055841-Dec-09 8:50 
can annyone help me???

i need something like:

In form 1 class:
<br />
Dim FileUploadedSuccessfuly As Boolean = True<br />
Dim cls_request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create(remote_file), System.Net.FtpWebRequest)<br />
Dim user_name As String = "root"<br />
Dim password As String = "administrator"<br />
cls_request.Credentials = New System.Net.NetworkCredential(user_name, password)<br />
cls_request.KeepAlive = True<br />
cls_request.Proxy = Nothing<br />
cls_request.Method = System.Net.WebRequestMethods.Ftp.UploadFile<br />
cls_request.UseBinary = True<br />


so that when form is loaded that it connects to server and stay connected

and then in timer:

<br />
If FileUploadedSuccessfuly = True Then<br />
FileUploadedSuccessfuly = False<br />
CatchScreen()<br />
Dim remote_file As String = WORKSERVER & "/" & System.IO.Path.GetFileName("C:\EMON\bin\tmp_" + THISPCUsername + ".jpg").ToString<br />
Dim cls_request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create(remote_file), System.Net.FtpWebRequest)<br />
Dim b_file() As Byte = System.IO.File.ReadAllBytes("C:\EMON\bin\tmp_" + THISPCUsername + ".jpg")<br />
Dim cls_stream As System.IO.Stream = cls_request.GetRequestStream()<br />
cls_stream.Write(b_file, 0, b_file.Length)<br />
cls_stream.Close()<br />
cls_stream.Dispose()<br />
FileUploadedSuccessfuly = True<br />
End If<br />


thats all i need for now! only problem is underlined...

thx, and thanks dave Thumbs Up | :thumbsup: , now i have to do this and then after a month or more i will go redesigning! Poke tongue | ;-P
QuestionVirtual Ketboard in vb.net forms Pin
faravani30-Nov-09 2:27
faravani30-Nov-09 2:27 
AnswerRe: Virtual Ketboard in vb.net forms Pin
dan!sh 30-Nov-09 2:58
professional dan!sh 30-Nov-09 2:58 
GeneralRe: Virtual Ketboard in vb.net forms Pin
faravani30-Nov-09 16:41
faravani30-Nov-09 16:41 
GeneralRe: Virtual Ketboard in vb.net forms Pin
Dave Kreskowiak30-Nov-09 17:09
mveDave Kreskowiak30-Nov-09 17:09 
GeneralRe: Virtual Ketboard in vb.net forms Pin
dan!sh 30-Nov-09 17:50
professional dan!sh 30-Nov-09 17:50 
Questionhow to communicate with a PLC by a visual basic 9 software Pin
Joshua8229-Nov-09 23:32
Joshua8229-Nov-09 23:32 
AnswerRe: how to communicate with a PLC by a visual basic 9 software Pin
DaveAuld29-Nov-09 23:49
professionalDaveAuld29-Nov-09 23:49 
GeneralRe: how to communicate with a PLC by a visual basic 9 software Pin
Joshua8230-Nov-09 2:50
Joshua8230-Nov-09 2:50 
AnswerRe: how to communicate with a PLC by a visual basic 9 software Pin
Luc Pattyn30-Nov-09 1:23
sitebuilderLuc Pattyn30-Nov-09 1:23 
QuestionPrompting user to select point in AutoCad using VB/VB.NET Pin
vijaylumar28-Nov-09 20:01
vijaylumar28-Nov-09 20:01 
AnswerRe: Prompting user to select point in AutoCad using VB/VB.NET Pin
DaveAuld28-Nov-09 22:01
professionalDaveAuld28-Nov-09 22:01 
GeneralRe: Prompting user to select point in AutoCad using VB/VB.NET Pin
vijaylumar29-Nov-09 0:16
vijaylumar29-Nov-09 0:16 
GeneralRe: Prompting user to select point in AutoCad using VB/VB.NET Pin
Tom Deketelaere29-Nov-09 22:47
professionalTom Deketelaere29-Nov-09 22:47 
Questioncreate outlook pst file with vb.net Pin
neverpleat28-Nov-09 11:45
neverpleat28-Nov-09 11:45 
QuestionVB 2005 RANDOM WITH PERCENTAGE Pin
suguimoto28-Nov-09 8:58
suguimoto28-Nov-09 8:58 
AnswerRe: VB 2005 RANDOM WITH PERCENTAGE Pin
Luc Pattyn28-Nov-09 9:34
sitebuilderLuc Pattyn28-Nov-09 9:34 
AnswerRe: VB 2005 RANDOM WITH PERCENTAGE Pin
T210229-Nov-09 0:31
T210229-Nov-09 0:31 

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.