topcaser's Q&A profile
Windows Forms Environment Variables in Windows Installer
I have a Windows Installer Setup project as part of my VS2005 solution, and was wondering if there was any way I could interact with Environment Variables from within this project Specifically, I was looking at a way to update the PATH variable on an install, and then remove the added entry during un-install. I was hoping there would be a quick and easy way of doing this. The Setup project has a Registry Editor, and I was expecting something similar to that like the Environment Variables Editor.. No such luck! Thx! The Setup projects in Visual Studio don't have anything specificially exposed for reading o ...Show All
SQL Server Query Issues Pt2.
I was wondering if i have a column with First name only and another column with the last name only....how can i make it so they can show together in one column when the result is returned..... SELECT tblWatchInstance.RepairNumber, tblWatches.Serial_Number, tblWatches.OwnerFName, tblWatches.OwnerLName FROM tblWatchInstance INNER JOIN tblWatches ON tblWatchInstance.Watch_Key = tblWatches.WATCH_KEY INNER JOIN tblWatchColors ON tblWatches.COLOR_KEY = tblWatchColors.COLOR_KEY INNER JOIN tblWatchBrands ON tblWatches.BRAND_KEY = tblWatchBrands.BRAND_KEY INNER JOIN tblWatchTypes ON tblWatches.WATCHTYPE_KEY = tblWatchTypes.WatchType_KEY WHERE tblW ...Show All
Visual Studio Tools for Office ServerDocument - Security exception
Hi all. I have for several days tried to make a simple application using Excel and VSTO ServeDocument. I have an Excel Worbook with one dataSet bound to the new ListObject that came with VSTO 2005 beta 2. (The goal is to list out the Products table from the Nothwind database) In a separate solution I have made a simple web site. I read the Excel document in to a byte array and make a VSTO ServerDocument based on this. Then I take DataSet based on the Products table and Serialize this in to the data island in the serverdocument. All this seems so work but when I try to open the document i get the following Exeption. "The custom ...Show All
Windows Forms Conditonal display of value in the column of the Datagrid
For the Start_date having the value 1900-01-01 00:00:00.000 I want to display blank in the datagrid Could you please let me know how to do this Well, you could build a custom column style that uses the date time picker, or you could change your select statement and if the value is equal to the value you gave then return NULL. Check o ...Show All
Visual C# Casting an enumeration that has a defined type..
public enum foo : ushort { foo, bar } ushort test = foo.bar; Cannot convert from 'Test.foo' to 'ushort' Sure, I can make variable of type foo, but I'm encoding the value to a network stream, so I want it as a ushort. The thing is, I specifically told the compiler the enum is of type ushort, so why do I have to typecast it You need to cast it :-) ushort test = (ushort)foo.bar; Oh - you said *why* do I have to cast it Because C# is a strongly typed language, IMO it requires casting more often than it really should, but at least it's not VB :P ...Show All
Visual Studio HelpStudio Lite not starting properly
Hi there, I've just installed the latest VS SDK February 2006. When I go to run the HelpStudio Lite program, it comes up with a licence agreement to which i click accept. Then nothing ever happens afterwards. Its showing in the task manager, but no window is ever shown. I've tried this a couple of times, but the same thing happens. Simon Jefferies I have the same problem. I have tried many reinstallations including disabling all my startups with msconfig. As Simon said above "it comes up with a licence agreement to which i click accept. Then nothing ever happens afterwards. Its showing in the task manager, but no win ...Show All
Visual Studio 2008 (Pre-release) How does LINQ affect SQL Server query plans?
are LINQ generated SQL queries to the database optimized to a query plan is this plan stored (as it would be for a stored proc or regular SQL) , and how can LINQ retrieve details of the query optimization plan ...Show All
Visual Studio Express Editions UPDATING THIS VWD 2005 from the Beta
I understood that I had until this fall to update the Beta version and this morning I've been locked out of my program VWD 2006 which says I have to remove my beta version from the server I'm using In middle of a busiest season and have worked on this project for over a year and NOW in the middle of it I have to remove the program and reinstall it! If I am going to have to reinstall this program in the middle of a full schedule and a project programs in progress then I will need some guidance in how to do this and support in case of the failure of doing so. I can't believe that Microsoft is so desparate that they need to alienate their c ...Show All
SQL Server Fit Table on one page if possible
has anyone had any luck with the table property option 'Fit Table on one page if possible'. Reporting services seems to ignore this. Anyone familiar with issues surrounding this property RS seems to break the table at will. I am MOST concerned with this issue as it relates to exporting to .pdf. Any ideas or workarounds would be helpful (we are running sp2). Thanks! Are you talking about the table's width and height properties For me, this issue is height as that is what is causing the breaking to the next page. My table width is 7.5, and the heig ...Show All
Visual Studio Tools for Office storing a variable(caching)
i need to store one value in a counter variable in vsto excel appln which cannot be stored in database.when i close the appln and open it again it should hold the value(persist) how can i implement this in excel application If you declare the counter as a public member on your customization class and mark it with the Cached attribute then VSTO will save this value along with the document and reload it next time the document is opened: [Cached] public int _myCounter = 0; ... _myCounter++; More details can be found here: http://msdn2.microsoft.com/en-us/library/75akte27(vs.80).aspx Tha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Area inside a CLR/WFA or MFC window?
Hello! I'd like to write an application which should use DirectX, but not in the whole window, only a part of the window. In the other parts of the window there should be buttons and input areas to controll what is happening inside the DirectX area. So appart of the DirectX part, that looks like a normal CLR windows forms application or a MFC application. My questions are: Is it possible to include such a DirectX area in a windows forms application or MFC application (Is windows forms application better for this than MFC or the other way round ) How can I include this area in a windows forms application or MFC application Are there some sa ...Show All
SQL Server sql server 2005 RS multi-value params june ctp
I have a very simple report with two non-queried values in my param list and the multi-select params box checked. The dataset only has two records, represeneted by the two params. The report always returns both records in VS and report manager whether I select one param, both, or the "select all" option. Anyone esle have this experience Microsoft SQL Server Report Designer Microsoft SQL Server Report Designer Version 9.00.1187.00 Microsoft SQL Server Report Model Designer Microsoft SQL Server Report Model Designer Version 9.00.1187.00 Microsoft SQL Server Management Studio &n ...Show All
Visual Studio login Failed
I have a windows app that connects to a sql database. I now want to do reporting from it. I have created a CR report (from the buit-in VS2003 version of CR) that is going to be used to display the information. When I run the app I get a login prompt for the database. No matter what I enter into the prompt CR returns "Login Failed". Searching the web the only references to try and solve the problem deal with using CR for reports on the web which are of no use to me. Searching Business Objects website I find references to webpages using CR and unless there is an option I'm missing I can only ...Show All
Visual C# adding Favorites Functionality from IE to a Form??
What needs to be done to add "Favorites" Functionality to a Form like in Internet Explorer I'm not sure what needs to be done to get that kind of Functionality in my Project.. Thxs for the Help in Advance.. Ok that Fixed it..The only thing i Did was to Remove the Picture Box as its not Needed now..Everything Resizes and the RichTextBox Shows and Closes,With the Web browser Expanding to the Entire Width of the Form.. Thxs for all the Help on this its Greatly appreciated & also for having Patience.. ...Show All
Visual FoxPro delete record
this question seems to be ... but I tried many times to do it but I couldn't . I'm using VFP 6.0 . I created a form and take data from mytable . After that I created Del button and wrote a small code in Click event . This is my code : if messagebox("Do you want to del this record ",36,"Notice")=6 delete thisform.refresh and the result is 0 record deleted . I don't know why . Is this related to "primary key" from mytable . If someboby know , please tell me . Thanks so much . This is my email : mrbxp@yahoo.com . If you have some help files of VFP about form , event , class , .... please send it to me . Thanks so much . -^^- : Now I' ...Show All
