c# - Scrolling Troubles -


I have a window form and a flow layout panel on the form. I'm dynamically adding text boxes to the flow layout panel and correcting the auto scroll for the flow. Dynamic text boxes in the panel show very wrong. Can there be a vertical scroll bar that will scroll the data in the flow layout panels along with the form of windows?

I have tried to correct scrolling property with auto-wrap, and wrap the consultants wrong, but only adds the scroll bar to the flow layout panel, not the whole form. I also tried the code to add a scrollbar, which is successful, but it will not just show the form layout panel, a way to use 1 scroll bar on the right side of the form to scroll form and flow layout panel is?

In this way, the code I used to create the scroll bar is as follows.

  VScrollBar scrollbar 1 = new VScrollBar (); Scrollbar 1 Doc = DocStyle. Right; Controls.Add (scrollbar1); Edit # 1 ---- I also tried to add the scroll bar as both forms along with the form layout panel and it did not even display the scroll bar.  
  VScrollBar scrollbar 1 = new VScrollBar (); Scrollbar 1 Doc = DocStyle. Right; Controls.Add (scrollbar1); Flowlayoutpanel1.Controls.Add (scrollbar1); Edit # 2 ---- I want a scroll bar that is able to scroll through the entire window form, both for the form of windows and the flow layout panel.  

Edit # 3 ----- The above "possible answer" is not applicable to my question because it only shows how to add vertical scroll bar to the panel, not a scroll bar itself

Be sure to control your control as follows: Is:

  FlowLayoutPanel Autosys = true autosolol = false WrapContents = true anchor = top Shyk) | Left (optional) Mainframe autosolol = true  

Depending on our chat, you should have settings to get settings!


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -