Showing posts with label app. Show all posts
Showing posts with label app. Show all posts

24 August, 2017

Minimize An App to System Tray

24-Aug-2017


I am writing a small WinForms program, and I thought of including minimize an app to system tray feature. Since this is the first time I will do this, I just did a search in Google. I am very sure many have done it as it already is a common feature.

Well, common for everybody else, but at this point, not me. Not yet.

Thus, I searched for ‘minimize an app to system tray’, and I did find valuable articles, many in Q&A forums, like StackOverflow.com.

I’ll go directly to the point now. What is required to make it happen?

1. Handle the form’s resize event.
2. Make a NotifyIcon click event restore the form back.

Here’s how it’s done.


Handle the Form’s Resize Event

Select the form and on its Events, declare this:

private void MyForm_Resize(object sender, EventArgs e) {
    if (FormWindowState.Minimized == this.WindowState) {
       myNotifyIcon.Visible = true;
       myNotifyIcon.ShowBalloonTip(500);
       this.Hide();
    }
    else if (FormWindowState.Normal == this.WindowState) {
       myNotifyIcon.Visible = false;
    }
}


Make a NotifyIcon Click Event Restore the Form Back

Add a NotifyIcon tool, and on its click event, declare this:

private void myNotifyIcon_Click(object sender, EventArgs e) {
    this.Show();
    this.WindowState = FormWindowState.Normal;
}


This is all that is required, really. But sometimes it doesn’t work. One small trick is needed.

Add an Icon to the NotifyIcon tool.

myNotifyIcon.Icon = SystemIcons.Application;

Also, you can add in the Text and Tip properties:

myNotifyIcon.BalloonTipText = "App is minimized to System Tray.";

myNotifyIcon.BalloonTipTitle = "My App Name";


Sometimes, you will see articles that suggest using the Form’s Visible property. But this is also known to still make the app appear or selectable (although not visible) when you do Alt + Tab. So stick to Hide() and Show() events. Still your choice, though.

Okay. I’ll stop here, cause that’s all that is really needed to minimize an app to system tray. Easy, right?

Happy coding!

05 March, 2013

Desktop SMS Apps

Deutsch: Micro USB Ladekabel für Mobiltelefone
Deutsch: Micro USB Ladekabel für Mobiltelefone (Photo credit: Wikipedia)
5 March 2013

I have been using mysms and browserTexting apps for some time, and I am satisfied with the performance. Of course, the ride isn’t exactly smooth: sometimes mysms would take a long time to send a message, something that I didn’t encounter with browserTexting apps. However, since I am using the free versions, my free tokens got all used up, and I am already required to make a purchase – something that I am not willing to do.

That sent me scouting for other free desktop SMS apps, and in Google Play, there isn’t a scarcity of these apps; they are aplenty!

Anyway, to cut the long talk short, I found Desktop SMS Apps, and while it requires the desktop UI to be installed, I have no hesitation doing this, downloading the installer, installing the program, and all. I used Jeyo’s Mobile Companion before, when I was using a Dopod that runs on Windows Mobile, and I could say the interface is very familiar to me; the UI of Mobile Companion and Desktop SMS Control are very similar.

Day Trading and Binary Options Signals

I also didn’t get into a lot of trouble configuring the Android phone to link up to the PC, either by WiFi or by USB. But for now and maybe this will be permanent, I will be going for the USB connection. I find that my device goes to sleep after some time of inactivity, and that effectively shuts off WiFi, thereby disconnecting my phone from the PC. I don’t get that using USB; the connection remains active for as long as the USB is connected.

So there you are, sending/receiving SMS from my desktop PC. That’s the basic thing. Having rules to these messages that you receive, and more, these are extra features you get from Desktop SMS Control.

Try it!


Desktop SMS Apps
Enhanced by Zemanta

23 February, 2012

Uninstalling Some Android Apps

MOUNTAIN VIEW, CA - FEBRUARY 02:  The Google A...Image by Getty Images via @daylifeSecure digital card usb-adapterImage via Wikipedia
21-Feb-2012

I need to free up space on my Android Phone's SD card, even from the device memory space, so I am uninstalling a lot of the apps that I have downloaded and installed some time back, which I thought are nice to have, but I haven't had time to play with them and explore their capabilities. A lot of these are dictionaries and encyclopedias, and boy, encyclopedias easily take up as much as 130MB! And of course, it is the small, small things, when they go by the number, that would come almost unnoticed, but they end up cluttering the Apps Drawer and taking as much space as they can, not to mention the battery drain and data usage spent whenever they get an update.

Well, this time I am removing the apps that I am not using, but will definitely take them up again when the time comes.

Photo Editors
LittlePhoto
Photo Editor Ultimate Free
PicsArt
PicsArt Kids
PicSay

I am retaining Photoshop Express for now.

Notes
FreeNote+
Note Everything
Simply Notes B/W

I retained ColorNote, which I prefer to use for now.

Misc
Funny Facts Free
Today In History
Offline Dictionaries
Inspirational Quotes
Gingerbread Keyboard
mVideoPlayer
plan B


After all the installing and uninstalling done, you might be asking, is there a safe way to uninstall android apps? I'd like to present my method in my next post.

Till then!

Enhanced by Zemanta