trint's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Using windows forms components with XNA?
Is it possible to use windows forms components with XNA For instance... what if I wanted to add a menu bar to my game I realize that most games have their own interface, but it would still be very useful to have (especially for setting up quick temporary interfaces). Any ideas Mitch Walker - MSFT wrote: Providing a full featured GUI solution is one of our top priorities for the next version. Is there anymore information regarding this Any list of expected features I am a Windows developer (not expecting to do anything with XBOX) and find XNA a bit too limiting. Having to use bitmaps for fonts, buttons, TextBoxes, etc., is a little frustrating at times. But THANK YOU to Garykac for his extrem ...Show All
Smart Device Development Accessing data on a form opened usin ShowDialog
Hi, I'm using VS2005 .net2 form Windows Mobile 5 I have Form1 and Form2. From2 is opened from Form1using ShowDialog(). I want to return text from a textbox on Form2 to Form 1. The following code works of standard Windows form applications but fails to compile for .net compact applications. The error msg is 'Form2' does not contain a definition for 'TextBox1' ,. Even though it does. I have set the 'Modifier' property for Form2 to public but it still does n't recognise it. Does anybody know of a solution Thanks Form2 testDialog = new Form2 (); // Show testDialog as a modal dialog and determine if DialogResult = OK. if (testDialog.ShowDialog() == DialogResult .OK){ MessageBox .Show(testDialog ...Show All
Visual Studio Express Editions Tabbled browsing
I am making my own internet browser but how can i add the option of tabs in my application. Such as in internet axplorer 7 and how can i delete my browsing history. Let me introduce myself first, my name is Simon North and I am the head of Simnor Computing. I have wrote many application one of which is a tabbed web browser based on Internet Explorer. I created the tab interface by simply adding a tab control on the main form and created a user control which included the menu bar, toolbar, web browser control etc. When the user clicked the 'new tab' button, a new tab would open and the user control would dock (fill) the tabpage. If you want any more information please ask. ...Show All
Visual FoxPro drop-down combobox problem
Hi I'm still struck with the combo drop-down part problem for nearly 2 weeks and need help from you. When the values of these 2 textboxes match with each other, the list of employee is able to display on the combo drop-down. But I have one problem :- The list of employee on the combo drop-down repeat unnecessary (even a few blanks) when i changes the values of textboxes. How to refresh the combo drop-down once the values of textbox changes Thank you. Millbear, It's not clear what you"re trying to do, what those 2 textboxes are about. I assume you put values like 'A' and 'B' in those textboxes and expect combo to show Employees whose firstName start with 'A' and lastName starts with 'B' If so then the ideal R ...Show All
Visual Studio Team System Integrated Code Analysis with Team Build
I have a 'Debug|Any CPU' build with Code Analysis enabled in the configuration, and in the TFSBuild.proj script. The code analysis runs and I end up with a *.codeanalysis file with the warnings/errors. The code analysis results do not show up in the build details screen like shown at this site: http://msdn2.microsoft.com/en-us/vstudio/aa718459.aspx I only end up with: Result details for Any CPU/Debug Associated changesets Associated work items There is no "Compilation and code analysis errors and warnings" as described on that page. I have Visual Studio Team Suite installed on my workstation, and TE for Devs + TE for Testers on the build server. What is required for this to work Regards, Gr ...Show All
SQL Server how to add/replace a guid column?
I've searched through this forum, and am extremely disappointed that something as simple as this can't be done without resorting to a script component (which I refuse to do): I have a Lookup transformation that returns a GUID value -- or not, so I've configured its error output to ignore failure. That should leave a NULL in the output column, and I should be able to chain a Derived Column transformation that replaces the Lookup output column (e.g. foo) with an expression like: isnull(foo) newid() : foo But there's no newid() function! Who was the genius that decided SSIS should implement different expressions than Transact SQL Is there a workaround, like (DT_GUID)GETDATE() Or do I have to craft a SQL statement in the Lookup t ...Show All
Visual Studio Express Editions VB Express 2005
Where can I find info explaining how to connect to an existing Access Database. The only stuff I have found so far is for connecting to SQL Express 2005. Use the oledb namespace and check your connection string at www.connectionstrings.com Although most of the samples ( http://msdn2.microsoft.com/en-us/vbasic/ms789075.aspx#data ) deal with sql server...the principle of working with a data store is the same....just use the appropriate data namespace (oledb for Access) ...Show All
Internet Explorer Development Alternatives to IELaunchURL: use CoCreateInstance to create a WebBrowser object running in Protected Mode?
Originally posted in this thread , but got no response after 5 days. Sorry for the long-windedness, but I'm getting desperate for some answers. I'm revising an existing application for Vista-compatibility. This application makes extensive use of the IWebBrowser2 interface and IE to display web pages, primarily from the company's own site (like an about page), but it could potentially navigate anywhere. The app is written in C++ and runs at medium integrity level (medium IL is required for most of what this app does). The problem occurs when the app navigates to a URL in a zone that requires IE Protected Mode. Because my app runs at medium IL, the WebBrowser object I obtain via CoCreateInstance is in an instance of IExplore.exe runnin ...Show All
Visual Basic Changing the Font of an Excel Cell from Visual Basic
Hi This is my first post so sorry if it is in the wrong place. I have written a Program in Visual Basic 2005 that extracts information from an SQL Database and puts it into an excel spreedsheet. This all works fine, but what i now want to do is change part of the input so that it is displayed in bold in the cell with the rest being displayed in normal font, to produce something like this Processor: Intel Celeron M 370 1.5GHz all in 1 cell This is the current code: cell = DescriptionCol & Row oExcel.Range(cell).Value = oExcel.Range(cell).Text & ( "Processor: " ) oExcel.Range(cell).Value = oExcel.Range(cell).Text & (thistable.Rows(y).Item( "CPU Type" ) & " " ...Show All
Windows Live Developer Forums Draw a circle given a lat/long and radius (in miles)
Had to do this for a project here at work and thought I would share the code: function AddCircle(latin, lonin, radius) { var locs = new Array(); var lat1 = latin * Math.PI/180.0; var lon1 = lonin * Math.PI/180.0; var d = radius/3956; var x; for (x = 0; x <= 360; x++) { var tc = (x / 90)* Math.PI / 2; var lat = Math.asin(Math.sin(lat1)*Math.cos(d)+Math.cos(lat1)*Math.sin(d)*Math.cos(tc)); lat = 180.0 * lat / Math.PI; &nb ...Show All
Visual C# Resume the computation after an exception
Is it possible to 'fix'in the catch block whatever caused an exception and return to the offending statement in the try block, and try it again After raising an exception, I'd like to try to resume the computation after fixing whatever went wrong. You can use Goto for example, be aware that you must implement some extra logic to only try it 5 times for example so you won't have a invinitive loop: STARTPOINT: try { // Do something } catch { GOTO STARTPOINT; } ...Show All
Smart Device Development Using VB program to open file on a CDMA device - PPC6700
I'm trying to use the Shell command to run a .exe file on a mobile Pocket PC, but when I run/debug the program on the phone it keeps coming up with the FileNotFound error. I'm thinking it is the path that is wrong, but I can't find anywhere as to how to address the path on a mobile device.. i.e. Shell("c:\program files\calc.exe"). I have tried every combination i can think of, from My Device, to C: to just \... but nothing seems to work and I know I'm missing something. Any help would be appreciated. If you would look at this: http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.kill(VS.80).aspx It shows that this should be avaliable in the .Net Compact Framework.. supported in: 2.0 I guess what I ca ...Show All
Windows Forms Navigating through pictures on a form?
I am programming with C# in Visual Studio 2005. I am trying to create a form that will display a single image from a set of 5 pictures. Then use previous and next buttons to navigate forwards and backwards through that set of pictures displaying each one. I have created a 2nd form which when loads up displays the first picture using the code :- pictureBox1.Image = Image .FromFile( "C:\\Documents and Settings\\My Documents\\pics\\pic1.gif" ); I know that I need to declare and initialise an array to hold all the images in and then use a for loop to display them but I am having trouble working out how to do this as I am not an experienced programmer. If anyone could help me out with this it would be much appreciated! ...Show All
Windows Live Developer Forums windows live space weather?
Hi there Well this is kinda funny tho. first of all you need to know my english aint the best in the world but im trying. I have no problem with adding kinda advanced things to my space.But there is 2 problems i have and i think it's easy as hell to fix it or add it. Weather info - yeah lets bring some weather info to my space. But how i belive i have looked everywhere for any info about it. look at this mans space: http://ezotee.spaces.live.com/ you will see he has a weather info or section if i can call it that to his space. i just cant find out how to add this or where to find any info about it. i have checked these spaces for info also but without no luck: http://thespacecraft.spaces.live.ccom/ http://d3vmax. ...Show All
Software Development for Windows Vista Will classes in the System.Workflow.Runtime.Tracking Namespace ever be marked serializable?
I am attempting to create a workflow monitor that leverages remoting and binary serialization. The goal is to implement a monitoring application that is hosted remotely and accessible company wide, so that production support can monitor workflows in various systems. The classes in the Tracking namespace, i.e. SqlTrackingWorkflowInstance, ActivityTrackingRecord, TrackingDataItem do not seem to be serializable using the binary formatter, and thus I have to create wrapper classes for everything that needs to be marshaled from the remote host to the client. Will the classes in this namespace ever be marked serializable The classes will not be marked serializable in v1, although we are considering this fo ...Show All
