Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows WPF VB.NET
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 3:33am
Comments
Kschuler at 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 form...do you really mean another application? Or specifically a form in your own application?
Maciej Los at 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 at 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
good
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)
f.Show()
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

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

  Print Answers RSS
0 OriginalGriff 299
1 Maciej Los 295
2 Sergey Alexandrovich Kryukov 205
3 Aajmot Sk 202
4 Sinisa Hajnal 166
0 OriginalGriff 7,760
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,785


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2014
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