How to draw XNA window inside a panel? - vb.net

I'm developing a 3d Viewer in vb.net and xna. It's working very well.
I have now a windows form and an xna render window, but I would like to render it inside a panel in the windows form.
I have searched for info, but it's so hard to adapt it into my application.
How can I do it?
alt text http://img299.imageshack.us/img299/384/87117064.jpg
Here is the application.

IMO, you should keep it separate. It is so much easier because you don't have to worry about managing the graphics device. However if you must know, you can find the winforms series on the xna creator's club site. it shows you how to render to a winforms panel
http://creators.xna.com/en-US/sample/winforms_series1
http://creators.xna.com/en-US/sample/winforms_series2

Related

Changing application layout via buttons in VB .NET

Currently I would like to program an application gathering forms that are callable with buttons on the side. For this, I am using the latest build of Visual Studio Community. One way I thought of would be to literally put all the form elements (textboxes, lists, etc.) in the application window and only enable them whenever the according button is clicked on. However, if this is the way to do it, I find it quite messy and unpractical, and I'm pretty sure there's another way around.
After some research, I have learned about the MDI layouts, but they don't suit my taste. I would like to keep everything in one single frame.
Could you give me a hand?

Panorama Control in Universal Windows App

I´m wondering if there´s a way to implement the Panorama Control from Windows phone 8 into Microsofts new universal Windows platform. The look and feel of the Panorama Control is great and I really can´t figure out why Microsoft didn´t implement this Control into UWP.
Actually I´m new to UWP (Coded WinForms Projects, only) and I´m looking for some layouting Standards which can help me to create applications for multiple devices.
In UWP you can use Hub or Pivot controls
Take a look at Navigation design basics for UWP apps

VB.Net form as part of desktop

I've spent a while searching around and I can't find a solution to this:
I have a transparent, borderless form that displays a clock. I can load this just fine, but I want the clock to be part of the desktop, so it cannot take focus, is behind other applications, and is not hidden with Win+D (similar to applications like RainMeter).
I need the solution to work with VB.Net (I'm using 2010)
Thanks in anticipation
Take a look at the following codeproject article:
Application Desktop Toolbars
It seems to do what you require.
This article is about Application Desktop Toolbars, which are
applications that can align to the screen much like the taskbar. The
article will develop a base class for developing such apps.

Silverlight - Lync Application nested in a table

I'm very new in Silverlight and the Lync-SDK. So sorry for the question from a beginner.
Long time ago, i wrote al little web application, based on php for reading out contacts from a sql database.
Now the customer expand his envoirement and place Lync. Now he want the little Lync-Status-Square in the webapplication for click to call features.
I playing a little bit with the SDK of lync.
The following problem comes up. The square of Lync is nested in a td of my table. But the Lync-Silverlight-Applet need dynamical space for hover effects or single clicks. But in my table, i have no space, specially dynamic space.
So i switch off all hover and click functionality and place the follwing buttons in the StackPanel separate.
PresenceIndicator
StartInstanceMessagingButton
StartAudiCallButton
SendEmailButton
Two of them are fine.
Clicking on the IM-Button, The Lync Client opens the right Contact in IM-Mode and i can directly type a message. Perfect!
Clicking on the Mail-Icon, an Mail-Client will open, perfect.
The PresenceIndicator just display the color, not the exactly state, thats a problem, when the color is yellow. I can display the state in a TextBlock, but i prefer a label appears while hovering over the icon.
But my mainproblem is the StartAudioCallButton. This Icon is an dropDown-Icon. And i have no space for dropdowns. I would be so nice if this icon has the same behavoior like the IM-Button. The Lync Client will open in Call Modus and i can select, which callernumber i will use. Is that possible?
Thank you for Your time!
Frank
If you're having trouble with the layout of the standard Lync SilverLight controls, then the best thing to do is implement your own SilverLight controls for the function you're having difficulty with.
User Controls are really simple to create, there are plenty of tutorials on how to get started if you're not familiar with the process.
The Lync SDK has some great walkthroughs to get you up and running with signing in to Lync and placing an audio call
I don't know of any way to get Lync to open in a Call Mode as you suggested, but if you're limited with screen space, maybe you could have your custom StartAudioCallButton open a popup with the phone numbers in?

UI components for touch screen winforms applications?

I have seen this question:
Are there any decent UI components for touch screen web applications? and have allmost exact the same question but Im focused on winforms.
I working on an application that is not primary made for using with a touch screen, but now I see more and more customers using touch screen and want the application to support it better.
I want to "add" to the UI so that for example a rightclick on a combobox (or click a button at the side of the combobox) opens up a dialogbox that handles the showing and selecting of the items easier on a touch screen.
Controls I want to enhance or replace are listboxes, comboboxes and textboxes.
I know its easy to create those controls myself, but I think there must be some standards and allready tested UIs that works good in that environment. I dont want to reinvent the wheel and make a bad one if it allready exists good ones.
To sum it up:
Are there guide-lines for controls regarding touch screens, then where?
Are there any allready made controls I can byu (or free ones) out there?
Thanks!
Found some information:
Interaction Design Guide for Touchscreen Applications
http://www.sapdesignguild.org/resources/TSDesignGL/INDEX.HTM
pdf-version:
http://www.sapdesignguild.org/resources/TSDesignGL/TSDesignGL.pdf
The interface between humans and interactive kiosks
http://www.visi.com/~keefner/pdfs/focus1.pdf
Keys to a Successful Kiosk Application Some tips can be used generally:
http://www.visi.com/~keefner/pdfs/Kiosk-Tips.ppt