DMF Posted March 4, 2013 Author Share Posted March 4, 2013 this is a code that ive used for a few years. its worked on TE ,EE,ES,EO2.0, and EO2.3and should work on all but idk didnt test them all.first in the form that will have the link go to the top put this code under "Option Explicit"```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```now make a imagebutton like you have in eo ingame.you can name it what you will. but for this i named it **lblLlink**.now click your new button and add this code into it.```ShellExecute 0, "open", "http://www.touchofdeathforums.com/community/", vbNullString, vbNullString, 1```thats all there is too it.now im not a programmer of any sorts im just sharing a code ive had a long wile. and i hope someone will find use for it.-coookies- ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)~DMF~ Link to comment Share on other sites More sharing options...
MadalinV Posted March 4, 2013 Share Posted March 4, 2013 Nice, this should be preety useful, I already now a use for this… Link to comment Share on other sites More sharing options...
DMF Posted March 4, 2013 Author Share Posted March 4, 2013 xD thanks , best think bout it is that it opens the default browser . Link to comment Share on other sites More sharing options...
MadalinV Posted March 4, 2013 Share Posted March 4, 2013 > xD thanks , best think bout it is that it opens the default browser .That's even better, I knw code to open in IE, but this is better. Link to comment Share on other sites More sharing options...
boyesjs03 Posted March 4, 2013 Share Posted March 4, 2013 Nice tut ^^ Link to comment Share on other sites More sharing options...
DMF Posted March 9, 2013 Author Share Posted March 9, 2013 thanks o-o but its just a simple thing i would think most people can think of this. o-o Link to comment Share on other sites More sharing options...
jcsnider Posted March 9, 2013 Share Posted March 9, 2013 I spent 10 minutes or so the other day googling for it. It is a nice piece of code, simple enough but also very useful if you have the right purposes.Nice share ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2013 Share Posted March 9, 2013 > thanks o-o but its just a simple thing i would think most people can think of this. o-o[*cough*](http://www.touchofdeathforums.com/community/index.php?/topic/116120-hyperlinking-labels) Link to comment Share on other sites More sharing options...
tslusny Posted March 9, 2013 Share Posted March 9, 2013 Great ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) I am using this function pretty often, but i always forgot how to use it and i am always again and again googling for it, or ripping it from there, where i used it. Thank you, this will save me from headache lol ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
DMF Posted March 9, 2013 Author Share Posted March 9, 2013 thanks JC Denton Denton. ive had code long before TE was around and used it in all of my projects. didnt need to find this it was a well known code back then. o-o reason the shell code is under Option Explicit is to advoid errors. with my code i dont need an error handler since its not calling long distance.(lock topic please) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now