open file directory in vb net

Tài liệu Tạo file upload với VB.NET pptx

Tài liệu Tạo file upload với VB.NET pptx

Ngày tải lên : 19/01/2014, 02:20
... valid file If (Not File1 .PostedFile Is Nothing) _ And (File1 .PostedFile.ContentLength > 0) Then 'determine file name Dim sFileName As String = _ System.IO.Path.GetFileName (File1 .PostedFile.FileName) ... System.IO.Path.GetFileName (File1 .PostedFile.FileName) Try If File1 .PostedFile.ContentLength <= lMaxFileSize Then 'save file on disk File1 .PostedFile.SaveAs(sFileDir + sFileName) lblMessage.Visible ... trang mã .vb thủ tục sau: Private Sub DeleteFile(ByVal strFileName As String) If strFileName.Trim().Length > 0 Then Dim fi As New FileInfo(strFileName) If (fi.Exists) Then 'if file...
  • 7
  • 697
  • 0
Tài liệu VB .NET Language in a Nutshell pdf

Tài liệu VB .NET Language in a Nutshell pdf

Ngày tải lên : 09/12/2013, 17:15
... Function File Class File. Exists Method FileAttr Function FileClose Procedure FileCopy Procedure FileDateTime Function FileGet, FileGetObject Procedures FileLen Function FileOpen Procedure ... 2.4.4 Arrays in VB .NET 65 2.5 Object Variables and Their Binding 67 2.5.1 Late Binding Versus Early Binding 68 2.6 The Collection Object 69 2.7 Parameters and Arguments 70 2.7.1 Passing Arguments ... major Office applications. However, VBA is not the programming language for VB .NET. Indeed, until VB .NET is incorporated into a release of Microsoft Office for .NET, the two languages will differ...
  • 670
  • 708
  • 0
Tài liệu Hướng dẫn lập trình VB.NET Chương 12: Khám phá cách xử lý file văn bản và chuỗi pptx

Tài liệu Hướng dẫn lập trình VB.NET Chương 12: Khám phá cách xử lý file văn bản và chuỗi pptx

Ngày tải lên : 12/12/2013, 23:15
... *.TXT" OpenFileDialog1.ShowDialog() If OpenFileDialog1.FileName <> "" Then Try FileOpen(1, OpenFileDialog1.FileName, OpenMode.Input) Do Until EOF(1) line = LineInput(1) ... *.TXT" OpenFileDialog1.ShowDialog() If OpenFileDialog1.FileName <> "" Then Try FileOpen(1, OpenFileDialog1.FileName, OpenMode.Input) Do Until EOF(1) line = LineInput(1) ... SaveToolStripMenuItem_Click : OpenFileDialog1.Filter = "TEXT FILES (*.TXT) | *.TXT" OpenFileDialog1.ShowDialog() If OpenFileDialog1.FileName <> "" Then Try FileOpen(1, OpenFileDialog1.FileName,...
  • 19
  • 787
  • 5
Tài liệu Hướng dẫn lập trình VB.NET Chương 18: Làm việc với máy in pdf

Tài liệu Hướng dẫn lập trình VB.NET Chương 18: Làm việc với máy in pdf

Ngày tải lên : 22/12/2013, 20:17
... "" Then FilePath = OpenFileDialog1.FileName Try 'Đọc nội dụng file vào rxtDocument Dim myFileStream As New FileStream _ (FilePath, FileMode .Open) rxtDocument.LoadFile(myFileStream, ... dùng khi in trang, biến PrintPageSetting để thiết đặt trang in, biến StringToPrint để đọc d òng in, biến PrintFont để thiết đặt font chữ. Tạo thủ tục btnOpen_Click để mở file ra đọc: Dim FilePath ... thì có thể vừa 1 dòng in e.Graphics.MeasureString(StringToPrint, PrintFont, _ kichthuoc, chuoidinhdang, sokytu, sodong) chuoiin = StringToPrint.Substring(0, sokytu) &apos ;In chu ỗi trên trang...
  • 16
  • 613
  • 3
Hướng dẫn lập trình VB .NET

Hướng dẫn lập trình VB .NET

Ngày tải lên : 16/08/2012, 15:07
... Visual Studio .NET Beta 2 Visual Studio .NET nằm trong 3 CDs, gồm có 4 files: • EN_VS _NET_ BETA2_WINCUP.exe • EN_VS _NET_ BETA2_CD1.exe • EN_VS _NET_ BETA2_CD2.exe • EN_VS _NET_ BETA2_CD3.exe ... ListBox1.Items.RemoveAt(ListBox1.FindString(LItem)) End Sub Khi Load data vào Listbox ta dùng StreamReader để Open một File as Input. Khi Save data của Listbox vào một Text file ta dùng StreamWriter để Open một File as ... nên nó khác VB6 nhiều lắm. Dầu vậy, đối với VB6 programmers học VB. NET không khó. Lý do là VB. NET không cho thêm nhiều từ mới (reserved words). Nói chung các ý niệm mới trong VB. NET đều dễ...
  • 133
  • 1.5K
  • 8
Tìm hiểu về VB. net 3

Tìm hiểu về VB. net 3

Ngày tải lên : 23/11/2012, 08:12
... HIỂU VỀ VB. NET SVTH:TRẦN THỊ THÊM 23 ĐỒ ÁN CHUYÊN NGHÀNH GVHD: ĐOÀN VĂN THẮNG LỜI MỞ ĐẦU  VB. NET là một trong 25 ngôn ngữ lập trình của .NET được cung cấp bởi .NET Framework và CLR.  VB. NET ... dụ: Dim int YO as Integer int YO=int 32.Parse(textbox1.text) select Case intYO Case intYO<18 messageBox.show ("ban chua den tuoi " &"vi thanh nien") Case intYO<25 ... VB. NET SVTH:TRẦN THỊ THÊM 13 ĐỒ ÁN CHUYÊN NGHÀNH GVHD: ĐOÀN VĂN THẮNG TÀI LIỆU THAM KHẢO <1> Giáo trình:Từng bước tự học lập trình Vb. Net NGô Phương Lan <2> Học VB. Net 2005 qua winforms <3>...
  • 46
  • 862
  • 6
Quality of Service in IP Networks

Quality of Service in IP Networks

Ngày tải lên : 06/04/2013, 11:05
... flows sending large packets get more l cost of flow classification Queue Management 3 Improving QOS in IP Networks o IETF groups are working on proposals to provide better QOS control in IP networks, ... policing) o More details in Network Calculus course Queue Management 2 Contents o Principles o Traffic shaping l leaky bucket l token bucket o Scheduling strategies l FIFO l Priority l Round Robin l ... dropped queue transmission packets Queue Management 20 Fair Queueing o Round robin "bit per bit" l each packet marked with the transmission instant of the last bit l served in the order of instants flow 1 flow 2 flow 3 temps Queue...
  • 26
  • 456
  • 0
Question Bank  VB .net

Question Bank VB .net

Ngày tải lên : 09/04/2013, 09:10
... updating of the original string. c) results in a new String being created to store the changed value, while the original string is destroyed. b) results in a new String being created to store ... execute 35. Dim Counter As Integer = 0 [1.5] c) 32 7. ______data type in VB .net can hold any type of data [0.5] a) Numeric d) Variant b) String e) Object c) Char 8. In VB .net, a long is _________bits ... (ByVal t1 as integer) 4. Handles Obj1.MyEvent, Obj2.MyEvent 5. System.Console.WriteLine (Info) 6. End Sub Identify the error in the above code. [1.5] a) Line 1 d) Line 4 b) Line 2 e) There...
  • 29
  • 428
  • 0
QUẢN LÝ THƯ VIỆN TRÊN VB.NET

QUẢN LÝ THƯ VIỆN TRÊN VB.NET

Ngày tải lên : 25/04/2013, 19:12
... (System.Int32) Long Integers 8 bytes (System.Int64) Single Floating-ppints 4 bytes với decimal point (System.Single) Double Floating-ppints 8 bytes (System.Doublel) Decimal Floating-ppints 12 ... VÍ DỤ VỀ VB. NET: Xây dựng một ứng dụng đơn giản với application windows. ĐỀ TÀI:TÌM HIỂU VỀ VB. NET SVTH:TRẦN THỊ THÊM Những khác biệt cơ bản giữa VB. Net với VB6 TIÊU CHÍ SO SÁNH VB6 VB. Net Tính ... ngay. 'Databinding 1) txtSTT.DataBindings.Add("Text", dt, "STT") ‘ Ở đây ta cần binding textbox txtSTT với giá trị Text ở cột STT của Table txtName.DataBindings.Add("Text",dt,"Name")...
  • 47
  • 2.5K
  • 12
XÂY DỰNG BÀI TOÁN QUẢN LÝ THƯ VIỆN TRÊN VB.NET

XÂY DỰNG BÀI TOÁN QUẢN LÝ THƯ VIỆN TRÊN VB.NET

Ngày tải lên : 28/04/2013, 18:48
... (System.Int32) Long Integers 8 bytes (System.Int64) Single Floating-ppints 4 bytes với decimal point (System.Single) Double Floating-ppints 8 bytes (System.Doublel) Decimal Floating-ppints 12 ... VÍ DỤ VỀ VB. NET: Xây dựng một ứng dụng đơn giản với application windows. ĐỀ TÀI:TÌM HIỂU VỀ VB. NET SVTH:TRẦN THỊ THÊM Những khác biệt cơ bản giữa VB. Net với VB6 TIÊU CHÍ SO SÁNH VB6 VB. Net Tính ... bước tự học lập trình Vb. Net NGô Phương Lan <2> Học VB. Net 2005 qua winforms <3> Lập trình VB. Net với ADO .NET Ngô Phương Lan-Phạm Hữu Khang <4> http://caulacbovb.com <5> www.vivosoft.com <6>...
  • 47
  • 2.1K
  • 3

Xem thêm