Home › Forums › Bunifu UI Winforms › VScrollBar
-
AuthorPosts
-
-
Hey, I just noticed that you have released a new scrollbar but I have some notes:
1) when you try to Dock that scrollbar you get an exception which will delete it!
2) regarding this new feature, How to use it! I need to replace it with default scrollbar in flow layout panel. How to achieve that!!
3) It would be great if you can make Thumb edges softer (like adding BunifuElipse to it) and to control its radius. -exactly like the one u use on your website) – don’t make it look like a box and I wanna ask, is there any option to make the thumb taller? since it’s really short…
Hope you help me very soon! and thanks- This topic was modified 6 years, 7 months ago by Ahmad_Egbaria.
- This topic was modified 6 years, 7 months ago by Ahmad_Egbaria.
-
Hi Ahmad,
Regarding your issues:
(1) Seems that’s a bug… We’ll fix this issue and release a new version of it. Thanks.
(2) For integration with the FlowLayoutPanel, we can work on an example then post it later.
(3) For the curved style, that’s a new feature we’ll be working on in the next ScrollBar release.
(4) Yeah, you can make the thumb taller by using the ThumbLength property in your code, for example, “ThumbLength = 40”. -
Hi Ahmad,
To integrate a Bunifu Vertical or Horizontal ScrollBar to a FlowLayoutPanel:
(1) Add a FlowLayoutPanel control to your Form and set the property “AutoScroll” to false.
(2) Add a number of controls to the FlowLayoutPanel to bring-up the horizontal scrollbar.
(3) Add a Bunifu Horizontal ScrollBar to your Form and then double-click on it to take you to its “Scroll” event.
(4) Then, inside the “Scroll” event, write the code below to make things happen:
[C#]flowLayoutPanel1.AutoScrollPosition = new Point( bunifuHScrollBar1.Value, flowLayoutPanel1.AutoScrollPosition.Y);
[VB.NET]
flowLayoutPanel1.AutoScrollPosition = new Point( bunifuHScrollBar1.Value, flowLayoutPanel1.AutoScrollPosition.Y)
(5) You may also change the thumb’s size using the property “ThumbLength”. For example:
bunifuHScrollBar1.ThumbLength = 30
.If you’d want to integrate only a Bunifu Vertical ScrollBar, here’s the code:
[C#]flowLayoutPanel1.AutoScrollPosition = new Point( flowLayoutPanel1.AutoScrollPosition.X, bunifuVScrollBar1.Value);
[VB.NET]
flowLayoutPanel1.AutoScrollPosition = new Point( flowLayoutPanel1.AutoScrollPosition.X, bunifuVScrollBar1.Value)
Likewise if you’d want to integrate a Bunifu Horizontal and Vertical ScrollBar in a FlowLayoutPanel, here’s the code:
[C#]flowLayoutPanel1.AutoScrollPosition = new Point( bunifuHScrollBar1.Value, bunifuVScrollBar1.Value);
[VB.NET]
flowLayoutPanel1.AutoScrollPosition = new Point( bunifuHScrollBar1.Value, bunifuVScrollBar1.Value)
Also, feel free to play with some design ideas around this and more.
Hope this helps.- This reply was modified 6 years, 7 months ago by Wilfred Kimura.
- This reply was modified 6 years, 7 months ago by Wilfred Kimura.
- This reply was modified 6 years, 7 months ago by Wilfred Kimura.
- This reply was modified 6 years, 7 months ago by Wilfred Kimura.
- This reply was modified 6 years, 7 months ago by Wilfred Kimura.
-
Hi Ahmad,
In addition to the written instructions, please don’t forget to add the below line of code inside your Form’s
Shown
event in order to set the end-point of the scroll bar’s movement:[C#]
private void Form1_Shown(object sender, EventArgs e) { // Set the maximum scroll value. bunifuHScrollBar1.Maximum = flowLayoutPanel1.HorizontalScroll.Maximum; // You can also set the thumb length here. bunifuHScrollBar1.ThumbLength = 90; }
[VB.NET]
private sub Form1_Shown(ByVal sender As Object, ByVal e As EventArgs) Handles Form1.Shown { BunifuHScrollBar1.Maximum = flowLayoutPanel1.HorizontalScroll.Maximum BunifuHScrollBar1.ThumbLength = 90 }
- This reply was modified 6 years, 7 months ago by Wilfred Kimura.
-
Unfortally didn’t work for me!
why don’t you release a complete new flow-layout-panel with this new scroll-bar just like other companies? it would be awesome! (Hope you do it as fast as possible)– regarding the old Bunifu-drop-down, it still shows a small-white space behind it hope you fix that…
here is an image– also regarding moving from the old drop-down to the new one, the old code won’t work for the new one, for example:
I want to add a full array to its items, so is that correct to doBunifudropdown1.Items.Add(arr);
? (that worked for the old one only!)- This reply was modified 6 years, 7 months ago by Ahmad_Egbaria.
-
Hi Ahmad,
Did you add the Form code posted in the next reply in order to scroll the contents? If not, please do so.
However, more testing will be done on this.Regarding the Bunifu Dropdown issue: try using the
AddRange()
method, for example:
Bunifudropdown1.Items.AddRange(arr);
-
Thanks, I found an error with the new Bunifu drop down can you fix this today? let’s say when the selected index is 2 then make it invisible then visible again the selected index will change again to -1 instead of being 2 (just like the old one)
-
Edit, I also noticed that when I change its Width value from 63 to 100 it became much bigger! (half of the screen) so I set it back to 63 but nothing changed!
-
Hi Ahmad,
Thanks for the quick update… Seems that’s a bug with the Dropdown. We can fix these two issues with the next release of the control. Some testing will also be done in order to fix any other bugs that may appear.
Keep us updated on these and other issues you may come across.
Much appreciated. -
Hello Ahmad,
On the dropdown please check out this tutorial. It may help https://bunifuframework.com/blog/how-to-add-items-to-bunifudropdown-from-database-or-any-other-datasource/
-
AnonymousInactiveJune 15, 2019 at 1:57 amPost count: 114
чуде134.2BettBettColiRoxaJeweДобрЮрадМалеSingFiskDormOrieСолоElegAngeGranViloUlriРаскДумбпрепHervстих
БезыJorgCeraNatuDigiNatiЗамасертRichСапсХудяLCRMсертHansАвтоотлиFranClanLopeЛощиLenoShamLiliСергприш
компСтепЕвсеSelaГогуМаслrockNikoКомиOverБариNoraНазаDougмножвещеГуилXVIIВсерPushSophВащездесБраиSlim
NoraGunsоптиWindPowePentTravArtsКанасертнапесемьWarCстолMaatT6YНRumidiamWarhSwarOverCafeГаниXXIIОрех
JeweIsaoFausМомоСавиSpicПопоGeorчитаMarkГиршGooNT6-YLookToscDigiукраFiatMSC1CarlIdenVestHOTPРыжоПруж
массТимоРазмPerlПетрBestпласАртиPerfMystкомпболеjazzGerbEducEditтемаОвсеBlueBiliWindPoweJuliАртиUnit
днемQueeупакMaleЛитРХелиMelkВласAirdSoloChilДемчЛитРчитаОктяПариКрюккоммKareОстрGeorJeweOZONPeerМеды
GeorWateШeхoBritRUSSRodrВиноуспеDeluавтоГуслШтырназвFromавтоJeweгазеНовиwwwaвоспAdriавтоУшакМартВост
возрSpacЛомоавтопродMSC1MSC1MSC1AdobмузыРоссСемеDougTaraучащКупчTeenBrecBonnавтовремсвяз
-
-
AuthorPosts
- You must be logged in to reply to this topic.