osamaT's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Game.GameServices article
I put up an article about Game.GameServices and the IGraphicsDeviceService. http://blogs.msdn.com/mitchw/archive/2006/09/06/742955.aspx Good article but the question has become how do we go about creating GameServices, creating those singletons. I have a few ideas wich would exploit the "service" model very well, but have yet to figure out how. Edit, Do we simply add an interface to provide the service and add code in the component's constructor to add the service Ie like this Game.GameServices.AddService( typeof (I MyService ), this ); ...Show All
Visual Studio Team System Icons Explained
During different operations, merging, creating branches, etc.. using TFS Version Control icons are displayed. Where can we get what each icon represents Thanks, Tom You might also want to check the MSDN docs on this: http://msdn2.microsoft.com/en-us/library/ms245455.aspx - Steve ...Show All
.NET Development VPN VB Win XP
Ref: VB, Win XP, VPN How do I approach this problem I would like to develop a Window Forms Client Side application (MyApp) that will: 1) Button click on MyApp will open Netscape and Conntivity applications. Ensure that Connitivity is always on top. 2) User must enter id and password into Conntivity app to establish VPN connection. 3) MyApp will automatically capture the event that a VPN connection has been establish, enter a URL into Netscape and execute it. I would appreciate any ideas Thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can we take advantage of 360 hardware using XNA?
Are there portions of the XNA framework that get benefit from the VMX instructions available on the Xenon processor The quaternion discussion got me researching it, but I can't find any discussions at that low level. The current answer is that the VM will not generate VMX instructions. It may be that some of the system libraries do, but also, many of the system libraries are themselves written in CLR and thus not that efficient. (This is sadness for things like matrix, quaternion and vector) So, right now, I think the general answer is "VMX is not used a lot when using XNA 1.0 on Xbox". ...Show All
SQL Server Why IDENTITY field is not set while exporting data through Enterprise Manager in SQL Server?
I am exporting data to database server from local server through Enterprise Mgr. Data is successfully transferred along with table structures. Only problem remains with the fields which are set IDENTITY. Even I tried to find out ALTER TABLE statement so that I can alter the tables using Query Analyzer but I found that setting IDENTITY through query is not permitted after SQL Server 6.5. Why so Is the any way to set IDENTITY fields without Enterprise Manager Please reply Nishith Shah You have to use 'copy objects and Data between SQL Server databases' option instead of copy tables. This option will keep the identity on the column ...Show All
Visual C# Recently viewed items
Hi all I have a question: How can I program (that you can choose it in a listbox)for users, to view their last viewed items (in my cases; videos). I was also wondering how to put a link kind item in the combobox. By that I mean this: imagine you have a few items (just plain texts)in a combobox, how do you make from those plain texts, a working link to the folder where the item is located And as last question: I have imported Windows Media Player into the toolbox, but how do I "connect" the links (in the listbox or combobox items)to Media Player Thanks Out:p Wow, Thanks for the reply. Don't have much time to check it now, but later I will. So there are really no other possibilities And is it best ...Show All
Visual Studio Express Editions Copy files
How would i copy a file from a location on the web eg http://www.website.com/document.exe to my documents. I have tried Includes System.IO file.copy(" http://www.website.com/document.exe ", "C;/Path/document.exe", true) But it doesn't work Try using My.Computer.Network.DownloadFile() ... ...Show All
SQL Server Cluster Mirroring
I've read a lot of the information about this topic in MSDN. My boss askme to understand and to let working an example application of Cluster Mirroring. The problem is that i dont understand well yet what is a Cluster and what is the main idea behind it. If someone really understand and can explain me clearly whats behind it, i will be very grateful. Thanks a lot for the help. ( Sorry for me english :( ) Thanks bobbins! But i have another question ... when you have a mirror database with a witness, you also provide high-availability. Because if something happen the mirror will continue chasing you .. Why is much better the cluster Thanks a lot again ...Show All
SQL Server time delay when first opening the Sql 2005 Reporting Services
I noticed that the Reporting Services is taking longer to open in the morning or after a period of time in-active. My guest is that the SSRS is set to idle/stop after certain time when it is in-active state and it will take time to start the Reporting Services when it is activated. My question is how to make SSRS active all the time ie never go to "sleep". What is the Pro and Con of this approach Thanks. I believe the problem is that your application pool is set to shutdown after a certain time limit. Go to IIS, under application pools, right click on the one being used by Reporting Services and go to properties. On the performance tab, uncheck "Shutdown worker processes after being idle ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bouncing Sprites Demo
Hi Folks, I have written a program that extends the bouncing sprite demo that is shown in the MSDN - XNA help library. The program by default will randomly position 50 sprites on the screen and move them. When the sprites collide, they will bounce off in another direction. If they hit the edge of window, they will bounce off the wall as well. The code shows the usage of the BoundingBox Interacts function. Firstly is used to randomly position the sprites on the screen without overlapping each other. Secondly its used for the collision detection of the sprites. You can adjust the number of sprites by altering just one constant value in the code. It seems to run smoothly even if you've got 100 sprites on the screen. You can downlo ...Show All
Visual C# An object reference is required for the nonstatic field, method, or property
I know you have all seen this one before, for which i am sorry. But I can't figure this out. I am not sure if what I am trying to do here will even work in the end but this is my first project and I am learning as I go, so please try not to laugh. I have a combobox of form1 that is bound to a data source and on form3 I have a report viewer that (I hope) will load using the text that is in the combobox on form1. This is where I have the problem! I have searched many forums but still don’t really understand!! (it is the WHERE SaveName = '" + Form1 .comboBox2.Text + "'" ;where the error occurs, as follows: (An object reference is required for the nonstatic field, method, or property 'Stock_Scan.Form1.combo ...Show All
Windows Forms datagrid hide row
I have a datagrid view in a windows form the datagrid is filled with data from a access datatable. eatch row reprecents a order in the program. one of the colums is called (ready) end contains a check box. now i like to hide each order where the check box is true. so that only the Rows(order's ) that are not ready yet are visible and the rows that are ready been hide so that the datagrid only contain open orders how can i do that how do i create a dataview. the dataset i now use is adit to the form and is loaded whit the folowing code Me .Afwijkende_productenTableAdapter.Fill( Me .EK1afkset.Afwijkende_producten) and connected with a binding source to the datagrid. ...Show All
Visual C# Custom Item Property for ComboBox
Hi, I'm developing a CheckedComboBox inherited from ComboBox and it is nearly finished but the problem is that it's underlying Items property is an ObjectCollection. How can I convert it to a CheckedItemsCollections like the one CheckedListBox has If I convert it to some other kind of custom Collection of my own, how the DataSource property of the base ComboBox of my control affected When the DataSource property is changed, what really goes beneath Too many questions, I know, but all for a nice Control, doesn't worth ;) The property is not virtual and therefore you can't change its definition. You could use the new keyword to hide it but that is not likely to work in most cases and would be a design flaw in my opinion. ...Show All
.NET Development Help running SQL Transaction in 2005 vb expess
I may have this in the wrong forum but, here goes... I need to run a SQL transaction against an SQL database in my vb2005 express application to remove duplicate records. I am really in need of some direction. Now here are the problems: I saved the transaction as a procedure in the database. (A sproc I believe). If I open SQL Server Manager Studio and execute it, it runs like a clock. There is a warning message about it not supporting the OVER command, but it works ok. So Here is the Btn_click to run the procedure; Private Sub Btn_sql_deletedups_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn_sql_deletedups.Click Dim MyCmd As New OleDb.OleDbCommand Dim Cnxn As New OleDb.OleDbConnection("Data S ...Show All
.NET Development writing an event with .net 2.0 failed.
Hi, I have a windows service and it needs to write events on a log. public static void Initialize() { try { if (! EventLog .SourceExists(eventSource)) { EventLog .CreateEventSource( new EventSourceCreationData (eventSource, logName)); } eventLogger.EntryWritten += new EntryWrittenEventHandler (eventLogger_EntryWritten); if (eventLogger == null ) { eventLogger = new EventLog (); } //eventLogger.Log = logName; eventLogger.Source = eventSource; initiated = true ; } catch ( Exception ex) { Debug .WriteLine(ex.Message); throw new Exception ( "EventLog haz rlanamad !\nKay tlar tutulamayacak." , ex); } } public static vo ...Show All
