Click here to Skip to main content
13,044,428 members (118,736 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all

In my project i want to create shortcut for forms.
like i have one link saying "create shortcut", so as soon as the user clicks that,then it should create particular form's shortcut at a panel or list box.
and after that if the user closed the application and opens it again later those shortcuts should be available at the place.

Please tell me how to do that. and please tell me if my explanation is confusing..

Thank you...
Posted 7-Mar-13 2:33am
Kschuler 7-Mar-13 11:59am
When you say shortcut, are you talking about...for example Desktop Shortcuts. Icons that when you click them they launch a program? Or are you just talking about links inside your own application? And when you say it launches a you really mean another application? Or specifically a form in your own application?
Maciej Los 7-Mar-13 14:03pm
This is not well framed question. Please, be more specific and provide more details.
Do you want to create shortcuts to forms in your application? Or do you want to create shortcuts to other windows applications?
Snehasish Nandy 7-Mar-13 23:34pm
yes its like we create desktop shortcuts..but here i want that for the forms for an application...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This is a way to open a form by it's string name.

Dim appName As String = Application.ProductName  &  "."
Dim mForm As String = "Form1"
Dim f As Form = DirectCast(Type.GetType(appName & mForm).InvokeMember(mForm, Reflection.BindingFlags.CreateInstance, Nothing, Nothing, Nothing), Form)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100