Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,087 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,758 people online right now. Registration is fast and FREE... Join Now!




Making my own extentions in VB 2008 express editon

 
Reply to this topicStart new topic

Making my own extentions in VB 2008 express editon, cansomebody help me??

Trickster090
20 Jun, 2008 - 02:50 AM
Post #1

New D.I.C Head
*

Joined: 2 Jun, 2008
Posts: 41


My Contributions
how do you make your own extentions in vb 2008 express editon??
User is offlineProfile CardPM
+Quote Post

mensahero
RE: Making My Own Extentions In VB 2008 Express Editon
20 Jun, 2008 - 09:14 AM
Post #2

c0mput3rz Are Only Human
Group Icon

Joined: 26 May, 2008
Posts: 664



Thanked: 17 times
Dream Kudos: 75
My Contributions
You must be more descriptive and specific about your questions.
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Making My Own Extentions In VB 2008 Express Editon
20 Jun, 2008 - 11:54 AM
Post #3

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,319



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Moved to VB.NET.
User is offlineProfile CardPM
+Quote Post

vbnetskywalker
RE: Making My Own Extentions In VB 2008 Express Editon
21 Jun, 2008 - 06:27 PM
Post #4

D.I.C Head
**

Joined: 8 Jun, 2008
Posts: 53



Thanked: 2 times
My Contributions
you're asking how to create an extension for my application's files ?

ths is called ( Files Associations ) , to do so follow steps next :

these steps assume that the extension you're creating is "EXT"

1 - put a new key in the registry with the next path :
"HKEY_CLASSES_ROOT\.EXT\Shell\Open\Command"

now in the "Default" value of the key "Command" put the fullpath of your application that will open the doubleclicked file
this fulpath must be between two quotations " " like this example
"C:\Program Files\ProgramFolder\app.exe"
and also this fullpath must be enclosed by %1 so it will be like this
"C:\Program Files\ProgramFolder\app.exe" %1


2 - now in you application to get the fullpath of the doubleclicked file
in (VB.Net 2003 )
(your job now is to find the match in 2008 , sorry I don't have 2008 on my pc ):
CODE


        Dim En As Environment
        Dim Path As String
        Path=En.GetCommandLineArgs(1))
        ' now Path is the fullpath of the doubleclicked file
        ' and you could use the  En.GetCommandLineArgs(0))   to get the EXEName of your app
        ' now you use this code the way it fits your app and avoids the ERR messages



================================================
Steps are done .
Technical Informations:
1- the "Data" of the "Default" value of the key "Open" is the caption appears to the user when the file is rightclicked , and if it's omitted the "Open" would appears as a caption of the command
2 - we put the % to make the file supports the CommandLine which we used in the code
================================================
I hope my steps help you ... good luck .

vbnetSky Walker


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:56PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month