Kiefer's Q&A profile
Visual Studio partner dvd
Hi, I just received the Partner Resource DVD that can be ordered from your website. Now, there are lots of trials on this dvd, but nethertheless some products are labeled "full version". So, full of expectations, I started the installation of IP*Works! V6 .NET Edition. But when the installer starts, it labels just "30 day trial". The same phenomenon strikes me on several "full versions" on this DVD. So, what's Microsoft's definition of a full version Or am I doing anything wrong Greetings, Peter A full version indicates that the product includes all features. A trial version typically includes a subset o ...Show All
Visual Studio Express Editions Can a number of RadioButtons be accessed with a for..next loop?
I am working with RadioButton1 thru RadioButton12. Can they be accessed with a for..next loop instead of 12 separate if..then..else statements For each ctrl in me.controls if typeof ctrl is radiobutton then ctrl = directcast(ctrl, radiobutton) ctrl.checked = true ...Show All
Visual Studio 2008 (Pre-release) DataContractSerializer Configuration Error
I'm running the following code: Uri baseAddress = new Uri(" http://localhost:8080/OxfordCRMWCF "); //Instantiate new ServiceHost sh = new ServiceHost(typeof(AddressTypes), baseAddress); sh.AddServiceEndpoint( typeof(IAddressTypes), //contract type new WSHttpBinding(), //binding type " http://localhost:8080/OxfordCRMWCF/ "); //the endpoint's address //Open ServiceHost sh.Open(); When it gets to the last statement and attempts to open the service host, I get an error that says: "DataContractSerializer config section under System.Runtime.Serialization sectio ...Show All
Visual C# How change startup form
I have just switched from VB to C# and am writing a Windows application. In VB you could easily change the startup form by selecting the properties of the project and moving to a dropdown where you could pick the form you want to use as the startup. I see no equivalent in C#. That is, there is a Startup Object dropdown, but it only lists the ProjectName.Project file. I see that I can go into the code of this file and rem out a line like this: Application.Run(new Invoices()); and type in a line lke this: Application.Run(new Form2()); This solves my problem. Just wondering if this is the orthodox way of doing things in C# Someitm ...Show All
Visual Studio Team System Errors while managing Work Items in Excel
I use Excel extensively to triage and prioritize Work Items. I randomly get the following error when clicking in a cell. ****************** TF80070: Team Foundation encountered an error while performing the operation. It is recommended that you save your work and restart the application. ****************** I can safely click OK to get past the error and continue working, but sometimes the error pops up every time I change cell! Obviously, this gets to be very annoying. Has any one else had this problem And more importantly, is there a fix Thanks, Joe. Joe, thank you for your feedback. This is the error you w ...Show All
SQL Server How do i watch variable values during debugging ?
Is there a way i can see the value of the variables during debugging Yes i have a problem seing breakpoint in for example VB i a script component. I can set the breakpoint, but when i close the script windows in SSIS the coding windows closes as well. And when i run the package or open the script editor again, the breakpoint is gone ...Show All
Visual Studio ItemOperations.AddNewItem does not seem to work in new projects
We are using the following code in one of our wizards. env.ItemOperations.AddNewItem("Visual C# Project Items\\ActiveReports File", string .Empty); If you have a new project and you have not used the Add New Items dialog to create our item type a call AddNewItem inside our wizard does not work. Once you have used the dialog to add our item type to a project then the AddNewItem method works. Does anyone have a suggest about what we are doing wrong. Chris Chris, The best option for you to do this without openeing the 'Add New Item' dialog would be to drop the item templates into \Program Files\Micros ...Show All
Visual C++ Virtual Inheritance
Why is it that when a class inherits a non virtual base class, space for the base class members is at the beginning of the derived class object whereas, when the base class is virtual, then, within the derived class, the base class members are copied after the derived class members. Thanks, KarthikR Hi Karthik, In virtual inheritance, there is no base class copy in the instance of the derived class. In the derived class, there is only a virtual base pointer which point to the entry of the virtual base class in the virtual base class table. So we can not really say “ the base class members are copied after the derived cl ...Show All
Visual C# Unloading Or Releasing an Unmanaged Dll When Using DllImport???
I am trying to figure out how to unload and Unmanaged Dll that was originally loaded with DllImport, but I have not had any luck so far. Let me explain the reason for wanting to do this. I have an unmanaged Dll containing resources. I load this dll and check it for a specified value. If that value does not exist, I want to update the resources. The problem I have run into is that the unmanaged Dll is not being unloaded after I check for the specified value and therefore I cannot update the Dll resources. Can I use Dispose to unload the unmanaged Dll If so, how If I cannot unload the unmanaged Dll are the ...Show All
Visual Studio QueryStatus() isn't called until running a command for the first time
Hi, I am writing an addin to VS 2005. I added 2 commands to the project context menu. I have a code in QueryStatus that controls the status of these commands. the problem is that QueryStatus isn't called until the first time I run one of my commands. after the first time QueryStatus is called whenever the menu opens, which is the correct behavior for me. I put a System.Diagnostics.Debugger.Break() in QueryStatus to verify when it is called. How can I make QueryStatus be called even before the first run thanks. Hi Noa, This behavior is by design. Visual Studio wait until a package is used b ...Show All
Windows Forms Textbox and margin
Hello Why, when I change the margin in VS2005, the height of the text box doesn't change. And I can't change it (it comes back to the original value)... How can I increase the height of my textbox Thank's The textbox height is linked to font's size. You can set the Property Multiline to true to allow change the height. ...Show All
Windows Forms textbox overides
I have created a custom textbox so that a user can type in an account number and hit "enter" or "tab" and details for the account will be displayed. I have overidden the default behavior for the enter and tab keys to capture the their keydown events. I would also like to restrict input to numbers only and arrow keys and backsp ...Show All
Visual Studio Crystal report from XML
I have a VB.Net (2003) project that has a simple Crystal Report. The report displays data contained in an .XML file. Using the wizard, I was able to get it to displaty properly. The problem, is that I would like the user to be able to choose an .XML file (of the same format) and have the report dynamically display its contents. I cannot figure out how to change the .xml file that it reports on during runtime. Can anyone help me in this aspect Hi, Thanks for ur advice. I solved the pbm by giving the table name. if i give the dataset as datasource i've got a blank report. Thank U! ...Show All
SQL Server Joins with XQuery
Hello, I have a very simple data table: CREATE TABLE [ALMPayloads]([ID] [int] NOT NULL,[OutputPayload] [xml] NOT NULL) with the following content: ID = 1 OutputPayload: <ReportDocument> <ALMSimulationResult> <selectedModelAssets> <modelAsset ID="8bc798ae-cc15-4807-8805-61ecfc8f3c01" description="Global Bond" internationalCode=" " minimumLimit="0" maximumLimit="1" annualManagementFee="0" annualPerformanceFee="0" initialCostUpFront="0.02" regularCostUpFront="0.015" withdrawingCommission="0" swi ...Show All
SQL Server Production to Development
In my current environment, we build and deploy our solution to our dev box. Once tested, we migrate the MSAS database by exporting out the .XMLA and run it on our stage box and finallly to production. When making changes due to business requirements or such, I want to use the schema that is in production as a baseline so that we do not lose any of our partitions. I tried using the Open Analysis Services option in Visual Studio, but that just exposes the Analysis Services database on Production, thus any changes would directly affect production. I want to be able to bring this information into Visual Studio and then go through the ...Show All
