Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Custom Control

Custom Control

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lasse Johansen
    wrote on last edited by
    #1

    I have a problem: Try make a new custom control(usercontrol1). In this control, you add a listbox which goes beyond the bounderies of you usercontrol1 and insert as many strings so these as well goes beyond the bounderies. That is it, compile it. Now try add usercontrol1 and a button control to a webform. Since the listbox goes beyond the the bounderies, you add the property (autoScroll = true ) to usercontrol. Compile and run the program. You now use the scrollbar to go to the last element in the listbox and select this. You now push the button, and then you select the second last item in the listbox. Now you will see that the usercontrol scrolls to the top.... WHY? I think it it because the control is being ScrollControlIntoView, but how to prevent that? Thanks in advance... Gooky

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups