Results 1 to 2 of 2

Thread: form overall settings

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2001
    Location
    Netherlands
    Posts
    25

    Unhappy form overall settings

    Hello all, i'm trying to make a routine that sets the icon.
    I want to load it before i show the form.

    I know the name of the form.

    I tried:
    Sub Load_Formicon(ByVal inp As String)
    inp.Icon = LoadResPicture(bm_dll.bmS_icon + CStr(VScrollPic.Value), 0)
    End Sub

    Load_Formicon("MS_ParentDummy")

    and:
    Sub Load_Formicon(ByVal inp As form)
    dim myform as form

    set myform = inp
    myform.Icon = LoadResPicture(bm_dll.bmS_icon + CStr(VScrollPic.Value), 0)
    End Sub

    Load_Formicon(MS_ParentDummy)

    Can someone tell/explain how i should this?

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111
    If you want to load the icon before showing the form, why don't you just do something like the following

    load {formname}
    {formname}.icon=loadpicture({PicturePath})

    As this should work.

    Cheers

    Chris

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