Showing posts with label vb. Show all posts
Showing posts with label vb. Show all posts

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

Saturday, 29 August 2009

Smart Device part 4

View the data

Smart Device Part 3

During the last weeks we made our GUI we create our form to insert records in our database now we must make our program to check if the database exist and if no to create it in the same directory.
First of all add reference System.Data.SqlServerCe 

Smart Device Part 2

At part 1 we specify what the program will do and we create the SQL statement that will create the database, now we will start building our GUI.

Smart Device Part 1

We will start our application that will connect a smart device program to a database.
The program when it will start will search in the application directory if the database exists if not will create the database.
The connection will be accomplished with code....
During the development of the program I will take screen shots.
What the program will do:
The program will accept new customers and display them in a list the user will be able to select the customer and update all information about the customer.
It's simple.
Now what we need to create our database
Step one: Design the database

Id
Name
Surname
Address
Telephone
Type
Number Primary key
String
String
String
Number
Sql compact type
Int primary key
Nvarchar
Nvarchar
Nvarchar
int

Friday, 28 August 2009

VB Net Smart Device Tutorials

Php tutorials are paused temporally and soon i will start vb net smart device tutorials on how to handle databases

i will start because a friend of mine ask me to post.....

For the tutorials i will use Visual studio 2008 professional

Visual studio express does not include Smart device development

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?