Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Creating Links in Vb.NET

Creating Links in Vb.NET

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bensoncd
    wrote on last edited by
    #1

    Q1 I am writing an application program in VB.NET. How can I make buttons (or other features) on the form that open certain documents saved in Excel, or Powerpoint or Word? Q2 In a form that with a textbox2 that lists integers that a user input using a textbox1, how can I code the form such that the user only needs to input an integer and strike ENTER so that the integer he has input is added to textbox2. I have this running already but at the moment the user has to keep on clicking a button, which takes much time. Ben

    D 1 Reply Last reply
    0
    • B bensoncd

      Q1 I am writing an application program in VB.NET. How can I make buttons (or other features) on the form that open certain documents saved in Excel, or Powerpoint or Word? Q2 In a form that with a textbox2 that lists integers that a user input using a textbox1, how can I code the form such that the user only needs to input an integer and strike ENTER so that the integer he has input is added to textbox2. I have this running already but at the moment the user has to keep on clicking a button, which takes much time. Ben

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      bensoncd wrote: I am writing an application program in VB.NET. How can I make buttons (or other features) on the form that open certain documents saved in Excel, or Powerpoint or Word? You could put a Link Label on the form and just handle the click event. Put something like the following code in there to launch the file, say a Word document, you want:

      Dim procStartInfo As New ProcessStartInfo(fullPathToWordDOCFile)
      procStartInfo.UseShellExecute = True
      Process.Start(procStartInfo)
      

      bensoncd wrote: In a form that with a textbox2 that lists integers that a user input using a textbox1, how can I code the form such that the user only needs to input an integer and strike ENTER so that the integer he has input is added to textbox2. I have this running already but at the moment the user has to keep on clicking a button, which takes much time. The easiest way is to make that button the default button on the form. Just click on the form that holds that button and the textbox. Go to the properties of the form and find the AcceptButton property. Click on the dropdown in there and select the button that you want to be the default button clicked when the user hits Enter. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      B 1 Reply Last reply
      0
      • D Dave Kreskowiak

        bensoncd wrote: I am writing an application program in VB.NET. How can I make buttons (or other features) on the form that open certain documents saved in Excel, or Powerpoint or Word? You could put a Link Label on the form and just handle the click event. Put something like the following code in there to launch the file, say a Word document, you want:

        Dim procStartInfo As New ProcessStartInfo(fullPathToWordDOCFile)
        procStartInfo.UseShellExecute = True
        Process.Start(procStartInfo)
        

        bensoncd wrote: In a form that with a textbox2 that lists integers that a user input using a textbox1, how can I code the form such that the user only needs to input an integer and strike ENTER so that the integer he has input is added to textbox2. I have this running already but at the moment the user has to keep on clicking a button, which takes much time. The easiest way is to make that button the default button on the form. Just click on the form that holds that button and the textbox. Go to the properties of the form and find the AcceptButton property. Click on the dropdown in there and select the button that you want to be the default button clicked when the user hits Enter. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        B Offline
        B Offline
        bensoncd
        wrote on last edited by
        #3

        Thank you Dave, Let me give it a try

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups