Results 1 to 10 of 10

Thread: Annoying User Control (URGENT- PLEASE RESPOND)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Location
    Toronto, Canada
    Posts
    357

    Angry Annoying User Control (URGENT- PLEASE RESPOND)

    Yes... So... I am working on this pretty big project and I made a "special" control in it that does the scrolling. The control is actually a User Control. Now the problem I am having is that, if I try to use the same control for more than one forms.... It somehow doesn't work and I am tired of trying to figure out why... So what I did for now was that I created each of the components seperately and created a seperate UserControl for them... However now that it is time for me to compile it and put it together... I tried putting a seperate UserControl for each of the forms that need the control to be present and it still doesn't work... Is there any way to get around this...
    Please respond ASAP... the clock is ticking...
    I'd really really appreciate the help...
    Hey... If you found this post helpful please rate it.

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    Unfortunatenaly without any code this problem seems to be impossible answer well, but here is a wild guess: there just might be something in the control that makes it only work for the certain form, ie. direct referation into Form1 or whatever the form is called. Instead there should be referation to the control parent form or container (was it UserControl.Extender.Container).

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Location
    Toronto, Canada
    Posts
    357

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    Sorry About that....
    Ok... I hope you know what a click wheel is... that is the UserControl... I am attaching two components, the main form and the settings form... You can try combining them and if you are able to... then please tell me how you did it... There some parts in the settings form that don't work... because they are yet to be fixed... and... the clickevent of the usercontrol in the main form doesn't work since I cannot put all the forms in the same project without letting this problem occur... Hope it helps
    Attached Files Attached Files
    Hey... If you found this post helpful please rate it.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Location
    Toronto, Canada
    Posts
    357

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    Since there are no replies... does this mean that there isn't a solution to this problem...?
    Hey... If you found this post helpful please rate it.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    Many of us can't open .rar files, so we can't even look at the code, let alone provide a solution.

  6. #6
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    I have attached above as a Zip file.
    Attached Files Attached Files

  7. #7
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    Quote Originally Posted by si_the_geek
    Many of us can't open .rar files, so we can't even look at the code, let alone provide a solution.
    Not a good enough answer :-P

    *real* geeks use RAR compression because of the 15% better ratio over WinZIP (well, actually, real geeks write their own compression, but you get what I mean :-)) so :-P
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    Really True(tm) Geeks use 7zip, because it's MUCH tighter compression for these files (~60k). Unfortunately the forum doesn't allow us to upload this superior file type.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  9. #9
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    Quote Originally Posted by si_the_geek
    Many of us can't open .rar files, so we can't even look at the code, let alone provide a solution.
    IZarc rules, it opens pretty much anything compressed you need to open.

  10. #10
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Annoying User Control (URGENT- PLEASE RESPOND)

    That's enough off-topic posts folks... the important point is that many people dont have the required software (often due to network rules at work), so there are fewer people who can help.


    Back to the point: Well there are a few files missing (such as modProcedures.bas, etc), but I can see a big problem - the project containing your control is not a control project, so it compiles to an executable file instead of to a control.

    When you create a new project you get various options, such as "Standard Exe" (which appears to be what you have) and "ActiveX Control" (which is the one you need).

    What I would recommend is creating a new ActiveX Control project, and adding the code files from your existing Settings project. When you compile it you will get an .Ocx file (instead of .Exe), which can then be added (via "Project"->"Components") to the projects that are going to use the control.

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