Results 1 to 4 of 4

Thread: Load Icon in vb.net

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    57

    Load Icon in vb.net

    Hi

    The way I use to set Icon in VB6 at runtime for all my forms for any app. was Me.Icon = LoadPicture(App.Path & "\XYZ.ico").

    How can I set Icon at runtime to a form in Vb.net?

    Thanx.
    when u get an error, means u r code getting executed

  2. #2
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271
    why do you want to set it at start up?

    Why not set the forms Icons at development time?
    §tudz

    Studzworld.com - Portfolio

  3. #3
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    you mean like this...
    VB Code:
    1. [FONT=courier new][color=blue]MyBase[/color].Icon = New Icon("C:\6.ico")[/FONT]
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  4. #4

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    57
    Hi

    Thanx for your reply

    §tudz if I have a project with forms say around 70 - 80 and suppose somewhere down the line if I have to change .ico file then I have to change it alltogether in each form manually, rather over here change the file name thats it.

    dynamic_sysop this is what I want Thanx
    when u get an error, means u r code getting executed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width