Example
#{example}"); ipb.editor_values.get('templates')['togglesource'] = new Template(""); ipb.editor_values.get('templates')['toolbar'] = new Template(""); ipb.editor_values.get('templates')['button'] = new Template("
Emoticons
"); // Add smilies into the mix ipb.editor_values.set( 'show_emoticon_link', false ); ipb.editor_values.set( 'bbcodes', $H({"snapback":{"id":"1","title":"Post Snap Back","desc":"This tag displays a little linked image which links back to a post - used when quoting posts from the board. Opens in same window by default.","tag":"snapback","useoption":"0","example":"[snapback]100[/snapback]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"topic":{"id":"5","title":"Topic Link","desc":"This tag provides an easy way to link to a topic","tag":"topic","useoption":"1","example":"[topic=1]Click me![/topic]","switch_option":"0","menu_option_text":"Enter the topic ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"post":{"id":"6","title":"Post Link","desc":"This tag provides an easy way to link to a post.","tag":"post","useoption":"1","example":"[post=1]Click me![/post]","switch_option":"0","menu_option_text":"Enter the Post ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"spoiler":{"id":"7","title":"Spoiler","desc":"Spoiler tag","tag":"spoiler","useoption":"0","example":"[spoiler]Some hidden text[/spoiler]","switch_option":"0","menu_option_text":"","menu_content_text":"Enter the text to be masked","single_tag":"0","optional_option":"0","image":""},"acronym":{"id":"8","title":"Acronym","desc":"Allows you to make an acronym that will display a description when moused over","tag":"acronym","useoption":"1","example":"[acronym='Laugh Out Loud']lol[/acronym]","switch_option":"0","menu_option_text":"Enter the description for this acronym (EG: Laugh Out Loud)","menu_content_text":"Enter the acronym (EG: lol)","single_tag":"0","optional_option":"0","image":""},"hr":{"id":"12","title":"Horizontal Rule","desc":"Adds a horizontal rule to separate text","tag":"hr","useoption":"0","example":"[hr]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"php":{"id":"14","title":"PHP Code","desc":"Allows you to enter PHP code into a formatted/highlighted syntax box","tag":"php","useoption":"0","example":"[php]$variable = true;\n\nprint_r($variable);[/php]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"html":{"id":"15","title":"HTML Code","desc":"Allows you to enter formatted/syntax-highlighted HTML code","tag":"html","useoption":"0","example":"[html]\n \n[/html]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"sql":{"id":"16","title":"SQL Code","desc":"Allows you to enter formatted/syntax-highlighted SQL code","tag":"sql","useoption":"0","example":"[sql]SELECT p.*, t.* FROM posts p LEFT JOIN topics t ON t.tid=p.topic_id WHERE t.tid=7[/sql]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"xml":{"id":"17","title":"XML Code","desc":"Allows you to enter formatted/syntax-highlighted XML code","tag":"xml","useoption":"0","example":"[xml]1 Replies - 51 Views - Last Post: Today, 06:57 PM
#1
Reputation: 0
- Posts: 1
- Joined: Today, 05:27 PM
Posted Today, 05:47 PM
Here is what I am trying to accomplish. I am making a simple application launcher using windows forms. I am trying to find a way to find a application based on a registry point. I have been using the shell command but quickly learned if the program is not in the directory specified the application fails. So I would like to look in the registry to find the path rather then using a absolute directory.I am rather new to this but below is where I was heading...and it is wrong
[code]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("HKEY_LOCAL_MACHINE\SOFTWARE\App\load.exe")
End Sub
[\code]
Thank you for help!
Is This A Good Question/Topic? 0
Replies To: Application Launcher
#2
Reputation: 678
- Posts: 2,052
- Joined: 12-December 12
Re: Application Launcher
Posted Today, 06:57 PM
You cannot launch an application from a registry key, unless a key happens to store the full path to an application and you already know where this key lives.Searching the registry can be quite involved as well, and time-consuming, unless you know more or less where a particular key or value lives.
Are you new to VB.NET, or new to using the Registry? If the first then I recommend you leave the registry alone until you have covered the fundamentals of the language.
If you are attempting to launch a specific, well-known, application then you might not need the location, if it is stored in the environment-paths:
Shell("Notepad.exe")
Shell returns a FileNotFoundException so you could try..catch this.
This post has been edited by andrewsw: Today, 06:58 PM
Page 1 of 1
Source: http://www.dreamincode.net/forums/topic/316591-application-launcher/
tiny houses maya angelou joan of arc tony robbins bon iver abraham lincoln vampire hunter their eyes were watching god
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.