Form icon


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Form icon

  1. #1
    Brad Markisohn Guest

    Form icon

    I'd like to put my own bitmap/icon on a form's Caption line instead of the
    one supplied by VB. I can modify the text in the caption, but I'm not sure
    how to change the bitmap/icon. Thanks in advance for your help.

    Brad



  2. #2
    Kenny Acock Guest

    Re: Form icon


    Brad,
    You can change the form's Icon property at design time to do this.

    --Kenny Acock

    "Brad Markisohn" <dbmarkisohn@INDesign-LLC.com> wrote:
    >I'd like to put my own bitmap/icon on a form's Caption line instead of the
    >one supplied by VB. I can modify the text in the caption, but I'm not sure
    >how to change the bitmap/icon. Thanks in advance for your help.
    >
    >Brad
    >
    >



  3. #3
    Larry Rebich Guest

    Re: Form icon

    You can also load the icon at run time, for example:

    Private Sub Form_Load()
    Icon = LoadPicture("c:\mmi-pm\icons\access.ico")
    End Sub

    Actually I use an image list for icons and change them as needed from the
    image list. A resource file could also be used. The only problem with a
    resource file is that the first icon in the resource file is displayed as
    the application's icon by Explorer...

    Cheers,
    Larry Rebich

    More tips link to:
    http://www.buygold.net/tips.html

    Please:
    No personal e-mail questions :-)


    "Kenny Acock" <kennya@teacherspal.com> wrote in message
    news:39c7e21c$1@news.devx.com...
    >
    > Brad,
    > You can change the form's Icon property at design time to do this.
    >
    > --Kenny Acock
    >
    > "Brad Markisohn" <dbmarkisohn@INDesign-LLC.com> wrote:
    > >I'd like to put my own bitmap/icon on a form's Caption line instead of

    the
    > >one supplied by VB. I can modify the text in the caption, but I'm not

    sure
    > >how to change the bitmap/icon. Thanks in advance for your help.
    > >
    > >Brad
    > >
    > >

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center