Results 1 to 10 of 10

Thread: Is there a way to show an animated character on a form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    476

    Is there a way to show an animated character on a form

    Hi,

    I have an application and when it starts all the controls on the form are DISABLED except one. Now as the user start to enter data in the first one few other control becomes ENABLED. I am told to show some thing on the screen by the controls that become ENABLED to point out that these ones are now ENABLED and then when more become ENABLED then move that thing to those newly available controls.

    I want to either change the colors of those becoming ENABLED or show an animated little character of some kind to take the attention to those newly ENABLED controls. Is there a way to accomplish this? Have someone did this kind of thing who can DIRECT me to a correct path?

    Thanks in advance.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Is there a way to show an animated character on a form

    There is an ENABLE property of forms, which greys out the field, and locks it from input. You can also change the .BackGround color of the textbox if you want to draw attention to it. You can also change the .ForeGround color of a textbox to let the user know if they've made a mistake.

  3. #3
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    Re: Is there a way to show an animated character on a form

    also what u can do is once one field is filled, another shows up and the form resizes accordingly.

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

    Re: Is there a way to show an animated character on a form

    If you are making a game, then animation is fine.

    If you are doing a business application, then I would avoid that and go with dglienna's suggestion.

    (If any programmer in my shop ever put something animated on one of our screens (with the possible exception of a file moving from one folder to another simulating a copy/move), he/she would be lined up against a wall and unceremonously shot, hung, then fired. )

  5. #5
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Is there a way to show an animated character on a form

    i think the poster is looking for something like a Helper (Clippit like in MS Word), which can draw your attention whenever something new or extraordinary happens.

    @Hack, and Word is not a Game.
    Show Appreciation. Rate Posts.

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

    Re: Is there a way to show an animated character on a form

    Quote Originally Posted by Harsh Gupta
    @Hack, and Word is not a Game.
    Where do you see Word mentioned?

  7. #7
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    Re: Is there a way to show an animated character on a form

    You can make images like arros or something and place the image boxes on the form accordingly. When the menu becomes enabled, you can have a timer run and set the visibility of the image for that menu item to TRUE for a few seconds and then set back to FALSE.

    Something like an arrow and then you can make a label on the screen at like the bottom say something like "New MENU options are available"
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

  8. #8
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Is there a way to show an animated character on a form

    Quote Originally Posted by Hack
    Where do you see Word mentioned?
    well i was trying to explain it by an example MS Word and i m really sorry, i misunderstood your previous post.
    Show Appreciation. Rate Posts.

  9. #9
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Is there a way to show an animated character on a form

    I have done this many times..

    Like this:
    Add a textbox.. Text1 Copy and paste it 8 times so you have an array 0 to 8
    VB Code:
    1. Private Sub Form_Load()
    2. For x = 1 To 8
    3.     Text1(x).BackColor = &H8000000F
    4.     Text1(x).Enabled = False
    5. Next
    6. End Sub
    7.  
    8. Private Sub Text1_Validate(Index As Integer, Cancel As Boolean)
    9. If Index = 0 Then
    10.     For x = 1 To 4
    11.         Text1(x).BackColor = &H80000005
    12.         Text1(x).Enabled = True
    13.     Next
    14.     Text1(1).SetFocus
    15. End If
    16. If Index > 0 And Index < 5 Then
    17.     For x = 5 To 8
    18.         Text1(x).BackColor = &H80000005
    19.         Text1(x).Enabled = True
    20.     Next
    21.     Text1(5).SetFocus
    22. End If
    23. End Sub

    this greys them out at start.. and after you attempt to leave the first textbox..
    at enables 1 thru 4 and sets them back to window background default..

    the swithc from button background color to window color is enough to "show" the use more are ready for input..
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  10. #10
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: Is there a way to show an animated character on a form

    Quote Originally Posted by Newtester
    Hi,

    I have an application and when it starts all the controls on the form are DISABLED except one. Now as the user start to enter data in the first one few other control becomes ENABLED. I am told to show some thing on the screen by the controls that become ENABLED to point out that these ones are now ENABLED and then when more become ENABLED then move that thing to those newly available controls.

    I want to either change the colors of those becoming ENABLED or show an animated little character of some kind to take the attention to those newly ENABLED controls. Is there a way to accomplish this? Have someone did this kind of thing who can DIRECT me to a correct path?

    Thanks in advance.
    Hi,
    About animation you can also use the MouseEnter system EventsArgs and a ToolTip. ToolTip for a Text and the MouseEvent for playing a sound when passing over a Button for example!

    Wkr,

    saprrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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