![]() Likewise if you’d want to integrate a Bunifu Horizontal and Vertical ScrollBar in a FlowLayoutPanel, here’s the code:īunifuHScrollBar1.Value, bunifuVScrollBar1.Value) īunifuHScrollBar1.Value, bunifuVScrollBar1.Value)Īlso, feel free to play with some design ideas around this and more. If you’d want to integrate only a Bunifu Vertical ScrollBar, here’s the code:į, bunifuVScrollBar1.Value) į, bunifuVScrollBar1.Value) For example: bunifuHScrollBar1.ThumbLength = 30. (5) You may also change the thumb’s size using the property “ThumbLength”. flowLayoutPanel1.AutoScrollPosition = new Point(īunifuHScrollBar1.Value, ) īunifuHScrollBar1.Value, ) (4) Then, inside the “Scroll” event, write the code below to make things happen: (3) Add a Bunifu Horizontal ScrollBar to your Form and then double-click on it to take you to its “Scroll” event. (2) Add a number of controls to the FlowLayoutPanel to bring-up the horizontal scrollbar. (1) Add a FlowLayoutPanel control to your Form and set the property “AutoScroll” to false. To integrate a Bunifu Vertical or Horizontal ScrollBar to a FlowLayoutPanel: This reply was modified 3 years, 11 months ago by Wilfred Kimura. SetMaterialContextMenu(BunifuMaterialTextbox1, ContextMenuStrip1) SetMaterialContextMenu(bunifuMaterialTextbox1, contextMenuStrip1) Then, you can use the written methods in this manner: Public Sub SetMaterialContextMenu(ByVal bunifuMaterialTextbox As .BunifuMaterialTextbox, ByVal contextMenuStrip As ContextMenuStrip)įor Each control As Control In bunifuMaterialTextbox.ControlsĬontrol.ContextMenuStrip = contextMenuStrip Public void SetMaterialContextMenu(.BunifuMaterialTextbox bunifuMaterialTextbox, ContextMenuStrip contextMenuStrip)įoreach (Control control in bunifuMaterialTextbox.Controls)Ĭontrol.ContextMenuStrip = contextMenuStrip / Sets your own custom Context Menu to any Bunifu Material Textbox control. If so, simply add your own ContextMenuStrip to your Form (with some items in it if you want it to display or none if you don’t) and use this method to set your added Context Menu to any Material Textbox control in your Form: I believe you’re trying to use your own Context Menu with the Bunifu Material Textbox…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |