Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Visual Basic.NET 2005

Featured Replies

Hello!

I want to make an application for my network computers. I want to make they ping my server and return a balloon notifying pinging success/failure. This is almost done, but here comes the issue; When the application starts, I have a "pinging..."window. I want to hide this one when pinging attempt finishes, and I want to maintain notification icons on my systray. But the window does not hide with the Me.Hide command, or if I enter the Me.Close command, notification icons also disappear. Can somebody tell me what's wrong?

Here's my code:

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
NotifyIcon1.ShowBalloonTip(10000)
If My.Computer.Network.Ping("192.168.0.1", 5000) Then

NotifyIcon1.Visible = False
ntfSuccess.Visible = True
ntfSuccess.ShowBalloonTip(10000)
Me.Hide()
Else
NotifyIcon1.Visible = False
ntfFailure.Visible = True
ntfFailure.ShowBalloonTip(10000)
Me.Hide()
End If
End Sub

Thanks in advance!

Edited by ShinIori319


You can't hide the window during Form_Load using Me.Hide(), try moving all the code to Form_Shown instead. If it's because you never want the form to be shown at all, then try setting the form's visible property to false during design-time.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.