| | |
set attributes
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
see this following code :
needed 4 check box, 1 textbox and 2 button.
Hope this helps...
needed 4 check box, 1 textbox and 2 button.
vb Syntax (Toggle Plain Text)
Dim NamaFile As String Private Sub Command1_Click() Cmd.Filter = "All Files|*.*" Cmd.DialogTitle = "Select Target" Cmd.ShowOpen NamaFile = Cmd.FileName Text1.Text = NamaFile End Sub Private Sub Command2_Click() Dim NilaiAttributes As Byte If NamaFile <> "" Then NilaiAttributes = (Check1.Value * 2) + (Check2.Value * 4) + _ (Check3.Value * 1) + (Check1.Value * 32) SetAttr NamaFile, NilaiAttributes MsgBox "Set attributes successfull", vbInformation, "Setting Attributes" End If End Sub Private Sub Text1_Change() NamaFile = Text1.Text End Sub Private Sub Text1_GotFocus() NamaFile = Text1.Text End Sub
Hope this helps...
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Similar Threads
- Set, View, Change, or Remove Special Permissions for Files and Folders in Windows XP (Windows tips 'n' tweaks)
- How to Set permissions: e.g chmod 755 on FTP Program (Windows Software)
- How to set html page size attributes (HTML and CSS)
- Folder wont delete (Windows NT / 2000 / XP)
- Frame detection possible? (HTML and CSS)
- how to load an image to a form (Visual Basic 4 / 5 / 6)
- how to set file access time (C)
- File Attributes (Visual Basic 4 / 5 / 6)
- Attributes (Java)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Whats Tabel Using ???
- Next Thread: Stop a program from becoming unresponsive
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






