Andre's's Q&A profile
Windows Forms Load an image dynamically in statusbar...
Hi... In my application on status bar i am changing the image of " toolstipstatuslable " at runtime. for loading the image i have given the path as - this .toolStripStatusLabel1.Image = System.Drawing. Image .FromFile( @"..\Red.bmp" ); But when i run my only .exe file by putting it in some other folder & if i am runing my .exe file from that folder then its giving me error as file ot found... So how to load the image file in resources so that it will take it from their at runtime. Thanks, Vinay Ya... Thanks Ahmedilyas... I got it working...it was my mistake... Thanks & Regards, Vinay ...Show All
.NET Development Trouble serializing an exception to XML
I have a try/catch block in my code and I am attempting to serialize an exception into XML so that I can store it nicely in a database if I so choose. I am running into a problem though... In my Catch block I try to get the XML for the exception (ex), but I receive an error when I try to pass in an exception. (snippet from Catch block) sXmlString = FetchXml(ex, ex.GetType()) Public Function FetchXml( ByVal InObject As Object , ByVal InType As Type) As String Dim oSerial As New XmlSerializer(InType) 'ERRORS OUT HERE Dim oText As New XmlTextWriter( New MemoryStream, UTF8) Dim sXml As String Dim oStream As MemoryStream oText.Formatting = Formatting.Indented oSerial.Serializ ...Show All
Visual C# No Insert on my Menu VS.2003
Hi I am new to C# .net 2003 proramming. Creating a htm Web page on my menu I do not have an insert. I have file,edit,view,project,debug,data,format,table,frames,tools,window,help. I just wanted to create as part of my project a htm page where an image once some clicks on it it will take them to a hyperlink to another url and reading how to part of this it says select Hyperlink from the insert menu. Does anyone know how I can include the Insert on the menu. thanks for any help Sammy Hi, Sammy. To insert a new HTML page in your web site, navigate on the main menu bar to Project | Add HTML Page.... Alternatively, you can right-click on the web site in Solution Explorer and select Add ...Show All
Windows Forms Difference between CurrentCell and SelectedCells
What is the difference between the two Are selectedcells currentcell Thanks. Regards Alu To add new row to datagridview, you should add new row to your datasource directly. You add do it like this, northwindDataSet.Customers.AddCustomersRow("Gemi", "MS", "Wang", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa"); After you add a new row to your dataset, the datagridview will show it automatically. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D Pixel Perfect Collision
Anyone know of any good resources for learning how to do pixel perfect collision on sprites which takes rotation and scaling into account " Then when I made the bounding boxes a little more forgiving, they started complaining to me because it was stupid that they could fly through the corners of certain objects when it "totally should have crashed them up". " Bah. Kids don't know what's best for them. The hitbox should be 1*1 pixel! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Why doesn't 2006DirecxSDK support visual basic 2005? Only C# and C++?
Why doesn't 2006DirecxSDK support visual basic 2005 Only C# and C++ As far as I get only the 2003 release is the most up-to-date for vb developers Is it true I've just converted all example of C# (expect one or two) The trick is to make a Dll with the common C# classes. Then you make a new VB Project, you add the different references (DirectX,Direct3D,Direct3DX) and the reference to the dll. Open in an other window the C# project you want to convert. Now simply convert each class you want to use with a converter (you can find some on the net) (you don't need to convert the common classes !) You will probably have to make some small correction and then it will work. You can also s ...Show All
Visual Studio How to Get a List of files in runtime?
Hello, I'm trying to get a item list with the path of dll and exe files with no success :( The problem seems to be that I'm trying to list some files in a directory that as files, only when the projects are built and the files are copied to the drop location. (yes i'm reading the files from the drop location). I've tried using the <ItemGroup> and no success (the files must be present at the begin of the build. So i was wondering if there is a way to do this Also i wanted to exclude some files: <Readdirfiles Include="\\mymaindir\Debug\**\*.dll" exclude="\\mymaindir\Debug\**\*word.dll"/> <Target Name="readdirs"> <Message Text="Listing directory files -> @(Readdirfiles)"/> & ...Show All
SQL Server Problems connecting to SSAS instance over HTTP in Excel 2003
Our Biz users are all running Excel 2003, and we've recently set up a bunch of cubes that we'd like to open up to them. I followed the steps here: http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx to set up HTTP access to SSAS2005. It works great from my machine, I figured because I had SQL 05 installed locally and all the requisite drivers, etc. On our biz users' desktops, however, it wasn't as peachy. I first figured out I had to install MSXML6 and the SSAS 9.0 driver on their machine to connect to the cube. I downloaded those from here: http://www.microsoft.com/downloads/details.aspx familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en Once I was able to set up the connection to the cube, and abo ...Show All
SharePoint Products and Technologies Is Content Query Web Part really available in WSS 3.0 ???
I am going out of my mind (some may say, not a long trip) trying to figure this out. I have spent the best part of the last couple of days researching if the CQWP is or is not availble in WSS 3.0. All over the net I see articles mentioning that it is part of MOSS & WSS . However when I try to Add A Web Part to a site I do not see that web part in the list of those available. The nearest wp I see in the list is the Content Editor Web Part - but I realise that is not the one I'm looking for. Is there something I need to do to make it available or is it just not there in WSS (I have been assured by some bloggers that it is!). Thanks in advance! Could you please recommend a 3rd party ...Show All
SQL Server SQL 2005 Express - sqlserv.exe memory usage always increasing.
Hi, I'm hoping that some might have an answer for me after much net searching. I have a server (200GB disk space, Dual 3.8 GHZ processors, 4GB memory) that hosts 6, very small, SharePoint sites (WSS 2.0) and SQL 2005 express handling 1 config DB and 7 content DB's. The biggest DB at the moment is only 300 MB and the sites are not actively being used yet, they are only open to a select number of users (+ - 25 in total) who are using them as reference "areas" at the moment. Each site is running in it's own application pool as well. I find that the sqlserv.exe process increases in memory usage and does not seem to decrease. It gets to the point of 960 MB usage and then databases cannot be used (SQL 2005 Express max memory ...Show All
Visual Studio Locals Debug Window
Hello, Since short I the Locals - Debug - Window is empty. I cannot figure out what is the problem. When I run the solution, I cannot debug/verify the variables. Does someone have a clue what is going on It is happening with all my solutions. Thanks. Hi, I reinstalled the machine and problem resolved. I cannot figure out what caused this flaw. Thanks for reading and helping during this thread. ESTAN ...Show All
Software Development for Windows Vista How to Serialize individual Ink Strokes?
Hello, I am just wondering how to serialize individual ink strokes. When I attempt to I catch an exception stating that the Ink.Stroke object is non-serializable. I would love to not have to save the Ink object and serialize the entire thing, but instead simple grab a single stroke and serialize it. Does anyone have any information that may help with this Thanks again! What I have been doing is saving the Ink data into InkSerializedFormat: Ink.Save(). And then using that with an ink overlay to by deleting all the strokes and then inkOverlay.Ink.Load(...) my serialized byte[] from the .Save() method above. For the majority of the time the collections are identical except that I am adding a stroke one ...Show All
SQL Server Integrate VSS with SQL 2005
Is there a way to compare a script in Visual source safe with sql 2005 stored procedure without scripting out the stored procedure from sql I usaually script out a stored procedure from sql to a .sql file and compare it with a script in VSS and I was wondering if anyone know a faster way to compare SPs in production server with VSS. I am using sql management studio and also added all SPs to VSS thru management studio. Thanks. Hi, the best application for this is the Visual Studio for Database professionals. The sources used here can be integrated with a Visual Source safe provider. You can easily compare two database /the actual project in schema as well as in the data. HTH, Jens K. Suessmeyer ...Show All
Visual C++ Can't get Csv format for clipboad to work with unicode
I have been struggling with writting a comma seperated string to the clipboard with the intention of pasting the string into excel. The code below works fine for all three character sets (ANSI, MBCS, and UNICODE) when using appropriate standard formats CF_TEXT or CF_UNICODETEXT. When I add the Csv format everything works ok for ANSI and MBCS but does not distribute the values seperated by the commas in the text strings into individual cells in UNICODE. In fact, when I paste special and select Csv, all I get with UNICODE is the first value in the first cell as opposed to 1 in first cell, 2 in second cell, 3 in third cell, and 4 in forth cell. I get the Csv in seperate cell with my project set to ANSI or MBCS. What am I doing wrong I use ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Does XNA support x64?
Well, thats already the question. MDX 1.1 runs only in x86 (32 bit) mode, MDX 2.0 beta didn't support x64 either. I'm asking because the DirectX dlls are also provided for the x64 platform for quite a while now, but we managed developers can't use them yet. Hi abi. Native x64 support will not be in V1. We realize this may be a blocking scenario for some game developers but we plan to have x64 support available in the next release. We will likely have an update to XNA Game Studio Express next year that will have native x64 support. (edited and clarified) aL ...Show All
