I have Windows 8.1, MSWord 365, Visual Basic for Application 7.1 and would like to use RTF Textbox control on a Userform. This control can not be seen in Controls windows nor can be found within Available Controls in Additional Controls windows. How can I use it?
Related
I want to add a control to a VBA form that displays a preview of an Excel 365 online file once the user clicks on the file name in a list. I did this successfully in the past using WebBrowser Control:
Now the problem is that this WebBrowser control is based on the extremely old Microsoft Explorer 11. Accordingly as of March 2022 this control stopped previewing Excel 365 online files and instead is showing a blank page. So it is working, but not properly since it is based on a very old technology.
I did some research and found out that this control has been replaced by Microsoft WebView2 which is much more modern but I cannot find a reference for it at all in VBA and don't know how to add this control to my VBA form.
Can someone let me know how to display webpages properly on a VBA form in 2022? Thanks! :-)
I'm writing a simple VSTO add-in for Office. When the user clicks a button a single form appears, and on the form there are some single-line textboxes, some buttons and some labels. This is all in VB.NET.
Everything works as expected - except I cannot tab between controls on the form. I have set the TabIndex and TabStop properties (actually, left them at defaults, which look OK). I've also tried programmatically setting TabIndex and TabStop in the form's Shown handler - but this made no difference. Changing runtime from .NET 4.5 to 4.6 makes no difference.
The odd thing is that if I use exactly the same form (copy & paste the .vb file) in a Windows Forms App, the tab stops work. It seems there's something about this VSTO project (or perhaps all VSTO projects) that is stopping tabbing working.
I am using Visual Studio 2017 and the host application for the VSTO addin is MS Project 2016.
The difference between a standalone WinForms application and your Office add-in is the host application (can be MDI or SDI application).
Most probably you need to specify the parent window handle to the Show method. The method accepts an instance of the IWin32Window interface which represents the top-level window that will own this form.
Is there a control that can enable me to put a Windows Explorer widget inside an Excel Userform?
Or at least show objects/icons from a path.
Thanks!
We have a Developed a VSTO Add-In (Excel Add-In) Application with couple of Buttons in the Ribbon.
On Starting/launching the Application, It launches excel Instance. On the Button Click We are instantiating the WPF window having some Input Textboxes for the user to Enter the Values.
The Issue here is When we try to type in the Textboxes, It types it in the Excel window.
The Wpf window runs under the same process of the Add-In which is (Excel Process).
could you please suggest a solution foe this issue.
THANKS
Amol
I'd suggest running a Windows form instead. Or you can try to place your WPF controls on the Windows form. Does it work as expected?
Just started using Visual Studio 2008 and was hoping to convert my VBA UserForms to VB.NET with the intent of upgrading my antiquated UserForm controls to newer Windows form controls that match the operating system.
The Windows forms I create in Visual Studio look great, but when I load them in PowerPoint or Excel, the form controls look just as ugly as they did before (e.g. plain, rectangular buttons).
Is there a way to employ modern controls in my Windows forms using VB.NET in Visual Studio?
You either use one of the many available custom drawn buttons. Or it could be that you have to turn on visual style to make them render better http://dotnet.mvps.org/dotnet/faqs/?id=xpvisualstyles&lang=en