10/10/2014 07:33:00 PM

Media Player in VB.NET

This program for the disabled people who can't speak to help them in chanting God's Names. It is believed that if you listen God almost 24 hrs. Then you get salvation. 
Public Class Frmmantraplayer    'for close button declaration    Private Const MF_BYPOSITION = &H400
    Private Const MF_REMOVE = &H1000
    Private Const MF_DISABLED = &H2
    Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As IntPtr, ByVal nPosition As Integer, ByValwFlags As Long) As IntPtr    Private Declare Function GetSystemMenu Lib "user32" (ByVal hWnd As IntPtr, ByVal bRevert As Boolean) As IntPtr    Private Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As IntPtr) As Integer    Private Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As IntPtr) As Boolean
    Public Sub DisableCloseButton(ByVal hwnd As IntPtr)
        Dim hMenu As IntPtr        Dim menuItemCount As Integer        hMenu = GetSystemMenu(hwnd, False)
        menuItemCount = GetMenuItemCount(hMenu)
       [.....]

10/10/2014 07:28:00 PM

make our own video player.

Download Files: VideoFinalProject.rar   Introduction In this article we will make our own video player. First we will be displaying the list of all the "mp4" and "3gp" files in the SD Card of your phone. The video will be played when the user selects a video from the list. Step 1 Open "main_activity" and add the following code to it: <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android"           android:layout_width="fill_parent"           android:layout_height="fill_parent"           android:padding="10dp"           android:textSize="20sp"           android:background="#cd6959"> </TextView>
 This layout file will display the list of video files in your SD Card. The layout looks like: Step [.....]

Next PostNewer Posts Previous PostOlder Posts Home