TheSource's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. .net 2005 graphic engine
I am looking for an open souce .net 2005 graphic engine Nothing fency, just the basics. To start learning how graphic engines are created. Just to extend on David's reply. You can take a look at these engines and see how things are organized and how they are abstracting components such as the renderer. This will allow you to think of solutions for your own implementation. It's a great way to start. I would suggest that before you start writing your own engine you should really consider playing with a few techniques to see how it all fits together. Components such as renderers and UI managers, physics ...Show All
Windows Forms Save/Edit picturebox image to sql server 2005 database
I have a form with an opendialog1 that browses for a picture and then displays it in picturebox1. That part works. I use a sqlserver database with a Pic table with 3 columns: IndividualID, Name, and Picture. I would like to know how to write the code that copies the picturebox image to the Picture column in a binary memorystream and save it. I then need the saved picture to display back in Picturebox1 whenever that row is selected in a DataGridView. Also need to be able to delete the image and change it to another. I have used the wizard to set up the Select, Insert and Delete statements. I have made t ...Show All
Smart Device Development Windows CE and ODBC?
Do the ODBC core components exist for Windows CE Or even an equivilence I need my Pocket PC to be able to connect to an existing database with simple abilities to select, insert, modifty, etc. I've found a good deal of ODBC drivers for Pocket PC's built for certain databases, but never the one I need. Also the target database is subject to change, hence the need for core ODBC. Pls refer to following link for more relavent forum http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Srikanth Bogadapati (Microsoft) ...Show All
Visual Studio How to know if user cancels Print Dialog???
Hi, I'm using the Crystal Report Viewer in a WinForms application. When the user click 'Print' i'm calling rptViewer.PrintReport(). This causes the print dialog to be displayed. If the user clicks ok, thats fine. However, if they hit cancel, my code continues to execute in the same way (which is bad as I'm updating the status of invoices to 'Printed'!). Anyone know how I can check if the user has pressed cancel Thanks, Simon. ...Show All
Visual C# How Collections.HashTable does arrange its values?
HashTable paramTable = new HashTable(); foreach (DataRow configRow in configParam.Configuration.Rows) { BEConfiguration.ConfigurationRow configRow = (BEConfiguration. ConfigurationRow) configGenericRow; if (!paramTable.Contains(configRow.MyString)) { tabConfig = new BEConfiguration(); & ...Show All
Windows Forms What is "application framework"?
I tried creating a new Windows Forms app and had a hell of time just getting it to run. The trick was turning off something called "application framework". Can anyone explain what this is Or point me to some articles about it Please don't refer me to the documentation. I'm downloading it right now but it's going to take& ...Show All
Smart Device Development Hide and Show Startbar
Hello everybody, Does somebody know how to hide and show the windows startbar. (the bar with the clock, Windows logo and so on) I have a form in fullscreen mode and I what to show the startbar on an button click. Any ideas Regards Karin Imports System.Runtime.InteropServices Public Class BarControl <DllImport("coredll.dll", EntryPoint:="GetForegroundWindow", SetLastError:=True)> Private Shared Function GetForegroundWindow() As IntPtr End Function <DllImport("aygshell.dll", EntryPoint:="SHFullScreen", SetLastError:=True)> Private ...Show All
Microsoft ISV Community Center Forums Problem with XP SP2
I ran the below program in a machine with XP SP1 and Word 2000 it took only 2 or 3 seconds to insert the bookmarks into the word document. But in a machine with XP SP2 and Word 2000 it took 18 seconds in an average. I am using the similar kind of program to insert the bookmarks into a letter at the runtime. Could please anyone help me out. Private Sub Command1_Click() On Error GoTo err Dim obj As New Word.Application Dim bk As Bookmark obj.Documents.Open "C:\Test\ObjA.dot" obj.Visible = True StartLog SendToLog ("BookMark Insertion Starts") For Each bk In obj.ActiveDocument.Bookmarks If obj.ActiveDocument.Bookmarks ...Show All
SQL Server How to get the Row Number per Distinct Records?
Row Number Name Phone Number 1 John Doe (555) 123-1221 1 John Doe (555) 144-9989 2 Smith (666) 191-1201 3 Jane Doe (555) 188-0191 3 Jane Doe (555) 189-0192 3 Jane Doe (555) 190-0193 Here are the records I get back using a Grouping on "Name". I would like to assign a Row Number for each "Distinct" row. I've tried all the possible aggregate functions with no luck! Can anybody help me with this Thanks. Please try something like this: =RunningValue(Fields!Name.Value & Fields!PhoneNumber.Value ,CountDistinct, Not ...Show All
Windows Forms Cascaded PropertyChangedEvents crashes with DataGridView
Bug or not we wanted to show different properties of objects of a BindingList in a DataGridView. Some of the properties had to change their values depending on the values of other properties. Therefore we introduced a new BindingList with an event handler 'ChildObjectChanged', that is raised when one of the items in this BindingList changes. Also we wanted to change other values, not included in the BindingList, depending on changes in this DataGridView. Therefore we implemented a new class, that listens to the 'ChildObjectChanged' event and raises its own event to inform any listener to update its depending data. When binding this const ...Show All
Visual C# hooking other applications messages Challenge
Hi Hi i want to know when user changed the foreground Window .. So i want soemthing like a callback.. that will call me when windows is about to send a message to application that she now has focus.. Any ideea Any function to interop with or.. Please help guys! btw.. not threads allowed . Check the following article about how to set hooks, you can hook the WH_SHELL and just filter out the message you want. As cablehead says, for you it would be WM_ACTIVATE. Windows Hooks in the .NET Framework . ...Show All
Windows Live Developer Forums MSN Messenger Display Image
Hello folks, Anyone know of a programmatic .NET way to change the display picture of the user currently logged in to MSN Messenger 7.5.0311 If possible, I'd like to keep the image out of the recently used picture list available in the Tools -> Change Display Picture dialog. Any help appreciated! -- n nickrogers wrote: Hello folks, Anyone know of a programmatic .NET way to change the display picture of the user currently logged in to MSN Messenger 7.5.0311 If possible, I'd like to keep the image out of the recently used picture list available in the Tools -> Change Display Picture dialog ...Show All
Windows Forms Major flaw when deploying to multiple clients
I've spent days researching this with no results. My problem is basically the same as this post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=108636&SiteID=1 ), which did not receive any responses. This seems like fundamental problem with deploying ClickOnce apps to multiple clients. The issue is that when the app is deployed part of the deployment process will be changing the deployment URL in the app manifest to whatever that particular client will be using. This requires resigning the manifest, which requires making the certificate available to the client, which is a MAJOR problem! So the question is, how can the app b ...Show All
Visual Studio Express Editions Error Message
I have create a dll name "Special". At the C# IDE, i able to add the special.dll file to my reference. But, when i running the C# program, It come out with below error message Could not load file or assembly 'Special, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Did you know what message is it How's to solve it Sorry, i do not understand what you means by assemblies. Can make it more clear ...Show All
SQL Server Update: Schema changes no longer replicated to subscribers
Hi to all, I have a merge (pull) replication between SQL Server 2005 and SQL Server Express clients. Data synchronisation is ok, and I already made some schema changes (like adding new columns) at the publisher database which were applied to the subscriber as they should. Now this doesn't work anymore. New columns added at the publisher (with ALTER TABLE or Management Studio) are no longer replicated to the subscribers. I don't get any error messages, and I can't find any hints in the logs why this has stopped working. The "Replicate_Schema_Changes" is still set to TRUE (in general, none of the publication options ha ...Show All
