BobH's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Exit game in full screen mode
I feel like I am missing something very obvious, but what is the code to exit the game if you are in full screen mode SpaceWars is in a window, so you can just click the X to get rid of it, but I can't seem to figure out the quite command. Use the keyboard/mouse/controller input command and call game.Exit(); e.g. GamePadState myPad; if (myPad.Buttons.Back == ButtonState.Pressed) { game.Exit(); } ...Show All
Visual C++ XML
Hello folks, I am currently working on a program that scans values (temperature, fan speed) for boat engines. Now, I want the program to save the scanned values in a xml file, and i already have this to work. But, it should add new values to the same file once every minute, so i would want to append the existing xml file in some way.. How do i do this This is the code thus far for the xml output: std::ofstream xml( "xmlvalues.xml" ); xml << "<INSTALLATION>" << endl << "<INFO>" << endl << "<NAME>" << " </NAME>" << endl << "</INFO>" << endl << "<TECH ...Show All
Visual Studio 2008 (Pre-release) PageFunction Template
Hello, I was wondering how I could pass a template into a page function. I don't really need a template I can use plain old C# object (do they call these POCO like POJO=Plain Old Java Object ) public partial class NameAndDescription : System.Windows.Navigation. PageFunction < WizardSession < WorkgroupWizardData >> I'm not sure how to x:TypeArguments in the XAML file. Thanks Houman Thanks lee, I can do that part...But imagine if Customer is a template then the x:TypeArguments won't work...at least I don't know how to get it to work. Not a big deal. Thanks Houman ...Show All
Visual Studio Migrating From Crystal 9.0 to Crystal XI
Facing Difficulties while migrating to Crystal XI. Advice would be appreciated. I have installed the evaluation version of Crystal XI but when am running the applications am getting errors such as load report failed and Unable to connect: invalid log on parameters and so on. Help is needed urgently... hi kentish, this is suresh, from chennai, india. this is ur question which was posted on 01-13-2006. Facing Difficulties while migrating to Crystal XI. Advice would be appreciated. I have installed the evaluation version of Crystal XI but when am running the applications am getting errors such as load report failed and Unable to connect: invalid log on parameters and so on. i hope you had the solution for ur doub ...Show All
Visual Studio Express Editions [WindowsForms] Horizontal Line
Does anybody know how i can put a horizontal line into my forms i need one to create a simple "below the line" to seperate my sumup textbox from the other input-textboxes (like you know it from common calculations). I tried to add a label with underlines ________, but doesn't look very pretty. Anybody an idea Hello Re: [WindowsForms] Horizontal Line Generic “how do I’ questions on specific technologies, such as Windows Forms, should be addressed to the relevant newsgroup at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
Visual Studio 2008 (Pre-release) how to catch drag/drop and keydown event on WindowsFormsHost
Hi, What I am trying to do is to catch the ctrl or shift key with other keys, and do drag/drop onto the WFP form. What I have is a myWinFormsControl : public System::Windows::Forms::UserControl and it is hosted by WindowsFormsHost. ( <WindowsFormsHost x:Name="mControl" Grid.Column="0" Grid.Row="0" Background="{x:Null}" > and mControl.Child = new winFormsControls.myWinFormsControl(); ) I tried to add event handlers (for KeyDown, DragEnter, etc.) either in markup or in the code. Both don't work. I tried put WindowsFormsHost directly under the <Window x:Class="myTest.MainWindow", instead of put in <UserControl x:Class="myTest.myContr ...Show All
SQL Server Report SnapShot Creation Programmatically through Java
Hi, I am facing some issues while creating report snapshots programmatically using axis (Java platform for creating and deploying web services applications). To create a report snapshot what should be the methods called I tried using UpdateReportExecutionSnapshot() but didn't find any parameters to set the schedule information which would say when the execute the report snapshot. Can you please guide me for this Also I had one more doubt regarding report snapshots. If a parameterized report is configured as snapshot then we would require to set default parameters for the report. Is there a way to create snapshots of the same report with different parameters eg : The employee information report displays the information base ...Show All
Visual FoxPro Passing multiple variables from forms w/ VFP7SP1
I'm an old Clipper (S' 87) programmer that needs to figure out forms with VFP. The attached code generates a form containing a set of four optiongroups that set basic comm port parameters on the local host for serial communication with an instrument (usually an electronic balance). I'm trying to use the form to replace a series of cascading menus in the original program. My intent is for the form to recognize the 5 existing parameters in the main prg, permit user input and then pass any changes back to the calling procedure or function using a array embedded in the form when the user clicks [OK]. Clicking [Cancel] should leave the parameters unchanged. Can somebody please suggest a technique for passing multiple variables back and forth be ...Show All
Visual Studio 2008 (Pre-release) Concatenate doesn't work
Any reason why below code doesn't work string[] names = {"MSFT","IBM","CSCO","GOOG"}; //Get a list var msft = from s in names where s == "MSFT" select s; //Get all symbols from global list except microsoft var msft1= msft.Concatenate(names); //Gives compile-time error Thanks in advance As Steve Eichert said,"Concat" will work for you: var msft1 = msft.Concat(names); Based on your comment in the code, "Get all symbols from global list except microsoft", you might want to use the method "Except": var msft1 = names.Except(msft); ...Show All
Windows Live Developer Forums resize/padding pushpin detail
Is it possible to resize the the pushpin detail window I know you can add a control and make it whatever size you want but I would like to keep the arrow VE produces for the window. Also, is there any way to reduce the padding in the detail window Seems like the way it is now is that there is alot of wasted space that is not necessary if you don't have alot of info in the window. Thanks, Jason Jason, I had the exact same problem, well i needed more width. I put up an article that shows the html rendered by VE and the default css. You would simply overwrite all the padding styles and reduce the overall width Have a look at: http://www.soulsolutions.com.au/Articles/VirtualEarthPopupStyles/tabid/79/Default ...Show All
Visual Studio Team System Proxy statistics website not available
I have been logging about my proxy problems already in some other thread but haven't got that much response. ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1216865&SiteID=1 ) So this is a new post with a new problem that hopefully could lead to a resolution for the other problems as well. When I try to access the statistics page, I'm getting a login dialog and whatever account I use it always ends up in an "Access Denied" error. I installed Fiddler to find out what really happens. Fiddler shows a severe error with no response information. The properties of the failed session displays: SESSION STATE: Aborted === FLAGS ==== X-CLIENTIP: 127.0.0.1 X-CLIENTPORT: 4115 I have no idea where to go from h ...Show All
Windows Forms Updating bound Custom entity properties only if the user clicks Ok
When I create my custom entity: Customer class for example, I bind the customer properties to my Form textboxes using: txtName, txtBorthDate..... For that I use: txtName.Databindings.add("Text",oCustomer,"Name") .....etc So, When the user types in the texboxe Name for example, my Customer properties get updated automatically in my custom class. The problem: I need to update the customer properties : Name, date of birth.... only when the user clicks Ok. And if the user clicks Cancel, i shouldn t replicate the new textbox values to the customer properties. How do i implement that pls. Thanks. I added a kind of temporary fild in my custom classs that I bound to the textboxes. I populate the value of ...Show All
SQL Server SELECT permission denied on object...
I am using VB 2005 express edition with sql express 2005. I did it this little application that select data from a table. Everything Ok on local but if I use it over lan (it is a workgroup) I obtain this error: SELECT permission denied on object 'Consensi' on database 'C:\dbmarco\plate_dati.mdf' with schema 'dbo' I used SQL Server Management Studio Express to give all permissions to the user for the Plate_Dati database but nothing changed this is the program: Imports System.Data.SqlClient Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Stringa As String = "Data Source=TAPFW\SQLEXPRESS;Initial Catalog= ...Show All
.NET Development Remoting between 32-bit and 64-bit processes?
Will a remoting scenario work where one side of the conversation is a .NET 2.0 app compiled using the x64 platform and the other side is a .NET 2.0 app also running on the same x64 box, but compiled using AnyCPU and therefore running as a 32-bit process These are two separate apps, in case that's not clear. I'm just a beginner with using remoting, so no specific restrictions on protocols other than what would be necessary for same-machine communication. Thanks, Chuck If both are on x64 box, then the process compiled with 'anycpu' will run as 64-bit proces and not as a 32-bit process.. Remoting should work.. An excerpt from www.64advantage.com/files/ Microsoft% 2 0Windows% 2 0 64-Bit % 2 0Technology% ...Show All
Software Development for Windows Vista Transactions - ensuring consistency between WF and MSMQ
Apologies in advance this might be quite a complex one! I should say at the outset that I don't want someone to write my solution for me, just am trying to understand a bit more about how to achieve transactionality in WF. I'm currently trying to pilot an STP engine using Workflow Foundation to prove its suitability. Everything in the engine is driven using transactional MSMQ queues. It's essential that no information is lost, and that the workflows remain in a consistent state with the contents of the queue. These are the scenarios I'm trying to tackle at the moment: 1. A message arrives on a queue and triggers the creation of a new workflow. 2. A message arrives on a queue and is passed into a waiting workflow. 3. A workflow ...Show All
