Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

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

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 13-03-2005, 06:48 PM   #1 (permalink)
Right Off the Assembly Line
 
Manojap's Avatar
 
Join Date: Oct 2004
Location: India,kerala
Posts: 28
Default vb tricks

Pls copy paste these code to ur visual basic form’s code section.

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
Manojap is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 13-03-2005, 07:05 PM   #2 (permalink)
Ignorance is BLISS !!
 
Join Date: Oct 2004
Location: 127.0.0.1
Posts: 565
Default

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 !!!
rajkumar_personal is offline  
Old 14-03-2005, 01:58 AM   #3 (permalink)
In The Zone
 
sms_solver's Avatar
 
Join Date: Jan 2004
Location: somewhere
Posts: 420
Default

the above tut given by Manojap is useful. A new to VB must try it.
__________________
[ॐ एसएमएस॰सोल्भर ॐ]
sms_solver is offline  
Old 14-03-2005, 10:00 AM   #4 (permalink)
Stabbing my shoe
 
Join Date: Jan 2005
Location: Ahmedabad
Posts: 306
Default

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 <
//siddhartha// is offline  
Old 14-03-2005, 07:58 PM   #5 (permalink)
In The Zone
 
Join Date: Feb 2005
Location: Anonymous
Posts: 204
Default

is tht a trick ?? I guess u are requesting a program
h4xbox is offline  
Old 19-03-2005, 01:51 PM   #6 (permalink)
Right Off the Assembly Line
 
Manojap's Avatar
 
Join Date: Oct 2004
Location: India,kerala
Posts: 28
Default

Quote:
Originally Posted by rajkumar_personal
Why don't u mention that u have copied the sources from VB progs written by others ?

All of this **** can be easily located on
www.planetsourcecode.com

MENTION the place u have copied stuff.......ALWAYS !!!

The program is completely my own,who says it found on palnet....manoj
__________________
manojap
Manojap is offline  
Old 19-03-2005, 01:56 PM   #7 (permalink)
Right Off the Assembly Line
 
Manojap's Avatar
 
Join Date: Oct 2004
Location: India,kerala
Posts: 28
Default

I get one copy of this prgrm from Developer IQ CD,last year
__________________
manojap
Manojap is offline  
Old 25-03-2005, 09:30 PM   #8 (permalink)
Tux
Guest
 
Posts: n/a
Default

I am developed a TIC TAC TOE game with AI.
Computers responds to our steps wisley.
But its a 250 + pg code.
Any body wants it.
 
Old 26-03-2005, 12:19 PM   #9 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default

Yes mr Tux aka Ash I want it. How can you send it to me?
__________________
:: Free hosting and free domain names available in special cases. Conditions apply ::
tuxfan is offline  
Old 27-03-2005, 05:17 AM   #10 (permalink)
Ignorance is BLISS !!
 
Join Date: Oct 2004
Location: 127.0.0.1
Posts: 565
Default

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 !
rajkumar_personal is offline  
Old 27-03-2005, 12:41 PM   #11 (permalink)
Tux
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by rajkumar_personal
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 !
I've sent it. There is still a bug.
And I just can't correct it.
Though the bug don't create problem.
 
Old 27-03-2005, 12:43 PM   #12 (permalink)
Tux
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by tuxfan
Yes mr Tux aka Ash I want it. How can you send it to me?

why don't u give your email id.
and thank that u r my fan.
U R TUXFAN
and i am TUX.
And also delete aka ash
 
Old 31-03-2005, 10:54 PM   #13 (permalink)
Apprentice
 
Join Date: Sep 2004
Location: Utopia
Posts: 98
Default

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.
technovice is offline  
Old 01-04-2005, 07:03 PM   #14 (permalink)
Tux
Guest
 
Posts: n/a
Default

Send it buddy. I'll give you the whole
source code and forms along.
Its OK . Send your email-id.
 
Old 01-04-2005, 09:13 PM   #15 (permalink)
Tux
Guest
 
Posts: n/a
Default

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
 
Old 10-04-2005, 11:05 PM   #16 (permalink)
Tux
Guest
 
Posts: n/a
Default

hOW WAS TH PROG. sOMEONE REPLY PLZ
 
Old 11-04-2005, 02:35 AM   #17 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: Indiyaaaaah
Posts: 23
Default

Quote:
Originally Posted by Tux
hOW WAS TH PROG. sOMEONE REPLY PLZ
I just downloaded it & tried it. It looks ok but its just sort of basic, no? I was able to beat it in 4 straight moves 5 times before getting a draw the 6th time. When you mentioned AI, I thought something hi-fi, you know.....

Still, its not bad!!!
igeek is offline  
Old 13-04-2005, 07:16 PM   #18 (permalink)
Tux
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by igeek
Quote:
Originally Posted by Tux
hOW WAS TH PROG. sOMEONE REPLY PLZ
I just downloaded it & tried it. It looks ok but its just sort of basic, no? I was able to beat it in 4 straight moves 5 times before getting a draw the 6th time. When you mentioned AI, I thought something hi-fi, you know.....

Still, its not bad!!!
I know I know.
Its damn basic.
But Read the README. U'll know why.
 
Old 13-04-2005, 10:36 PM   #19 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: Indiyaaaaah
Posts: 23
Default

Quote:
Originally Posted by Tux
I know I know.
Its damn basic.
But Read the README. U'll know why.
igeek is offline  
Old 14-04-2005, 01:32 PM   #20 (permalink)
Tux
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by igeek
Quote:
Originally Posted by Tux
I know I know.
Its damn basic.
But Read the README. U'll know why.
tnks for repling
 
Old 01-08-2006, 04:15 PM   #21 (permalink)
The Frozen Nova
 
casanova's Avatar
 
Join Date: Sep 2004
Location: Trespasser in Virtual Land
Posts: 1,641
Default Re: vb tricks

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
casanova is offline  
Old 01-08-2006, 04:26 PM   #22 (permalink)
In The Zone
 
Venom's Avatar
 
Join Date: Jun 2006
Posts: 240
Default Re: vb tricks

Cant you notice Tux isnt a member here anymore? Why dig up useless threads...
Venom is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 01:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2