.NetDeveloper's Q&A profile
Visual Studio How to update the build number in a .RC file every time I build?
I thought this was such a basic thing that it would be built into VS, or answered in a FAQ somewhere, but I can't find the answer. What is the best way to increment the build number of my (non-managed) C++ exe Microsofts internal build process uses a system very similar to the one described in the articles posted. Since our processes are based around a "daily build" the version information that is stamped into DLLs and EXEs is controlled centrally and corresponds to the day that the build was done. We have a header file (used by RC files amongst others) that is generated by our build lab and checked i ...Show All
Visual Studio Error Generating Report to Viewer
Seem to be having the occasional problem when generating a local report to a report viewer. First a dialog appears which states “A generic error occurred in GDI+” After clicking the OK button the report viewer shows the same message This error is not consistent and I haven’t been able to pin down the circumstances that cause it to happen. Any suggestions on where to start would be greatly appreciated. Jim Have continued to investigate this problem and now found out that ...Show All
SQL Server response time when browse
When I go through management studio and browse the cube it takes a very long time. When I run MDX queries the response time is less than a minute. What does Analysis Services do when you browse the cube through management studio Thanks, Edwina Derrick Edwina, SSMS only uses MDX, too! The question is: How "good" is the MDX... Are you really satisfied with a response time of "less a minute" The cube must be quite a monster, the box it's running on must be very slow or the design of the cube must have some serious issues otherwise you should have a response time of seconds (o ...Show All
Windows Forms How do I lock a couple of forms inside a panel?
Hello, I would like to develop a user interface with the same look and feel of Microsoft Outlook 2003, I mean the UI will have a menu bar (where I will open many other forms such as : one for customer maintenance, other for supplier maintenance, other for order entry maintenance ), a left side and a right side. In the right side I would like to have it working as a 'client area'. I would like to open the forms I told you above in this space, and I would like to let the user to open as many forms he wants at the same time, I mean, the user can let the customer, supplier and order entry forms open at the same time in the 'client area', I’d lik ...Show All
Visual Studio Express Editions console view won't stay on screen
ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/cpref8/html/T_System_Globalization_DateTimeFormatInfo.htm I am a newbie at console applications. When I run the example code in the above, the console view comes up for an instant then disappears. What do I need to do to get the console view to stay on-screen BTW, why are half the code examples written in console code and half in windows code I fail to see the reason. I keep having to re-write console examples for windows. Console applications are applications which are run from the command windows and usually dont have a windows user interface, the ...Show All
Windows Forms Setting icon to form
Hi I face the following problem. I m using Visual Studio C# 2003 standard edition.In my project i use Modaless Form and i dont show that form in TaskBar .Now i need to set a icon for that form.I tried setting my own icon but it always displays the default one.i like to know how to set the icon for a form which is not shown in the taskbar. Please Help... Thanks private Form1_Load( object sender, Eventarg e ) { this .Icon = new Icon( @"c:\myicon.ico" ) } ...Show All
Architecture Pimp My Ride? Pimp My Software first...
Would love to hear your comments http://msmvps.com/blogs/rohanthomas/archive/2006/02/02/82301.aspx Rohan Apologies - my email was/is eddie.hulme@(nospam)eds.com take out the nospam. Have replied via your blog, but just for rest of the community here who might be following this thread. You are correct, we spend to much time and effort when an analysis might show that the costs of re-engineering are cheaper than the patching. Taking this step a tad further we may also find that there is another option in freezing the code - thats to say - rather than rip and replace which we are advocating in re-engineering - we can wrapp ...Show All
Windows Forms MDI Maximized children forms without controlbox?
MDI Maximized children forms without controlbox I have been searching the web and everywhere I asked the question, the answer is that it is a Microsoft Bug. Well instead of telling me that it is a bug, how do I fix this My situation: I have a parent form (frmMain), a welcome/startup (or background) form (frmWelcome) and other child forms for data capturing. The idea is that when the program runs, the welcome form is displayed and stays displayed as a type of "background page", displaying outstanding jobs and other system info. All forms, when opened, must be maximized, thus eliminating the need for the minimize box or maximize box but s ...Show All
Windows Forms C# Version??
This looks like a great sample, but will we see a C# version any time soon Thanks, Eric J. Smith Does the new version include the C# code for the GDI+ Controls bye Luxspes ...Show All
Visual Studio Tools for Office RemoveCustomization
Hi, I want to Remove the customization of the document when the document is closed. I tryied to do this in the Shutdown event calling the RemoveCustomization method but i got an error that the file is opened. How can I remove the customization when the document is closed Regards, Juan Hi Juan, I tested this for you, and I was able to do it using the BeforeClose event: public partial class ThisDocument { private void ThisDocument_Startup(object sender, System.EventArgs e) { UserControl uc = new UserControl(); Button bt = new Button(); bt.Text = "Click Me"; uc.Con ...Show All
Windows Forms Save datagridview layout to file
Hi, I want to save a datagridview layout to a file. Not the data - just the columns, their formatting and the fields they are bound to. Can this be done (and how!) Paul. I don't know if this is what you're asking for, but this article helped me: http://msdn2.microsoft.com/en-US/library/system.configuration.applicationsettingsbase(VS.80).aspx It's not for a UserControl, but it should be similar - apply the example code for a UserControl instead of a WinForm, ...Show All
Visual Studio Express Editions ComboBox question?
hi everyone i have a question with dealing with combobox i have created a combo box ....but i would like to disallow writing in it's field ...so if i click on the field it should dropdown the list and prevent me writing in it....how can i do this thanx.... Hi Fahad, FYI: Once your post is answered, you can go ahead and click on "Mark as Answer" button to tell the members of forum that your post is being answered. You can always re-open the post by clicking on "Unmark as Answer" button on the reply, if you still think your post is not answered. For now, i'm marking your post as answered. Thank you, Bhanu ...Show All
SQL Server Active (non executed) objects will still drain performance!?
Even if objects(tasks, components) are not explicitly called (say they are under another CtrlFlow constraint which doesn;t meet expr_condition), they will still eat up performance. We have a pkg that has 3 DFTs that will either transform FLFFtoXML, CSVtoXML, or PIPEtoXML. When we execute this pkg it takes roughly 15 secs to complete, but for every DFT we disable, it shaves 5 secs off. We did some debugging and found that an entry of: DLLGetClassObject succeeded... and DLLGetClassObject called for VSA7.dll/n... gets written the more we add/activate objects. Even when the objects were not getting executed -- these ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Only square textures?
I just found out that, when converting from a bitmap to a texture, directX appears to stretch the bitmap into a square. This is a problem, because if I don't want my external images getting stretched out of shape when they're rendered to the screen, I have to add "empty space" to the bitmap files so that the bitmap is a square. But I've been determining the size of an object on the screen based on the original bitmap that was loaded into it! Isn't there a way I can make a texture out of a non-square bitmap, without the bitmap getting stretched i found that Texture t = new Texture( device, path ) will stretch the imag ...Show All
Visual Studio Team System echoing comments in webtest output
I like being able to put comments in webtests to keep track of things. What I would really like to see is these comments echoed, at the appropriate places in the output from running webtests. Is there a way to do that with RC1 ...Show All
