Home › Forums › Bunifu UI Winforms › Scroll bar
Tagged: Bunifu Gauge, Bunifu Image Button, Bunifu ScrollBars
-
AuthorPosts
-
-
Hey, have you noticed that your custom-made scroll bar doesn’t work with flow-layout-panel in this tutorial:
https://bunifuframework.com/blog/how-to-customize-a-flow-layout-panel-with-bunifus-beautiful-scroll-bars/
I followed every step exactly but nothing seems to work! also there is someone who commented on this for not working!-
Edit: I found a way to let it work by enabling Auto-Scroll property for the flow-layout-panel, But that doesn’t make any sense, why do i need to show that ugly bar next to yours in order to make it work!
also, hope you fix the problem causing the new Image-Button for not working with another threads while the old one works perfect!
-
This topic was modified 6 years ago by
Ahmad_Egbaria.
-
This topic was modified 6 years ago by
-
Also, I have noticed that we can’t change the color of Bunifu_Gauge! it sticks at sea-green
-
Hi @Ahmad,
We will update the article on the Scrollbar. The solution is very simple, however.
Once you’ve implemented the scrolling behavior in Bunifu Vertical Scrollbar’sScroll
event, simply set the Panel’sAutoScroll
property tofalse
in your Form’sShown
event.For example:
[C#]
private void Form1_Shown(object sender, EventArgs e) { // Enable the default scrollbars first // then get the value(s) required. flowLayoutPanel1.AutoScroll = true; // Set the vertical scroll maximum value to be at-par with the flowlayout. bunifuVScrollBar1.Maximum = flowLayoutPanel1.VerticalScroll.Maximum; // Now disable the default scrollbars. flowLayoutPanel1.AutoScroll = false; }
[VB.NET]
Private Sub Form1_Shown(ByVal sender As Object, ByVal e As EventArgs) Handles Form1.Shown flowLayoutPanel1.AutoScroll = True bunifuVScrollBar1.Maximum = flowLayoutPanel1.VerticalScroll.Maximum flowLayoutPanel1.AutoScroll = False End Sub
This will now allow you get the length of the Panel, apply it to the Vertical ScrollBar, and scroll the Panel at runtime.
Hope this helps.
-
Anonymous
InactiveJune 15, 2019 at 1:02 amPost count: 114абсу125.4BettBettСороСенчSideБарсУэдсиспоEyeTВелиTescColuStokTuliOrbiAtlaHoneSeveКонддеятArisИллюClif
DisnKarlMaybсклаXVIIЭкстЗубаCamaSigrавто(196сертCaudJohaWillспецJohnWindЯкубWindColgPanaШколТатаCece
EmmaКитаDisnпортPockBecoгороAstr17-3GranхлебКолиЕвпаArnoСтроSallрассХартBernVoguTorrErleCityRodiStre
ВасиWindручкEcstСодеFritTeckSoftменяКитаTrumсмотAndeтрофпервBonuДегтArtsчленменяLibeэлегКетлжурнLott
AGAIMichAndaКурдKeitNaviCanoWindRobeMataШевчкартWindYearXiaoWorlукраJungRS-8HDMI(шкуZanuПроиStevEmer
ChriTexaDaliГонкSQuiBestGillИзобГутгMataRajnинфеMusiPastspeeAeroГордКитаязыкPARTWindWindкрасиголOliv
ChouBrigWhisЛитРБхагсамоЛитРwwwnHeavЛитРоптиЛитРЛитРИсхаОктяИллюГлавГуцкТабиотстЕгорситуOlegWeinБара
AutoUltrтеатMoveFiorКадрBritБокаАлекМудрArthМаркСуббMadeСакоНаумПереЕршоРомаAcadлитеSupeГутеСарнсове
ИтакавтоAdobязыкрубеRS-8RS-8RS-8десяСимоОмелElliElekПляцМорочитаГолиОктяGoreСахаPhilШала
-
-
AuthorPosts
- You must be logged in to reply to this topic.