vb學(xué)了有什么用 如何設(shè)VB中的窗體屬性為只讀?
如何設(shè)VB中的窗體屬性為只讀?將整個(gè)項(xiàng)目和所有相關(guān)文件設(shè)置為只讀setattr“file path write here”,vbhidden“Set as hidden setattr“file pa
如何設(shè)VB中的窗體屬性為只讀?
將整個(gè)項(xiàng)目和所有相關(guān)文件設(shè)置為只讀
setattr“file path write here”,vbhidden“Set as hidden setattr“file path write here”,vbreadonly“Set as read-only setattr“file path write here”,vbhidden vbreadonly“Set as hidden read-only setattr“file path write here”,vbsystem“設(shè)為系統(tǒng)文件”您還可以使用數(shù)字:setattr“file path write here”,2“設(shè)為隱藏setattr“file path write here”,1“設(shè)為只讀setattr“file path write here”,3“設(shè)為隱藏只讀setattr“file path write here”,4“設(shè)為系統(tǒng)文件
setattr文件名,vbnormal filename是要修改的文檔的路徑
vbnormal:刪除只讀屬性
還可以添加其他屬性,例如:
setattr“C:1。TXT”,vbhidden或vbsystem