Click here to Skip to main content
16,009,728 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalbyte length restriction in text box Pin
Rohitse9-Jun-04 22:14
Rohitse9-Jun-04 22:14 
GeneralRe: byte length restriction in text box Pin
RichardGrimmer9-Jun-04 23:17
RichardGrimmer9-Jun-04 23:17 
GeneralRe: byte length restriction in text box Pin
Dave Kreskowiak10-Jun-04 3:49
mveDave Kreskowiak10-Jun-04 3:49 
GeneralScheduler sample code Pin
MrBean9-Jun-04 22:01
MrBean9-Jun-04 22:01 
GeneralRe: Scheduler sample code Pin
Dave Kreskowiak10-Jun-04 3:46
mveDave Kreskowiak10-Jun-04 3:46 
GeneralCustom Draw TabControl Pin
beowulfagate9-Jun-04 20:47
beowulfagate9-Jun-04 20:47 
GeneralCreate application shortcut Pin
?!?9-Jun-04 20:42
?!?9-Jun-04 20:42 
GeneralRe: Create application shortcut Pin
Dave Kreskowiak10-Jun-04 3:42
mveDave Kreskowiak10-Jun-04 3:42 
There is no function in the .NET BCL that will handle this. You will have to use the Microsoft Scripting Runtime (set a COM reference to this!), create a Windows Scripting Shell object and use it to create the shortcut. Something like this (I think!):
Dim WshShell As New WScript.Shell
Dim oShellLink As WScript.Shortcut = WshShell.CreateShortcut(strDesktopPath & "\Shortcut Script.lnk")
oShellLink.TargetPath = WScript.ScriptFullName
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = "notepad.exe, 0"
oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save

I haven't tested this code, but it should look SOMETHING like this. I don't have Visual Studio where I'm at work, so I would have to wait until I got home to create a runnable example.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Create application shortcut Pin
VenkatFor.NET10-Jun-04 11:10
VenkatFor.NET10-Jun-04 11:10 
QuestionHow can I add one menu item on menu system of Window??? Pin
tramdtt9-Jun-04 17:59
tramdtt9-Jun-04 17:59 
AnswerRe: How can I add one menu item on menu system of Window??? Pin
beowulfagate9-Jun-04 21:01
beowulfagate9-Jun-04 21:01 
AnswerRe: How can I add one menu item on menu system of Window??? Pin
Dave Kreskowiak10-Jun-04 3:20
mveDave Kreskowiak10-Jun-04 3:20 
Questionhow to find applications running in system tray and close it ? Pin
pampatipraveen9-Jun-04 17:01
pampatipraveen9-Jun-04 17:01 
AnswerRe: how to find applications running in system tray and close it ? Pin
Dave Kreskowiak10-Jun-04 3:12
mveDave Kreskowiak10-Jun-04 3:12 
Generalhyperlink text as content in outlookexpress Pin
skoizumi291109-Jun-04 13:16
sussskoizumi291109-Jun-04 13:16 
GeneralEscape Char Pin
Jon G9-Jun-04 8:37
Jon G9-Jun-04 8:37 
GeneralRe: Escape Char Pin
Dave Kreskowiak9-Jun-04 8:51
mveDave Kreskowiak9-Jun-04 8:51 
GeneralRe: Escape Char Pin
Aaron Eldreth9-Jun-04 13:23
Aaron Eldreth9-Jun-04 13:23 
GeneralRe: Escape Char Pin
Dave Kreskowiak9-Jun-04 15:15
mveDave Kreskowiak9-Jun-04 15:15 
GeneralRe: Escape Char Pin
Jon G10-Jun-04 1:15
Jon G10-Jun-04 1:15 
GeneralRe: Escape Char Pin
Dave Kreskowiak10-Jun-04 3:04
mveDave Kreskowiak10-Jun-04 3:04 
Question<![CDATA[NULL]]>is parsable? Pin
skoizumi291109-Jun-04 6:47
sussskoizumi291109-Jun-04 6:47 
AnswerRe: <![CDATA[NULL]]>is parsable? Pin
Dave Kreskowiak9-Jun-04 8:50
mveDave Kreskowiak9-Jun-04 8:50 
GeneralRe: <![CDATA[NULL]]>is parsable? Pin
vancouver7779-Jun-04 13:06
vancouver7779-Jun-04 13:06 
QuestionHow to get computer id? Pin
viettho9-Jun-04 5:37
viettho9-Jun-04 5:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.