Click here to Skip to main content
15,880,972 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Count char in string? Pin
Chris Quinn23-Aug-18 3:19
Chris Quinn23-Aug-18 3:19 
QuestionAlternative to FileCopy in Visual Basic 6 for 2GB files up Pin
paolo71xx21-Aug-18 6:58
paolo71xx21-Aug-18 6:58 
AnswerRe: Alternative to FileCopy in Visual Basic 6 for 2GB files up Pin
Dave Kreskowiak21-Aug-18 8:09
mveDave Kreskowiak21-Aug-18 8:09 
GeneralRe: Alternative to FileCopy in Visual Basic 6 for 2GB files up Pin
paolo71xx21-Aug-18 8:28
paolo71xx21-Aug-18 8:28 
GeneralRe: Alternative to FileCopy in Visual Basic 6 for 2GB files up Pin
Dave Kreskowiak21-Aug-18 9:25
mveDave Kreskowiak21-Aug-18 9:25 
GeneralRe: Alternative to FileCopy in Visual Basic 6 for 2GB files up Pin
paolo71xx21-Aug-18 10:04
paolo71xx21-Aug-18 10:04 
GeneralRe: Alternative to FileCopy in Visual Basic 6 for 2GB files up Pin
Dave Kreskowiak21-Aug-18 10:11
mveDave Kreskowiak21-Aug-18 10:11 
GeneralRe: Alternative to FileCopy in Visual Basic 6 for 2GB files up Pin
paolo71xx23-Aug-18 2:25
paolo71xx23-Aug-18 2:25 
I writ in italian(with percentage):
private Sub Form_Load()
'KPD-Team 2001
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
Dim Ret As Long
'set the graphics mode to persistent
Me.AutoRedraw = True
'print some text
Me.Print "Click the form to abort the filecopy"
'show the form
Me.Show
'start copying
Ret = CopyFileEx("c:\verybigfile.ext", "c:\copy.ext", AddressOf CopyProgressRoutine, ByVal 0&, bCancel, COPY_FILE_RESTARTABLE)
'show some text
Me.Print "Filecopy completed " + IIf(Ret = 0, "(ERROR/ABORTED)", "successfully")
End Sub
Private Sub Form_Click()
'cancel filecopy
bCancel = 1
End Sub


'in a module
Public Const PROGRESS_CANCEL = 1
Public Const PROGRESS_CONTINUE = 0
Public Const PROGRESS_QUIET = 3
Public Const PROGRESS_STOP = 2
Public Const COPY_FILE_FAIL_IF_EXISTS = &H1
Public Const COPY_FILE_RESTARTABLE = &H2
Public Declare Function CopyFileEx Lib "kernel32.dll" Alias "CopyFileExA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal lpProgressRoutine As Long, lpData As Any, ByRef pbCancel As Long, ByVal dwCopyFlags As Long) As Long
Public bCancel As Long
Public Function CopyProgressRoutine(ByVal TotalFileSize As Currency, ByVal TotalBytesTransferred As Currency, ByVal StreamSize As Currency, ByVal StreamBytesTransferred As Currency, ByVal dwStreamNumber As Long, ByVal dwCallbackReason As Long, ByVal hSourceFile As Long, ByVal hDestinationFile As Long, ByVal lpData As Long) As Long
'adjust the caption
Form1.Caption = CStr(Int((TotalBytesTransferred * 10000) / (TotalFileSize * 10000) * 100)) + "% complete..."
'allow user input
DoEvents
'continue filecopy
CopyProgressRoutine = PROGRESS_CONTINUE
End Function

Trovato qui(restituisce pure la percentuale) https://www.experts-exchange.com/questions/20743248/Problem-Writing-Reading-a-File-2GB-HELP.html

testato con 10 gb di piu' fatelo voi ma dovrebbe funzionare,mi fido!!!!
QuestionThe Problem in Update Command with Table Adapter VB.net Pin
Member 128130745-Aug-18 18:29
Member 128130745-Aug-18 18:29 
AnswerRe: The Problem in Update Command with Table Adapter VB.net Pin
CHill606-Aug-18 1:54
mveCHill606-Aug-18 1:54 
AnswerRe: The Problem in Update Command with Table Adapter VB.net Pin
Richard MacCutchan6-Aug-18 3:10
mveRichard MacCutchan6-Aug-18 3:10 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130746-Aug-18 15:55
Member 128130746-Aug-18 15:55 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Richard MacCutchan6-Aug-18 20:54
mveRichard MacCutchan6-Aug-18 20:54 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Dave Kreskowiak7-Aug-18 6:14
mveDave Kreskowiak7-Aug-18 6:14 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 15:37
Member 128130747-Aug-18 15:37 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 22:57
Member 128130747-Aug-18 22:57 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 18:02
Member 128130747-Aug-18 18:02 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Richard MacCutchan7-Aug-18 20:56
mveRichard MacCutchan7-Aug-18 20:56 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 22:27
Member 128130747-Aug-18 22:27 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Richard MacCutchan7-Aug-18 22:35
mveRichard MacCutchan7-Aug-18 22:35 
GeneralRe: The Problem in Update Command with Table Adapter VB.net Pin
Member 128130747-Aug-18 22:53
Member 128130747-Aug-18 22:53 
Questioni want to do a car park booking system in vb, i use picbox to let user click, my questions is, how to link picbox to sql 2014, i means i need to know what picbox user selected, and it will auto record to sql 2014 Pin
Member 139364602-Aug-18 21:19
Member 139364602-Aug-18 21:19 
AnswerRe: i want to do a car park booking system in vb, i use picbox to let user click, my questions is, how to link picbox to sql 2014, i means i need to know what picbox user selected, and it will auto record to sql 2014 Pin
Richard MacCutchan2-Aug-18 21:50
mveRichard MacCutchan2-Aug-18 21:50 
AnswerRe: i want to do a car park booking system in vb, i use picbox to let user click, my questions is, how to link picbox to sql 2014, i means i need to know what picbox user selected, and it will auto record to sql 2014 Pin
Eddy Vluggen2-Aug-18 22:24
professionalEddy Vluggen2-Aug-18 22:24 
Questionhow to display user data after login in vb Pin
Member 139364602-Aug-18 21:12
Member 139364602-Aug-18 21:12 

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.