Results 1 to 12 of 12

Thread: [RESOLVED] 2xform + module + opacity.help?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Tamworth, UK
    Posts
    82

    Resolved [RESOLVED] 2xform + module + opacity.help?

    Hallo.
    Well, I need a wee' bit of help,
    I've never used a module before, so im not really sure what one is, from what i gather its a 'link' that joins two forms together, Or something along those lines.

    For my Assignment (which i've done now btw :P)
    I've got a main for - a about form and a help file (.chm)
    The About form is also like a settings form, In the about form i've got a trackbar. The trackbar controls form1 (mainform)'s opacity.
    How would i link the trackbar in the about form to form1?
    Would i use a module?
    and if i do, how?

    Thanks in advance!
    Kankerflecken.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: 2xform + module + opacity.help?

    A module is used to store code and variables that can be shared by all forms in your project.

    This doesn't sound like you would need one.

    However, I'm unsure what you are trying to do.

    What does "How would i like the trackbar in the about form to form1"

    Do you mean "Link"?

    If so, what do you mean by "Link"

    What would Form1 be doing to/with the trackbar on the about form?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Tamworth, UK
    Posts
    82

    Re: 2xform + module + opacity.help?

    Quote Originally Posted by Hack
    A module is used to store code and variables that can be shared by all forms in your project.

    This doesn't sound like you would need one.

    However, I'm unsure what you are trying to do.

    What does "How would i like the trackbar in the about form to form1"

    Do you mean "Link"?

    If so, what do you mean by "Link"

    What would Form1 be doing to/with the trackbar on the about form?
    Sorry, didn't proof read. Although i changed in my edit :')

    Well, okay.

    I want the about form's trackbar to control the main forms opacity.

    If that makes sense?
    Kankerflecken.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Tamworth, UK
    Posts
    82

    Re: 2xform + module + opacity.help?

    Btw, awesome response time!
    Kankerflecken.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: 2xform + module + opacity.help?

    How does it perform this task on the about form?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Tamworth, UK
    Posts
    82

    Re: 2xform + module + opacity.help?

    Quote Originally Posted by Hack
    How does it perform this task on the about form?
    How?
    Well, i dont really understand the question, the trackbar in the about form controls the main forms opacity?
    Sorry
    Kankerflecken.

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: 2xform + module + opacity.help?

    Aren't you running some kind of programming code to tell the trackbar what to do and how to do it? Because, you can call code on one form from another.

    (BTW: I've no clue what you mean by TrackBar. Is this some kind of third party control?)

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Tamworth, UK
    Posts
    82

    Re: 2xform + module + opacity.help?

    ah, fook!
    i forgot to mention its for vb.net and vb6 doesn't have a trackbar funtion!
    Sorry
    ()
    But i want to use this concept in other apps' (vb6 that is)

    Yes, thats what i dont understand, How can i control something in a form (form1) from another form(form2)
    Understand now :')
    btw, sorry - stupid mistake!
    Kankerflecken.

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: 2xform + module + opacity.help?

    No problem.

    I'm sure these folks over here can help.

    Moved

  10. #10
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: 2xform + module + opacity.help?

    here is a sample project
    Attached Files Attached Files

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Tamworth, UK
    Posts
    82

    Re: 2xform + module + opacity.help?

    Hey, Yeah sorry - I forgot about that.
    College MAKE us use vb.net, however i prefer to use vb6, never mind .

    Ah, thanks kleinma
    However, im using vb.net 2003 and i cannot open it, but i did open it in wordpad and i;ve got a problem - ACTUALLY ignore that, I've got it

    Thanks alot Kleinma, really helpful!
    Kankerflecken.

  12. #12
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [RESOLVED] 2xform + module + opacity.help?

    yeah many things in .NET 2005 work backwards in 2003 if you copy/paste the code in...

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