Usare textbox per log [vb6][santi caltabiano].txt   blocco note
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Usare textbox per log [vb6][santi caltabiano].txt blocco note

on

  • 459 views

Usare textbox per log [vb6][santi caltabiano].txt blocco note

Usare textbox per log [vb6][santi caltabiano].txt blocco note

Statistics

Views

Total Views
459
Views on SlideShare
459
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Usare textbox per log [vb6][santi caltabiano].txt blocco note Document Transcript

  • 1. Usare textbox per log [VB6][Santi Caltabiano].txtUSARE TEXTBOX PER LOG1) Creare un nuovo progetto2) Aggiungere al form una textbox a] Rinominare in txtLog b] Impostare Multiline=true c] Impostare ScrollBars=3-Both d] Impostare forecolor e backcolor (ad esempio nero e verde)3) Utilizzare la seguente routine per scrivere nel log---------------------------------------------------------------------------------------------------- Private Function logWrite(ByVal v As String, Optional ByVal addCR As Boolean= True) If Len(txtLog.Text) > 64000 Then txtLog.Text = Right(txtLog.Text, 63000) End If Accoda codice return txtLog.SelText = v & IIf(addCR, vbCrLf, "") porta il curosore alla fine txtLog.SelStart = Len(txtLog.Text) End Function---------------------------------------------------------------------------------------------------- Pagina 1