jpsml's Q&A profile
Windows Forms Button Alignment with Background
Hello All, I'm new to C# and GUI's in general. I started with a background image that had all of the buttons drawn into the graphic. I then cut the graphic into tiles and removed the buttons to seperate files and imported them, and the background, as resources into my project. Then I loaded the background image as the background image for the form. I drew buttons over the background image in the proper places and then put the tiles in as backgrounds on the buttons. It all looks and works great on my computer. When I send it to someone else's computer (of the 3 I've tried, the background image is correct but all of the buttons and picturebox's (that have background images) have shifted up and to the left, but some normal buttons w ...Show All
SQL Server Copy database Wizard error: "Class not registered"
Hello, I use Management Studio (SQL 2005) on my desktop wich contain also Enterprise Manager (SQL 2000). The SQL Server 2005 is on a server in our network. When I try to use the function "copy database wizard" to transfer a database SQL 2000 to SQL 2005, the wizard stop with this error: "Class not registered Program Location: at Microsoft.SqlServer.Dts.Runtime.Application.SaveToSqlServerAs(Package package, IDTSEvents events, String packagePath, String serverName, String serverUserName, String serverPassword) at Microsoft.SqlServer.Management.CopyDatabaseWizard.PackageCreator.SavePackage()" Someone can help I am having the same problem with using CopyDatabase wizard in ...Show All
SQL Server Deploying CLR sps or functions which call a web service to a production server
Dear fellow developers, I have successfully developed a Transact-SQL stored procedure which calls a CLR function, which calls a web service. I am using a Visual Studio 2005 SQL Server Project to perform the necessary magic. Is there a neat way to deploy this stuff to a production server It is bad enough deploying the sp and function, but the web server proxy also needs to be changed to refer to the production web service. This all looks very nasty and complicated. Am I missing something I have identified the cause of the trouble deploying CLR code to a production server. I had copied the database to the production server, then attached it to SQL Server. This appears to mess up the security to such an extent that it ...Show All
.NET Development Error Message: Context 0x1a3178' is disconnected.
Hi While migrating Excel file data to database, error comes as below using winform code. DisconnectedContext was detected Message: Context 0x1a3178' is disconnected. Releasing the interfaces from the current context (context 0x1a3008).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis completely done with the RuntimeCallableWrappers that represent COM components that liveinside them. It sounds like you're trying to use an Excel object after Excel has exited. Or you are using something like a WorkSheet after Excel has unloaded it... ...Show All
SQL Server conflict merge replication
Hi, When merge replication is sync. two database in a minutes or manually sync. in consistently within a minute, while executing store procedure on updating a data(data existed in both server A and server B) on a single table. Eventually this will create a conflict of primary keys, where data in server which was updated , remove and reinsert in server A will conflict on primary keys with same data that previously existed in server B. Anyone hit the same situation before Thanks ...Show All
.NET Development Unable to Connect to ther remote Server
Hi all, I m new to web service. I m using VS 2005, asp.net 2.0 ,C#. I wanna consume a remote web service but got : "Unable to connect to the remote server" error. my code snippit is as follows: WebProxy proxyObject = new WebProxy("http://bluetongue.cs.rmit.edu.au:8080/", true); proxyObject.Credentials = new NetworkCredential("XX", "XX", "XX"); WebRequest req = WebRequest.Create("http://www.webservicex.net/globalweather.asmx"); net.webservicex.www.GlobalWeather gw = new net.webservicex.www.GlobalWeather(); gw.GetCitiesByCountry("Australia");//This line got :"Unable to connect to the remote server" ...Show All
.NET Development can we call myDataSet.AcceptChanges before calling mySqlDataAdapter.Update()
Can u explain to me why we can or can't do so pls Thank you please read the sticky post first: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=427451&SiteID=1 ...Show All
Smart Device Development Device Emulator V2
is RTM available now so that we can get on with mobile development on Vista any updates, anyone kevin, i'm in whole-hearted agreement with your sentiments. this along with other growing list of not infrequent quality lapses from Microsoft has prompted me to seriously consider jumping the mother ship after some 20 years onboard. enough is enough. for corporate-sponsored developers at least, the financial burden may not be so great, but for small fries like me, msdn subscription is becoming ridiculous in light of the quality i'm getting in return. i just cannot fathom the logic in not releasing this available code (i know it is supposed to be accessible via the CE 6 release) when Vista is officiall ...Show All
Windows Live Developer Forums License Conditions - Cross Browser Scripting ?!?!
hello out there, I'm developing a VE app that's going to use sensitive data from a proprietary CRM. i need to exchange this information between browsers (with Javascript: window.opener.forms[... ) to write the coordinates back to hidden input fields in the CRM system - it works fine as long as i am on my localhost. but for deployment i need to put it on a public accessible domain, as specified in the ToS. that's the point where browser security comes in, because it is not allowed to exchange data between browsers that have loaded webpages from different domains. one possible solution would be to have my CRM system on a password protected domain, e.g. example.com and make accessible only one subfolder where the VEMap app is hosted, e.g. exa ...Show All
Visual Studio Report dissapear on postback
Hi all, I am using Crystal Report for VS 2005 to develop an Asp page.Below is the code is use to display my report in a button click event. OdbcDataAdapter myAdap = new OdbcDataAdapter (); myAdap.SelectCommand = myCmd; DataSet ds = new DataSet (); myAdap.Fill(ds); ds.WriteXml( @"c:\dataset_summary.xml" , XmlWriteMode .WriteSchema); string reportPath = Server.MapPath( "Crystal/projectsummary.rpt" ); myReport.Load(reportPath); myReport.SetDataSource(ds); myCrystalReportViewer.ReportSource = myReport; The report is displayed but when i click on the Export button or the Print button, the report dissapear. Any idea why this occurs and how to solve it ...Show All
Visual Studio Testing an Itemgroup in a Propertygroup Condition
Hi, Is it possible to test an element within an itemgroup from a property group I tried but its not evaluating and I know my systax is right there is no errors during a build. e.g. < ItemGroup > < ConfigurationToBuild Include = " Release|Any CPU " > < FlavorToBuild > Release </ FlavorToBuild > < PlatformToBuild > Any CPU </ PlatformToBuild > </ ConfigurationToBuild > </ ItemGroup > < PropertyGroup Condition = " '$(ConfigurationToBuild.FlavorToBuild)'=='Debug' " > < DeploymentServer > Radon </ DeploymentServer > < DeploymentSharePath > DeploymentTargetDEV </ DeploymentSharePath > & ...Show All
Visual C# Best way to marshal an array of C style strings
im trying to create a parallel managed struct in a .net dll from a C application. in my C app i have a struct with this in it: struct myStruct { . . . char header[7][30]; } and i wanted a managed version. i havent found much on marshalling an array of c style strings... but it might be because im not using the right search words. i saw this example, would this be correct [StructLayout(LayoutKind.Sequential)] public struct myManagedStruct { . . . [MarshalAs(UnmanagedType.ByValArray, SizeConst = 7, ArraySubType = UnmanagedType.ByValTStr)] public string header; } and if it is, how would i marshal over each string in the array to its parallel managed version Yes. Another op ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT files(xgs,xsb,xwb) don't deploy during Publish; getting FileNotFound
My problem: My game project in XNA uses 2 sounds. I went thru the XACT tutorial(for my uses I found it quite easy to add my .wav files used via XACT), and I now have all code in place, and functioning. When I Start Debugging in XNA, my game runs correctly, and I get the correct audio plays when the proper events cue them up. HOWEVER, once I publish the same project, and install it from the Setup.exe, the installed game crashes. I get the error: system.io.filenotfoundexception. What I have checked already: 1.All 3 XACT files are in my main game directory. 2. All 3 are set to 'always copy' to output directory. 3. All references in the Sound.cs class I created point to the correct XACT files(the build would not run if it did ...Show All
Visual Studio Express Editions How can I code with c++ and c# at the same time with Visual Studio Express
Hello I currently program games using visual studio c++ express but I also want to try out Microsofts XNA Game studio which requires visual studio c# express, however to install visual studio c# express i must uninstall visual studio c++ express. Is there any way I can continue to code with c++ and try c# with visual studio If so how do I install both on my machine Thanks. The instructions say that you must remove any previous versions of the express products.... this means that you must uninstall all beta and ctp versions of the software, Not the production or RTM versions. You can install all of the editions along side each other with out any problems. ...Show All
Visual Studio Problem adding a reference for asp.net website in visual studio 2005/visual sourcesafe website on network drive
Myself and one other developer are working on an asp.net 2.0 site using visual studio 2005 and visual sourcesafe 2005. Our files are shared on a network drive and using the features in Visual Studio 2005 I added the website to visual sourcesafe. I can add, delete, modify, write to files and folders on this shared network drive. The problem I am having is I am trying to add a reference in the website to "Microsoft.Practices.Enterpriselibrary.Data.dll" and it does not seem to be working. It adds the files to the bin directory but when I try to use the "Imports" statement in vb.net studio has no clue what "Microsoft.Practices.Enterpriselibrary.Data.dll" is. Any ideas on what I am doing wrong Is there some settin ...Show All
