Hi Luca,
I knew about the e.Cancel in the OnFormClosing, that’s why I was expecting the same in OnDeActivate. I hadn’t thought about calling the Activate method in the OnDeActivate event.
However, when I did it, I got stacked in a stackoverflow. It looks like the activation in the deactivate event keeps firing in a loop. Unless I haven’t understood your comment above “In the activation/deactivation process Wisej checked whether the deactivated form has reactivated itself” and I should be doing something myself.
I have attached a simple project which shows the problem. Go to the second MDI tab: with the textbox empty, you can freely switch tabs. If you enter “1” in the textbox and try to switch, the operation is caught in the deactivate/activate chain and the stackoverflow occurs.
Best,
Alex
Hi Alex,
You can prevent a form (including mdi children) from getting deactivated by calling Activate() in OnDeactivate(). In the activation/deactivation process Wisej checked whether the deactivated form has reactivated itself.
You can also prevent a form (including mdi children) from getting closed by setting e.Cancel=true in OnFormClosing().
Best,
Luca
Hi Ewan,
Hopefully yes, but it will not be based on the toolstrip since the toolstrip system is targeted for the second release – it’s a big beast. The BindingNavigator is essentially simply a toolbar that uses the navigation methods on the BindingSource.
Best,
Luca
Hi John,
UseVisualStyleBackColor is a Winforms only property that can be safely removed.
You will get errors for the BorderStyle and FormBorder as well since we have used values that are consistent with the web rather than replicate obsolete properties.
Wisej can replace Winforms and it’s designed as close to Winforms as possible without replicating properties and functions that don’t make sense in a web environment. All controls in Wisej have a lot of new and extended features when compared to their winforms equivalent.
Best,
Luca
Hi Luca
How is work on the Binding Navigator Progressing?
Is it still on target for the release in November?
Many Thanks
Ewan
Tried that in TextBox but not in ComboBox yet. Test it later.
Thanks.
One more thing, if you want to update the client with the selected range, make sure that the textbox or combo has the focus. Wisej will not send back the selection range unless the control is focused. The reason is that the browsers change the focus when the selection range is applied.
Yes, it’s the same. Same fix and workaround.
Hi Luca,
This bug also seems to apply in ComboBox when I was using a KeyUp event. If you don’t mind, maybe you can also check it.
Thanks.
Yes, thanks. Confirmed bug and fixed in the next update.
As a workaround, set the SelectionLength to 0 or higher before setting the SelectionStart.
Yes, in fact it’s being used for the tests.
You can already use it with the AspPanel if you create an aspx page.
Hi Ewan,
See answers below:
Best,
Luca
Hi
Is there a custom combo box drop down option?
So you can create such things as a multicolumn combo box or a combo box with a drop down tree view both of which I use extensively?
With a multicolumn combo box you need a way of resizing the drop down height to reflect the number of searched for items together with a maximum height before the grid starts paging or scrolling if paging is not an option
Ewan
Thanks Luca
Once the wrapper is complete would I be able to use it to wrap Report Viewer?
Thanks
Ewan
Hi Luca,
Got it working using the ForeColor property and the built-in theme. There is no such property in WinForm and I was surprised.
Thanks.
Yeah, in the beginning I hadn’t put the AssemblyInfo and the Platform in the “client” project, I did it just for checking… The actual problem was of course that I had forgotten this …. small detail, to set the property to true… Duhh!
Thank you Luca!
Alex
Hi Alex,
Two issues:
Best,
Luca
Hi Luca,
I meant your attached, but for your convenience I have now included it. I have added a new TestComboBoxEx project with its own Window1, referencing your project. I have changed the AsseblyInfo.cs and created a Platform folder with the javascript in it. If I run it, the loader icon does not show up. If I change the startup project to your project, and its own Window1, it does.
Best,
Alex
Hi Luca,
I was actually looking for MultiSelect property and didn’t notice that MaxSelectionCount. Sorry.
Thanks for the info
Yes, unfortunately the collapsed state at design time is still a pain. Getting there though…
/Luca
