Results for "Author: filip wielewski"
This code shows 3 ways to check if program is already open. First way doesn't use any API (it uses App.PrevInstance property). Second way to find out if program is already open is to use FindWindow function. Third and the best way is to create mutex object.
This program counts lines in your projects. It is run from "Add-Ins" menu in VB. It is an easy example of using VB IDE and everyone who wants to write VB AddIns may begin viewing this code.
This very, very, very and again very easy example shows how to create font device nad how to set background and draw text using DirectX8 (->see screenshot). For beginers.
This code shows how to use many API functions in "menu" category (see the screen shot!). Viewing this code you can learn how to disable close (x) button on title bar, how to edit system menu (minimize, maximize, close, etc.) of specified window, how to remove items from menu, add small bitmaps next to the text in menu items, get handle to system menu, menu of window and submenu, add as big bitmap as you want to menu item, hide menu on command and count menu items. It also shows how to use window procedure (called by AddressOf), how to hide your application and add icon to taskbar status area and how to open internet pages without using any controls. UPDATED: now you can add to menu also icons!
Viewing this code you can learn how to show (without CommonDialog control and using default system dlls) three kinds of open and save dialogs (see the screenshot!!!). The dialogs may look like in old programs from win95 or like in VB or like in Notepad or Wordpad. One way uses three controls and 2nd and 3rd ways use API functions. This code also shows how to open files in multi mode (open more than one file). The zip file is small and every line is commented. Vote or leave a comment if you want and if this code will help you!
This code shows 3 ways to check if program is already open. First way doesn't use any API (it uses App.PrevInstance property). Second way to find out if program is already open is to use FindWindow function. Third and the best way is to create mutex object.
This program counts lines in your projects. It is run from "Add-Ins" menu in VB. It is an easy example of using VB IDE and everyone who wants to write VB AddIns may begin viewing this code.
This very, very, very and again very easy example shows how to create font device nad how to set background and draw text using DirectX8 (->see screenshot). For beginers.
This code shows how to use many API functions in "menu" category (see the screen shot!). Viewing this code you can learn how to disable close (x) button on title bar, how to edit system menu (minimize, maximize, close, etc.) of specified window, how to remove items from menu, add small bitmaps next to the text in menu items, get handle to system menu, menu of window and submenu, add as big bitmap as you want to menu item, hide menu on command and count menu items. It also shows how to use window procedure (called by AddressOf), how to hide your application and add icon to taskbar status area and how to open internet pages without using any controls. UPDATED: now you can add to menu also icons!
Viewing this code you can learn how to show (without CommonDialog control and using default system dlls) three kinds of open and save dialogs (see the screenshot!!!). The dialogs may look like in old programs from win95 or like in VB or like in Notepad or Wordpad. One way uses three controls and 2nd and 3rd ways use API functions. This code also shows how to open files in multi mode (open more than one file). The zip file is small and every line is commented. Vote or leave a comment if you want and if this code will help you!