danmbuen2's Q&A profile
.NET Development Get Ressources of a referenced assembly
I have an simple assembly A that refernces (linked) another assembly B that includes ressources (png files) that I want to use in assembly A. I included the png images into assembly B just via Visual Studio --> add new item --> build action --> embedd as ressource. When I look into assembly B using .NET refelctor I find the ressource directly under the ressources folder: public resource MyNameSpace.MySubNameSpace.FileFolderName.ImageFileName.png how can I acess this file in assembly A. I suppose I have to use the RessourceManager but I fail to find the correct parameters for its contrsuctors. Yes, you'll need to tell the framework which assembly contains the resources you want to load. You can make it ...Show All
Visual Studio Express Editions How do I get the last line of an rtb as a string
How do I get the last line of an rtb as a string ...Show All
Visual C# How Can I retrieve The real Ip
hello I have a problem .. my project like a Messenger and I want to register The real Ip Of my machine When I login The internet But I Use DsL !! How Can I retrieve The real Ip Not Virtual Ip Log into your Router and check the settings in there ....you will be able to retrieve your IP address from one of the options. ...Show All
SQL Server Synonym to stored procedure error
I've run into a problem using synonyms for storedprocedures and it only occurs when parameters are passed to the "procedure" and the synonym is based on a 4part name ([server].[database].[schema].[procedure]). Am I doing something wrong or is this a real problem Anyone know of some kind of work-around --sample code CREATE DATABASE dbCode CREATE DATABASE dbSynonym GO USE dbCode GO CREATE PROCEDURE dbo.test_procedure AS SELECT 'procedure_call' GO CREATE PROCEDURE dbo.test_procedure_parameter(@parameter int) AS SELECT 'procedure_call' GO USE dbSynonym CREATE SYNONYM dbo.test_procedure_3part FOR dbCode.dbo.test_procedure CREATE SYNONYM dbo.test_procedure_4part FOR (serverhere).dbCode.dbo.test_procedure CREATE SYNONYM dbo.tes ...Show All
SQL Server results of a stored procedure
How do I filter the results of a stored procedure Hello Chyna, If you click on your table in Layout view and go to the Properties of it, there is a Filters tab. In here you can set an expression for limiting your results. Hope this helps. Jarret ...Show All
SQL Server Save to sql server failed no description found
I want transfer data from excel file to sql server. I created a package in sql server managament studio using export import wizard and i gave the option "sql server" as the package location. At the final stage of the wizard "Save to sql server failed no description found" error is coming. pls give me a solution. thank u try to run Regsvr32 msxml3.dll Regsvr32 msxml6.dll http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=748066&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=74140&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft's future policy for redistributing Xbox 360 games?
Before I commit serious time and effort to the XNA framework, I'm wondering if anyone knows Microsoft plans for allowing us to redistribute our games for Xbox360. I'm an academic. Let's say I want to make some educational/simulation games that my students can use on the Xbox 360. Will I be able to provide them with a CD or download link in XBox live As far as I can tell so far, the only games I can write are for myself. I don't know if running on xbox 360 is essential to your idea, if not, you can always work on the Windows version. Although that has some hardware requirements which your students/lab may not have. I also wish MS would clarify the distribution strategy. Sure, you can zip up the source a ...Show All
.NET Development EnterpriseServices ObjectPooling and Tracing
I've a number of EnterpriseService based object for the sole reason that it can do Object pooling. They run nice and fine but I need to be able to trace them to a file using the TextWriterTraceListener. What would be the proper location to call the System.Diagnostics.Trace.Listeners.Add() I've tried the constructor and the Construct method but I end up with as many trace listeners as objects in the pool, visible as multiple entries in the trace log file. Is there one single location to create and add the listener Jo How about a static class "TraceManager" with a static method "EnsureTracingEnabled()" that you invoke from static constructors on all your SC classes The Trace ...Show All
Windows Live Developer Forums How to Capture The Inside pushpins in polygon on virtual earth
Hi all I want capture the inside pushpins in polygon on virtual earth. pls help to me assuming that you are trying to do what derek is assuming, here's a little code snippet i found on the web and use to determine whether or not a point is within a polygon. i have included the original author's info at the top to credit him. /** * Determines if the given point is within the given n-sided polygon. * * @param polygon A space-delimited list of coordinates. (Required) * @param point A comma-delimited coordinate. (Required) * @return Returns a boolean. * @author Joshua L. Olson ( joshua@waetech.com ) * @version 1, December 7, 2004 */ function PointInPolygon(polygon, point) { var polygon_arr = ListToArray(polygon, & ...Show All
Windows Live Developer Forums Photo Upload Tool
Come on Someone, there has to be a solution to this problem. I've tried everything in the help section on the myspace page. Went to another site and downloaded the .cab files. Deleted upload tool, re-installed it, still not working. There must be an answer. I'm wondering if it has something to do with IE 7. When I first made my page i was using IE 6. But I don't want to go back to IE 6. Somebody please help. Seems like microsoft is giving out same old info, check firewall, delete and reinstall etc. Do these people know what the hell they are doing. If I don't get this problem fixed soon I'll create a web page on another site. So if you tech guys read these messages you have to help, or if someone else out there can help, please do so. Than ...Show All
SQL Server Microsoft report builder is a very BAD product
This product can't make a report selectin measures from more then on cube at the same time crossed by to shared dimensions, it's a shame. Please don't say you have a web base ad-hoc query if you can’t even do same basic stuff like this. Really I have no problem requesting measures side-by-side from the ResellerSales and InternetSales fact tables sliced by the ProductCategory dimension table in the AdventureWorks DW sample database. As long as their is a relationship among tables, the model will let you navigate. The "stupid navigation" is implemented by in the form of roles that prevent users from requesting data from two unrelated tables. If the moded would allow the end ...Show All
SQL Server SQL Server Mobile - Reset Increment
I can't seem to find a way to reset the auto increment fields in my SQL Server Mobile database table. Are there any SQL statements I can call in order to do this I'd rather not have to drop and then re-create the database. Any help much appreciated I know that it only work for identity columns and even if I try on an identity column it did not work for me. Example: I have a table Table_1 with an identity column named Col_1 and when I try to run the statement: ALTER TABLE Table_1 ALTER COLUMN Col_1 IDENTITY(200, 1) on the SQL Server Editor in VS.NET 2005 it show me the message: The ALTER TABLE SQL construct or statement is not supported. Any ...Show All
Smart Device Development Pocket PC. Database. sdf to mdf ?
Iam developing a order system for a mobile device. The thogut is that a user should go home to his desktop computer an plugin his pocket pc device(.sdf) and update the databasefile(.mdf) that is on the desktop compputer. The desktop computer will be a Windows Xp computer and the program wil be done by VS 2005 windows forms. Is there any soultion on this problem out there Iam using VS 2005, Sqlserver 2005 and .Net compact framework 2.0. Have a nice day ! This is Naveen Kumar M. That is soo simple. Before i start telling the answer, i wanna tell u what i understand from ur question. According to my understanding, U r developing a PDA application (Order Form). And using SQL CE as database for that. And u r t ...Show All
Visual C# Run Application
hi, as you all know, I have a reputation for making a text editor with extra functions. I'm continuing with this fancy text editor, and am now asking if it is possible to run other applications using my program and C# eg. As you all know, MS Word is the biggest text editor made. I want to add some word art to my RTB, but can't do it in my own editor. How do I run MS Word using my application so I can add it Thanks. Eragon. System.Diagnostics. Process .Start( @"pathToYourExe/exeFile.exe" ); Regards. ...Show All
SQL Server Repeate group values in Matrix
Hi, I am using matrix to make a report. I have company name in the row group and user name in the details field. When I run the report I only see the company name once and each user of that company is displayed in a separate row. Then next company name and its users... I wanted to know if there is a way to display company name next to the user name I know it can be done by using "table" but I can't use table because in this report there are other fields can only be done in a matrix. So, please let me know if there are any settings in matrix which I can use to display my company name next to each user of that company. Please ask me any thing if the question is not clear. Thanks a lot for the help. -Rohit ...Show All
