Folyjon's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. this.IsMouseVisible = true;
Is there anyway to change what *.cur is used I didn't see anything but I may be over looking it. I also tried making a GameComponent, using a sprite as the mouse cursor and this allows me to change the texture when needed. I ran into a problem with this also. When the mouse leaves the GameWindow the Texture stays there and it appears to have two cursors on the screen. You could set rules that if mouse > screenWidth don't draw but if you move the mouse with anytype of speed it never updates. To work around that I set: Mouse .IsCaptured = true ; Which works great. Till the GameWindow loses Focus. Once the Focus is lost the cursor does not act the same. IE: Prior to losing focus, cursor will go UNDER the top blue windowbar (where ...Show All
Visual C# download msdn for visual C#
Can I download msdn for visual C# As far as I can tell, not by itself, although the MSDN Library is part of the full VisualC# Express package, which can be downloaded ( http://msdn.microsoft.com/vstudio/express/visualcsharp/download/default.aspx ) Note that the full package is 1.3 GB so hopefully, you have a fast connection and a lot of time. Also, the MSDN Library is avialable online at http://msdn2.microsoft.com/en-us/default.aspx ...Show All
Visual Studio Express Editions VC++ 2005 Express - Runtime error crash
I have just installed SP1 for Visual C++ 2005 Express Edition. When building simple test application I am getting: "Runtime error. [..] The application has requested the Runtime to terminate it in an unusual way...". Problem replicated on home desktop and laptop. Is Microsoft testing its code before release chew-z ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotate the viewport
Is there any way to have the display in an XNA game project be rotated 90 degrees clockwise or counter clockwise I need the entire display to do this, so if there is a simple way(aside from setting the windows display rotation) please let me know. Thank you, Daniel Gary If it's a 2D game, you could create your own class inherited from the SpriteBatch class and override the Draw methods to do the rotation and use your new sprite batch class to do all of your rendering. The benefit of this is you wouldn't have to change any of the other code. ...Show All
SQL Server setup for school projects
How do I install / setup SQL server 2005 so that I can use it for my school projects. I am learning C# and web service programming that supports connections to an SQL database. I need to be able to use it as a "local host" that can connect to Visual Studio 2005. I already have a copy of the SQL 2005 developer edition. I guesss I am wondering how I install and setup that version Thank you, TG_KG ...Show All
Visual Studio Express Editions Hidden tool tips
Brand new to VB2005 Express and feeling my way. So I rely heavily on the tool tips when they are available. Looking at the Toolbox, the tooltips are shy. They hide behind the toolbox and are totally invisible when the toolbox is on top of the main window. Perhaps a bug, or maybe something about my graphics settings I can't find any updates so assume ver. 8.0.50727 is the latest. tcebob Cant see this myself. Tried a couple of systems here. Is it possible to do a screenshot to show what is occuring. ...Show All
Windows Forms DataGridview :Add new row programatically
I have set the AllowUsersToAddRow property to true which rows at the bottom all the time. I want to control this with the click of the button. On clicking of a button I want to add a new row to datagridview. and allow editing until saved. ...Show All
Windows Forms Refreshing the web browser control
Hi all, I have problem in refreshing a web page.... Steps: i create a windows form and add the web browser control, iam actually calling a report in this form..so if i update the values,its not getting updated....so wha could be the problem...if i take the URL and run it in the browser i am getting the changed value...so can anyone plz help me out of this problem... I hav also added the piece of code... reportPath = new Uri (url); wbreports.Url = reportPath; wbreports.Update(); wbreports.Refresh(); wbreports.Navigate(url); Thanx in advance Hi.. thnkx for ur reply... I tried passing the URL but even then its not working...In reports theres a property called A ...Show All
Visual Studio Express Editions How to search text in a file?
How to search a word in a text file and after that to get the line that contains that word. this is because you are only going round once ever and not in a continous loop until the entire file is read. so add a while (sr.Peek() != -1) loop after the using statement. ...Show All
Software Development for Windows Vista InfoCard Identity Provider - Resources required
I am trying to build an identity provider. I could use the following resources: 1) An official InfoCard schema. I have tried to piece together one from the tech-ref, but it has some validation issues and isn't really normative. 2) A sample managed InfoCard. I have tried to build one, but when I go to import it into the InfoCard selector, it fails with an unhelpful error message. The event log message is generic, too. 3) A way to get diagnostic messages out of the InfoCard selector when it has problems with my InfoCard and my identity service. Thanks, Sid Hi, Using the managed card creator I tried creating a self-issued auth card. But the application is failing when saving the card. Err ...Show All
Windows Forms save an image
I want to open a image file edit it and save. System.Drawing.Graphics gr=System.Drawing.Graphics.FromImage("myfile.jpg"); I use then drawing functions. How to save the changes to a file Hi,nikos I find some articles in this forum,I think they are helpful to you. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1083842&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=81078&SiteID=1 ...Show All
Software Development for Windows Vista Calling CreateProcessAsUser() from service
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. Any way I am able to launch process (using CreateProcessAsUser) but it is getting launch in another desktop i.e., is Session0, this is the place where my service is running. I am not able to launch in Session1 (users desktop). I am trying to get some help from http://weblogs. ...Show All
SQL Server OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionRead (recv()).]General network error
Hi guys, Anyone encountered this type of error " OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionRead (recv()).]General network error" Hi Larry, General Network Error is a infamous error and one of the toughest cases MS PSS faces nowadays. This is due to there can be various cause of this problem. There is a webcast on this topic: http://support.microsoft.com/kb/875285/en-us I remember there is a common cause of GNE for windows 2003 sp1, but can not find the KB now. Maybe I will find and post it here when I get back to work on Monday for your reference. Thx, -Justin ...Show All
.NET Development Thread Memory consumption
It seems that starting a managed Thread in .net 2.0 allocates 1MB of memory. I created a quick and dirty sample to reproduce this behaviour, it creates 100 threads and each thread sleeps for 10 seconds. Memory usage (while all threads are live), 100MB when compiled with the c++/cli or c# .net 2.0 compiler. Same code ported and compiled with VS.NET 2003 allocates just 3 MB. It has to be that I'm doing something wrong, can anybody put some light on this Srdjan // -------------100MB, cli/c++ .net 2.0 using namespace System; using namespace System::Threading; using namespace System::Diagnostics; ref class Work { public: static void DoWork() { ...Show All
Visual Studio Tools for Office Word 2002 Resources
Hi, Does anyone know any good resources for Word 2002 development I'm guessing that I can't use VSTO if I'm using 2002 or can I Thanks in advance, M no, you can't use VSTO... Other than that, you can automate Word 2002 pretty much the same way as Word 2003 (except for things that were introduced in the later version). That means, any information you see about working with Word 2003 will basically be the same for Word 2002. For questions about how to work with Word, in detail, I recommend one of the Word newsgroups. For automating Word using a .NET language, ask in an office.developer newsgroup. You'll find links to these groups/interfaces in the Please Read First message at the top of this for ...Show All
