anseal's Q&A profile
SQL Server Set report display name in visual studio before deploying??
Is it possible to set up the report display name somewhere in Visual Studio before deploying I have many reports and i don't want to list the report file name in Report Manager, instead i want to display a more user friendly report name. I know it is possible to change the report name in Report Manager, however when I deployed a new version of it, it didn’t replace the existing file, it put a new one up (meaning i now have two copies of it, so each time i deploy i have to delete the old report and rename the new one). I also want to set up the “view in list” property in Visual Studio, which I assume would be in the same place. Would be nice if they could include this in the next release...which is soon i hope! ...Show All
Visual C# Time Passed
Is there any way to determine the amount of time that has passed from one specific point to another I.E. If the user logs in at 16:00 and logs out at 21:00 is there any way to tell that 5hours have passed Cheers Thomas Yes... how can the original solution solve this Your original solution was: DateTime startTime = DateTime.Now; DateTime endTime = startTime.AddHours(3); TimeSpan diff = endTime - startTime; MessageBox.Show(diff.ToString()); I can't do this if the Number of hours is unknow. Cheers Thoams ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with limiting instances
Hello there. I'm working with XACT in conjunction with a pool of programmers on a project. I 'm having problems limiting the instances of a sound. The limiting actually works, but when I demo the game in Windows, there is quite an obvious slowdown, runing the pace of the game. When I remove the limiting, the game runs fine. According to the rest of the team, it runs fine on the XBox but I'm struggling at my end with the slowdown. If anyone's got any suggestions as to what might be causing the problem, drinks are on me! Cheers, James I'd be curious to hear (no pun intended) the results of two things: 1. try it with different combinations of values in the InstanceToReplace and HowToReplace variables. Same issue 2. Try limiting some o ...Show All
Visual Studio 2008 (Pre-release) Supporting Readonly Properties
I have a problem with these... In fact, we often use readonly properties referencing other domain objects. It works well with DLinq when it comes to retrive data from the db and for insertions. On deletion, however, DLinq seems to try to dettach an entity from its related entities (even if on the left side of a n:1 relation) thus requiring a Set assessor which we lack : Bug. Ok, so searching the forum I read a workaround that proposed to map a protected field and expose it a public readonly property as are design requires it. But DLinq doesn't seem to want to map any of field to other entities... It's kind of a hard sacrifice for us to accept to add setters implementations because it's not the in the properties signature, and mainly : the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpriteBatch can't be created
After migrating all of my code to Beta 2, everything seemed to work on on one of my desktops. On my other desktop, it seems that I can't create a SpriteBatch object. The device and everything will create and I can watch it run through a blank screen forever. But i can't create any kind of spritebatch object. Everytime i try to create one, the program crashes. Anyone have any ideas about how I can fix this At what point are you trying to create the spriteBatch When I ported my code from beta1 to beta2 I had to move some creation code from the game constructor (where I shouldn't have put it in the first place) to the Initialize function. If you try to create the spriteBatch before the Initialize function ...Show All
Visual Studio Express Editions Serial port how to read bytes or words?
Hello, I am trying to use the serial port to read data from a pic microcontroller. I am using the serout2 command on the pic to send out data in bytes The main reason i used bytes is so make visual basic read bytes rather than characters that way when i send out say the number 200 from the microcontroller visual basic will store the whole number 200 as oppose to three numbers "2" "0" "0" Well at least that's my main point i could be wrong. The question is how do i use visual basic " the readbyte command" to read the byte and store it in a text file what i have so far will store numbers right next to each other without seperation. Here is the code i use to receive data offcourse after i open the com port. '-------------- ...Show All
Windows Forms Callbacks failing with different version of msrdp.ocx
I am not getting callbacks from msrdp.ocx if using different version of ocx than the one used in compile time. example msrdp.ocx version 5.1.x vs 5.2.x. Any info is appreciated. Thanks, Sankar ...Show All
Visual Studio Tools for Office WebBrowser Control Hosting Word: How do I programmatically enable "Browse in Same Window" functionality?
Hello, I am not certain if this is the right forum but it just may be... Having gone through a lot of KBs, Forum articles and misc websites, I still do not have an answer. My application is a C# Winform with a WebBrowser control in which I navigate to a Word Document. If "Browse in same Window" is checked, the document pops up in the Webrowser control. If it is not checked, it pops up in a new copy of Word. Is there any way that I can programmatically enable the "Browse in Same Window" functionality, navigate to the document, then reset it back to whatever it was Thank you Afzal Hi, You can probably look at that registry using regedit.exe and then change the value in the check bo ...Show All
Visual Studio 2008 (Pre-release) Public LINQ Chat with the C# Team (12/12/2006)
Please join us for an hour long public chat on LINQ to SQL and related technologies to be held Tuesday, Dec 12 at 1 PM Pacific time. Follow this link to see your local time for this chat. LINQ is a set of extensions to the .NET Framework that provides native C# language support for querying data. LINQ to SQL is a component of LINQ which allows access to data stored in relational databases. The C# team is actively designing and developing this technology; show up and join the LINQ to SQL team to participate in that process or just to get a better understanding of the technology! (Go to the chat room .) - Charlie I usually also post chats transcripts on my blog . http://blogs.msdn.com/charlie/archive/tags/Chats/default.a ...Show All
Visual Studio Express Editions Card Game Starter Kit
I Downloaded the card game starter kit. But when I run the program, I only have the clear button, I don't have the bet,double down, and cant see the chips. I opened the form and can inlarge it to see the chips and clear buttons, but don't see any others, but in the property window they are on the form. So what can I do to see them Sounds like a video resolution problem. You'll need at least 1024x780 to be able to display the BlackJackForm in full. Also check your DPI setting. ...Show All
Software Development for Windows Vista Tutorials on WF and WPF
Good Morning Fellow Questers I’m looking for help on two things. 1. The location of tutorial or sample code that use WF and WPF together. 2. Insights, facts or guesses on why there is so little MS resources devoted to using WF and WPF together. Thanks and I’m looking forward to your response Make it a great day Mike Greenway Here's the link for all the integration samples - http://msdn2.microsoft.com/en-us/library/ms756478.aspx Sorry I missed the link in my last post. ...Show All
Visual C# Quite poor error message with COM interop compilation in VS2005
At least C# express and Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 When creating a dead simple com interoperable DLL project (btw I suck at COM), if you do this stoopid thing, which I did: 1. mark assembly as COM interoperable 2. mark output as COM interoperable 3. Assign static GUID to your assembly 4. put the same guid as a marker for you class (this, was the error) 5. Create an explicit interface [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface IComTestexposer1 { //code here } 6. make the class implement the interface. 7. try to compile and get error The assembly "C:\\VSProjects\Comtest.dll\Comtest.dll\bin\Debug\Comtest.dll" could not be co ...Show All
.NET Development Hiding inherited members from view...
Is there a way to downright hide an inherited member without destroying it. Say I derive from a base class and my derived class wants to hide certain members that are public in the base class. How shall I do this Thanks, Devin Devin, exactly what are you trying to accomplish here If you want to "hide" the method from intellisense so it doesn't show up in the autocomplete list in visual studio, you can shadow the method and put a EditorBrowsableAttribute(False) on the method/property. As Luc points out, it is not possible to prevent users from being able to call methods of your base class (for example by casting an instance of your object to the base class) Best regards, Johan Sten ...Show All
Visual C# Create CSV file with styles
Hi, How can I create CSV file with styles Thank's Alexei Hi Alexei, A CSV file is a "comma separated values" file. According to me, CSV files don't contain formatting. So it is not possible to have a CSV file with formatting in it. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Visual Studio The report definition for report 'xxx' has not been specified
Hello, I have to confess that I never did anything with reporting services, reports, or whatsoever. For a rather huge database application (based on sql express) I thought it might be best to do the printing with local reports, which I planed to bind to the objects, I already used as data layer in my project. I created a simple report (just a table, with two fields), bound the report to the ReportViewer-Control, set the bindingsource-properties in form load. But the only thing I see is this error message "The report definition for report 'xxx' has not been specified" So: What *is* a report definition and how *do* I specify it Are there any infos I can get somewhere, to learn more about the whole concept Thanks, Klaus ...Show All
