Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Sunday, 17 August 2014

Monday, 26 December 2011

MSN Style for user attention


What if your application is minimized and you want user attention
You can always do it with a message box.
But there is the msn style
That the icon in the taskbar "blinks"
How to do it??
Declaration

Imports System.Runtime.InteropServices

     _

Public Function FlashWindow(ByVal hwnd As Integer, ByVal bInvert As Integer) As Integer

    End Function

When you want to call this function you just FlashWindow(Me.Handle, 1)

But when you call this function the windows and the taskbar will "blink" one time
To achieve "msn style" put the call method into a timer (VB) for 490 ms and enable the tick tock :)
And when the user interacts with your form (got Focus???Click??? Your call but i suggest got Focus)
Hope this is useful 

Visual Basic .net enter key on textbox


If you ever wanted to capture the key Enter on a text box, here is the code

Private Sub txtsearch_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtsearch.KeyPress
   If Asc(e.KeyChar) = 13 Then
   'Your code goes here...
   End If
End Sub
The best method i found is to create a sub process and call it from both of your codes. Both codes i mean the button that you press the Enter key and the button that you have to handle the user input

Tuesday, 17 November 2009

Cyprus Internet Radio

Recently i found that if you want to hear your internet radio on the web consumes too much resources.
What i did?
I create my own application that has internet radio stations, the program was build in VB.Net (i know why not C++? A: Faster)
Everyday i google for more internet stations and soon i will have them all integrated in my program.
For the momment i have only Cyprus and Greek channels
the program includes windows media player and msn plug in
windows media player for playing the music and msn plug in to show in what i hear a message
here is the link
download
IT INCLUDE UPDATE FOR THE ERROR THAT CAME UP

Tuesday, 27 October 2009

How to get system uptime in windows XP

Windows XP Professional just type systeminfo in a cmd window
Windows XP Home you have to download this program from here and copy it to windows /system 32 i think

remember this program is a command line program and will vanish if you dont open it from a new cmd window

Thursday, 22 October 2009

how to show developer tab to the ribbon office 2007

In the office 2007 if you want to show the developer bar in the ribbon you have to do:

click on the office button 

after go to the word, excel options
and select show developer tab in the ribbon


Reset numbering for Screenshots Win+PrtSc

I was using today the screen shot functionality of Windows 8.1 Win Key + PrtSc How to reset the numbering?