Citrix Authentication SDK Get Bitmap for found Citrix Resources -- 2
$10-30 USD
Paid on delivery
In the tutorial of Citrix SF SDK (available as extension to VS2013) there is a method in the CitrixHelper class that do GetResources
The method gives me some resources and I want to create buttons for each resource.
The problem is how to get the bitmap from the [login to view URL] property.
tried code like
ResourceManager rm = [login to view URL];
Button resourceButton = new Button();
...
[login to view URL] = (Bitmap)[login to view URL]([login to view URL]);
[login to view URL] = [login to view URL];
Debugging the [login to view URL] it gives a string like
"Resources/ICon/gsfhsSOMEBASE64hghj==?size=48"
The task is to get that string to a meaningful picture.
How do I populate the button with the icon/bitmap from [login to view URL] ?
You must have a working Citrix SF environment and be able to use the Citrix standard login thru a webbrowser.
You must have VS2013 and .Net 4.5 and the Citrix Extension installed.
Here is how to create a testing environment in VS2013
http://blogs.citrix.com/2015/01/21/build-your-own-citrix-receiver-now-its-easy/
Simply walk thru:
VS2013 -> New Project -> Citrix -> Storfront API demo
change SF ip and web
(be sure that you can access the SF with a Citrix standard Web login usin a browser)
There is a Form1 in the project
add a Picturebox somewhere
add a button
create event on button
using SF_SDK_FullApiDemo3.Properties; // added because of my try with ResourceManager
....
private void button1_Click(object sender, EventArgs e)
{
// Login and Get Resources must be done before
// A resource must be selected.
//get the tag from the selected list view Item..
CitrixApplicationInfo appInfo = (CitrixApplicationInfo)listView1.SelectedItems[0].Tag;
// Debugging gives that appInfo.AppIcon = /Resorces/Icon/gdfhgdSOMEbase64hhgj==?size=48
ResourceManager rm = Resources.ResourceManager;
pictureBox1.BackgroundImage = (Bitmap)rm.GetObject(appInfo.AppIcon);
pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
}
The task is to populate the image with some meaningful image without having to have some logic inside the project. The Web login gives images on the Resources and I want the same icon/image to appear in this demo.
The solution may appear at
http://stackoverflow.com/questions/29629244/citrix-authentication-sdk-get-bitmap-for-found-citrix-resources
http://discussions.citrix.com/topic/363815-c-get-a-bitmap-for-found-resource/
Project ID: #7506391