| Forum |
|
|||||||
| Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Right Off the Assembly Line
Join Date: Oct 2004
Location: India,kerala
Posts: 28
|
1.Invoke folder selection dialog box to ur Visual Basic application / use of windows handles Private Type BROWSEINFO hOwner As Long pidlRoot As Long pszDisplayName As String lpszTitle As String ulFlags As Long lpfn As Long lParam As Long iImage As Long End Type Private Const BIF_RETURNONLYFSDIRS = &H1 Private Declare Function SHGetPathFromIDList Lib "SHELL32.DLL" Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long Private Declare Function SHBrowseForFolder Lib "SHELL32.DLL" Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long 'ITEMIDLIST Public Function BrowseFolder(hWnd As Long, szDialogTitle As String) As String ' Syntax: StrVar = BrowseFolder(hWnd, StrVar) On Local Error Resume Next Dim X As Long, BI As BROWSEINFO, dwIList As Long, szPath As String, wPos As Integer BI.hOwner = hWnd BI.lpszTitle = szDialogTitle BI.ulFlags = BIF_RETURNONLYFSDIRS dwIList = SHBrowseForFolder(BI) szPath = Space$(512) X = SHGetPathFromIDList(ByVal dwIList, ByVal szPath) If X Then wPos = InStr(szPath, Chr(0)) BrowseFolder = Trim(Left$(szPath, wPos - 1)) Else BrowseFolder = vbNullString End If End Function Private Sub Form_Click() Dim sFileName As String sFileName = BrowseFolder(Me.hWnd, "Select the folder to Protect") End Sub 2.Function to Check whether a folder exist or not , this function will return true if the folder exist.Pls modify above code.. Public Function IsFolderExists(FolderName As String) As Boolean Dim fs Set fs = CreateObject("Scripting.FileSystemObject") IsFolderExists = fs.FolderExists(FolderName) End Function Private Sub Form_Click() Dim sFileName As String sFileName = BrowseFolder(Me.hWnd, "Select the folder to Protect") MsgBox (IsFolderExists(sFileName)) End Sub 3.Run a weblink or mailto link using shell command from Visual Basic application/set hypperlink. General Declaration section Private Declare Function ShellExecute Lib "SHELL32.DLL" Alias "ShellExecuteA" _ (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _ ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private Const AppName = "Dictionary" Private Sub mail_Click() ShellExecute 0, "Open", "mailto:" & mail.Caption, vbNullString, vbNullString, vbNormal End Sub Private Sub web_Click() ShellExecute 0, "Open", web.Caption, vbNullString, vbNullString, vbNormal End Sub Private Sub Form_Load() mail.caption=�maojap.nair@gmail.com� web.caption=�http://www.manojapnair.bravehost.com� End Sub :roll: :roll:
__________________
manojap |
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#2 (permalink) |
|
Ignorance is BLISS !!
Join Date: Oct 2004
Location: 127.0.0.1
Posts: 565
|
Why don't u mention that u have copied the sources from VB progs written by others ?
All of this crap can be easily located on www.planetsourcecode.com MENTION the place u have copied stuff.......ALWAYS !!! |
|
|
|
|
#4 (permalink) |
|
Stabbing my shoe
Join Date: Jan 2005
Location: Ahmedabad
Posts: 306
|
Can anybody suggest me VB.NET tricks for making a simple calculator for calculating marks and percentage of exam results for 7 subjects...
__________________
>> Siddhartha << > http://sidroy.wordpress.com < > Beauty lies in the eyes of the Beer Holder < |
|
|
|
|
#6 (permalink) | |
|
Right Off the Assembly Line
Join Date: Oct 2004
Location: India,kerala
Posts: 28
|
Quote:
The program is completely my own,who says it found on palnet....manoj
__________________
manojap |
|
|
|
|
|
#10 (permalink) |
|
Ignorance is BLISS !!
Join Date: Oct 2004
Location: 127.0.0.1
Posts: 565
|
Yeah.............................
I'm Interested in ur program Tux ! Plz mail it to me since I guess it would be difficult to post the bulky document here ! Plz include all the forms and other files in a zip archieve ! |
|
|
|
|
#11 (permalink) | |
|
Guest
Posts: n/a
|
Quote:
And I just can't correct it. Though the bug don't create problem. |
|
|
|
#13 (permalink) |
|
Apprentice
Join Date: Sep 2004
Location: Utopia
Posts: 98
|
Hi!! Tux
Can i get the game too! It would be great if you can provide the source code with it! i'll pm my email id if its ok with you!
__________________
A flea and a fly in a flue, were caught, so what could they do? Said the fly, \"let us flee!\" \"Let us fly!\" said the flea. So they flew through a flaw in the flue. |
|
|
|
|
#15 (permalink) |
|
Guest
Posts: n/a
|
DAMN TIRED of sending it to people.
But that doesn't means u won't get it. Log on to tictactoetux@rediffmail.com with the password "thanku" and download the massage from "SNEHASIS GHOSH" with no subject. Download the attacment and check it out |
|
|
#17 (permalink) | |
|
Right Off the Assembly Line
Join Date: Apr 2005
Location: Indiyaaaaah
Posts: 23
|
Quote:
Still, its not bad!!!
__________________
Amit Gupta http://blog.igeek.info/ http://eye.amitgupta.in/ http://www.diGitBlog.com/ |
|
|
|
|
|
#18 (permalink) | ||
|
Guest
Posts: n/a
|
Quote:
Its damn basic. But Read the README. U'll know why. |
||
|
|
#19 (permalink) | |
|
Right Off the Assembly Line
Join Date: Apr 2005
Location: Indiyaaaaah
Posts: 23
|
Quote:
__________________
Amit Gupta http://blog.igeek.info/ http://eye.amitgupta.in/ http://www.diGitBlog.com/ |
|
|
|
|
|
#21 (permalink) |
|
The Frozen Nova
Join Date: Sep 2004
Location: Trespasser in Virtual Land
Posts: 1,641
|
Tux, I aslos need ur proggy. instead of sending it individually , u can upload it to rapidshare and post the link.
__________________
I dream of a better tomorrow... where chickens can cross roads and not have their motives questioned. www.nerdweed.blogspot.com |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|