InputFormTextBox not supported in SharePoint 2010 sandboxed solutions - sharepoint-2010

I'm trying to build a sandboxed solution visual webpart that includes a richtext field, the inputformtextbox control, and it looks like the better part of the Microsoft.SharePoint.Webcontrols namespace isn't available in sandboxed solution? Is this true? Has anyone come across a workaround for this?

There's a workaround, the Ajax libraries have a Richtext editor.

Related

Vb.net Mobile Application

I've been assigned a school project in which we're asked to develop a survey app for device/mobile use using VB.net.
I've started learning some Visual Basic, yet I'm failing to understand the following. I've downloaded Visual Studio 2017, do I need to download something extra so that I'm able to program for a mobile device? Or what is it that I need to do? I'm quite confused, I'd really appreciate some sort of help with understanding what's going on. I've been searching on the Internet quite some time now, and all I've found is "Visual Basic for Windows Phone Developer Tools - RTW", which is a version for 2010 and I'm not quite sure if it's what I need anyway. Another thing I've found is Xamarin.
Any help will be highly appreciated and excuse me for such a dumb question.
You're probably looking for Xamarin. It lets you use C#, F# and VB.NET code to develop cross-platform apps including native apps for iOS and Android.
Note that Xamarin doesn't completely or directly support VB.NET. You'll have to do the following steps to get started:
Create a new C# solution of the type Mobile App (Xamarin.Forms). You need to have the Mobile Development with .NET workload installed for this.
In said solution, add a Visual Basic .NET Class Library (.NET Standard). After creating the project, right-click it, click Properties, and change the Default Namespace to match the existing C# project(s).
Right-click the VB.NET project again, click "Manage NuGet Packages", then install Xamarin.Forms.
After this, you will want to rename Class1.vb to App.vb. Paste the following starter / example code there:
Imports Xamarin.Forms
Public Class App
Inherits Application
Public Sub New()
Dim label = New Label With {
.HorizontalTextAlignment = TextAlignment.Center,
.FontSize = Device.GetNamedSize(NamedSize.Medium, GetType(Label)),
.Text = "Welcome to Xamarin.Forms with Visual Basic.NET"
}
Dim stack = New StackLayout With {
.VerticalOptions = LayoutOptions.Center
}
stack.Children.Add(label)
Dim page = New ContentPage
page.Content = stack
MainPage = page
End Sub
End Class
Update the Android and iOS projects so that they reference the Visual Basic .NET project(s), rather than the C# project created by the template. Right-click on the References node in the Android and iOS projects to open the Reference Manager. Untick the C# library and tick the Visual Basic .NET library instead. Do this for both iOS and Android. Finally, delete the C# project. You can now develop your Xamarin project in VB.NET by adding more .vb files as necessary.
Unfortunately, VB.NET has a few limitations in regards to Xamarin:
You can't write custom renderers or dependency service implementations in VB.NET. These must be written in C# or F#.
You can't include XAML pages in VB.NET projects. You'll have to use a workaround that involves including XAML pages in a seperate, C#-based, portable class library, referencing it, and populating the XAML models with VB.NET through databinding. Alternatively, this may be of help for using XAML with VB.NET.
More info can be found at Microsoft's website.
I know this question is three years old, and that lots of time has passed since that school project, but I hope this answer was helpful to you regardless, and / or that it will be helpful to others who have the same or a similar question. To anyone about to write Xamarin apps in VB.NET or who is currently doing so, I wish you the best of luck!

What is the recommended way to add Help to my MS Project VSTO add-in?

I can't seem to find a simple answer. Is there a recommended way to do this? I'd like to build my help files as I build out my functionality.
VSTO doesn't have extensible Help. You have to add it wherever it makes the most sense for you: in the ribbon, a task pane, the backstage (File menu), context menus, etc.

Is it possible to extract an icon from an old Visual Studio project?

I have an old VB project that I'm converting from WinForms into WPF. I was re-creating the user interface without problems until I tried to locate the Icon that the old application uses. I can't find it in the project files and I can't see a way in visual studio to export it.
Anyone know of a way to accomplish this? I'd like to keep the UI as close to the old UI as possible (users don't like change).
You can extract icon resources from your file. See a free app to do it:
nirsoft.net/utils/resources_extract.html

Sharepoint 2010 Masterpages

I am helping a client correct a masterpage issue. I have close to no experience with SP2010 so I may be missing something simple.
The site is referring to a custom master page special.master. How can I find this file and edit it?
The masterpage is saved in the database rather than on the hive, so you can't edit the file just using VS2010 without first retrieving it from the database(and then upload it again). OR, you can edit it from SP Designer, as moi_meme has described.
use Microsoft Sharepoint Designer 2010 and find it in the masterpage library
see this video How to create a Master Page in SharePoint 2010 Designer

Windows Workflow 4.0 Activities not being added to the toolbox

I've created a class project in VS 2010 Beta 2. I've added one Activity to it. Saved it. Created another Activity. I would expect the first Activity to appear in the toolbox so I could drag it into my workflow, but it's not. Any ideas?
I had this problem with Visual Studio 2010 RTM as well. I wrote a blog post with a potential solution here.
Essentially, the toolbox doesn't load your custom activities if you have two projects in your solution that share the same folder.
Make sure your Custom Activity class is marked as public.
I experienced this issue too. My workflow service project was part of a solution with other projects. I removed the workflow service project from the main solution and created a new solution only containing the workflow service project. After a build, the custom activities were generated and listed in the toolbox.
I don't know if this is still relevant for you but I had the same problem.
I could solve it like this:
Right click on the Toolbox to open context menu.
Select Choose Items...
Select the tab System.Activities Components
Click on browse and select the dll that contains the custom activity
Make sure that the activity shows in the list and is checked
Click OK
Not really the same question but in Visual Studio 2012, on a 64 bit windows, I had a 64 bit application with CodeActivity and NativeActivity and they were not showing up in the toolbox. I changed the application to AnyCPU and built it, and the activities are now displayed...
I hope it will help someone :)
I resolved this by creating a Windows Workflow 4.0 Console application and then removing out the Program.cs. Very odd, but it worked.