Add images and Text to my quiz application (C# Desktop) - c#

I have Quiz web application which the admin can add a question; this can be text and images . The options can also be text and images as seen below.
I have been asked to reproduce this in a redistributable desktop application using c#.
I am finding it difficult to do this sine there is no single control in windows forms that can display both text and image.
I have attached some graphical illustrations below.

If you need a control that contains an image and text, why not building a UserControl that takes both?
(If you are working with graphics, I would recommend WPF.)

Related

How to embed camera in Xamarin form and take image with custom button click?

So as you can see in the above image I have an requirement to embed camera in Xamarin form based android application (Not native android) and show the saved path in label (Storage location).
Right now I am able to do is on button click but its opening the camera and from there when i take image its navigating back to the app but my requirement is that camera should open within the app it self instead of navigation.
I have gone through with Xamarin.Forms Custom Renderers but so far not found any working code.
It will be great if anybody can provide me the same ..looking forward...

How to write text on image in windows store app development? C#,wpf

I have search so much on this topic and I couldn't find a way to draw a text on image or even a create an image and then draw a text in windows store app.
Is there way to load image from ms-appx:///Assets/image.png and write a text on the center of the image that passes somehow and save it into ms-appdata:///roaming/image11.png?
Use RenderTargetBitmap - this article has a pretty good explanation for Windows Store apps: http://social.technet.microsoft.com/wiki/contents/articles/20648.using-the-rendertargetbitmap-in-windows-store-apps-with-xaml-and-c.aspx.
If you meant WPF, it's similar: http://wpftutorial.net/BitmapFromVisual.html (just create a image control with textbox for the Visual)

Picture in picture video chat in WPF

I'm adding a video chat component to an existing application that will have picture in picture functionality. My questions is, due to the "airspace" problem, how can picture in picture be accomplished?
I have two activeX controls, one for the remote video feed, and one for the local video feed. They are both wrapped in their own border and I would like to show the local video and its border in the corner of the larger remote video feed. The local video renders on top of the remote video just fine (although I'm kind of confused by this because I thought that you couldn't have anything on top of an activeX controller due to airspace) but the border that contains the local video gets rendered behind everything so that you cannot see it. I've tried setting the ZIndex of the border, however, this doesn't work.
I'm just wondering how I can accomplish a form of PiP that is similar to what's used in Skype or Microsoft Lync.
EDIT: Would it be possible to simply use a popup window for the PiP? You could create the illusion that it isn't a popup pretty easily. A popup could render on top of the activeX control right?
upgrade to .net 4.5. Supposedly they solved the "airspace" problem (airspace is solved link). But, given that you are posting here I'm guessing you can't use .net 4.5?

How can I make a windows application that doesn't have a square form shape?

I want to make an application that is similar to the World of warcraft launcher.
My main concern is to not have a square windows form with the typical close buttons, but a custom shape. How can I achieve this with C# and the .NET framework?
Here's a tutorial on Creating Irregular Non-Rectangle Windows using WPF.
Consider this tutorial for creating Shaped Windows in WPF. It's got sample code in C#.
There's a great piece of source code at http://www.codeproject.com/KB/GDI-plus/CsTranspTutorial3.aspx that allows you to make a form based off of any image with an alpha channel (like a .png), so that the transparent parts of the image correspond to places where you see through the form.

Free WinForms image editor control

There are a lot of image editors in C#, but I need only the control, that encapsulates the editing and that I can place on my own host form.
Does anyone know of any such controls?
I got answer refer this
http://web.archive.org/web/20150302041833/http://www.codeproject.com/Articles/22776/WPF-DrawTools
This article describes the program that allows one to draw graphic objects on a WPF window using the mouse and certain drawing tools. The program supports the following tools: rectangle, ellipse, line, pencil and text. My first DrawTools article shows how to do this using Windows Forms. In the WPF version, I implemented a number of additional features requested by previous article readers:
Text tool XML serialization Drawing overlays on a background image Printing Zoom
Most of the requirement is completed by this reference
EDIT: As of 08/09/2015 the linked article was removed from http://www.codeproject.com

Categories

Resources