logo logo

The next-generation blog, news, and magazine theme for you to start sharing your stories today!

The Blogzine

Save on Premium Membership

Get the insights report trusted by experts around the globe. Become a Member Today!

View pricing plans

New York, USA (HQ)

750 Sing Sing Rd, Horseheads, NY, 14845

Call: 469-537-2410 (Toll-free)

hello@blogzine.com
.Net

[VB.Net] Code Thông Báo Update App

Hôm nay mình xin chia sẽ code update app cho ứng dụng. Code này được viết cho Visual Basic nhé mọi người. Ai cần thì lấy nhé ;) Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.C…

avatar
Hung.Pro.VN

Developer Windows


  • 02/10/2016
  • Views

Hôm nay mình xin chia sẽ code update app cho ứng dụng. Code này được viết cho Visual Basic nhé mọi người. Ai cần thì lấy nhé ;)

Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://chat.bomkhung.net/version.txt")
Dim response As System.Net.HttpWebResponse = request.GetResponse()

Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())

Dim newestversion As String = sr.ReadToEnd()
Dim currentversion As String = Application.ProductVersion

If newestversion.Contains(currentversion) Then
Else
MsgBox("Hiện Tại Phiên Bản Này Đã Củ. Mòi Bạn Vào Trang Chủ Để Tải Phiên Bản Mới", MsgBoxStyle.DefaultButton1, "Thông Báo")
Process.start("http://chat.bomkhung.info")
End
End If

Trong đoạn code trên các bạn cần thay đổi link txt đi nhé ;) để khi các bạn change ip trong file txt đó thì app sẽ thông báo là ứng dụng đã củ nhé ;)


Đây là hình ảnh mình TEST nhé các bạn :)

Related post


avatar

Hung.Pro.VN

Nhà thiết kế Web
View Articles

Tôi là admin trang Hung.Pro.VN là một người có đam mê với Blogspot, kinh nghiệm 5 năm thiết kế ra hàng trăm mẫu Template blogpsot như" Bán hàng, bất động sản, landing page, tin tức...

Nhận xét

Share this article