Divelements Community
Customer discussion of all Divelements products

Button links and images

Latest post 08-16-2005 9:21 by Tim Dawson. 3 replies.
  • 08-10-2005 20:29

    Button links and images

    Hi...

    I've a created a button bar using the examples

    NavigationButton button = new NavigationButton("Anag",null);
    buttonBarWindowsForms.Buttons.Add(button);

    but I've 2 problems:

    1) How Can I liks other pages in each button? (How can I set the page to be opened?)

    2) How Can I associate an image??

    I must use System.Drawing.Image.image.... but how see and image (xxxx.jpg) in the button created??

    Thanks

  • 08-11-2005 9:28 In reply to

    Button links and images

    I'm afraid I don't understand either of your questions. Associating an image with a button is just a matter of assigning to its Image property. You can use Image.FromFile to load one from disk.
  • 08-13-2005 18:22 In reply to

    Button links and images

    I've 2 problem:

    1) load an aspx page when I click on a single button: how to associate links for each button of the bar?

    2) see a different image in each button: I've an image in my application folder... now I want to see the image in the button; witch is the code for see the image in the button?
  • 08-16-2005 9:21 In reply to

    Re: Button links and images

    1. Every button has an event that fires when it is activated, you can put whatever code you like in there. You can open an url in the default browser by using System.Diagnostics.Process.Start.

    2. You can load an image from file with the static Image.FromFile method and assign that to the Image property of the button in question.
Page 1 of 1 (4 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems