ausmock's Q&A profile
Windows Forms UserControl default design time settings?
I've created a UserControl for use in my form that has numerous properties. One of the properties is of a custom reference type that I've made. Now, whenever I put this UserControl into a form, it sets a silly value for that reference type property, to the effect of: this.testUserControl1.MyProperty = ((MyPropertyType)(resources.GetObject("testUserControl1.MyProperty"))); Now, the net effect of this is that the designer ends up complai ...Show All
Visual Studio Team System Failed to load adapter
Hi, please help me, I permanently got the following message: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 5/5/2006 6:02:40 AM Machine: TFSBETA3R Application Domain: /LM/W3SVC/3/Root/Warehouse-3-127912825425748674 Assembly: ...Show All
SQL Server PERCENTILE_CONT equivalent in MS SQL
Hi All, I have a table with a count of 30K rows that describe values over a period of time. I would like to be able to replicate the PERCENTILE_CONT function that is found in Oracle with MS SQL Server 2005 but have not had much success. Would anybody know of a way to use current MS SQL syntax to retrieve the value of the 5th,10th,15th,20th etc... percentile of my table values Assume that all of the values are assoc ...Show All
Visual Studio Express Editions C# and Sql Server Express Edition, Using Visual C# Express Edition
Hello! Doing some C# and trying to access my db. Following a book from Wrox: 'Wrox's SQL Server 2005 Express Edition Starter Kit' - they use VB - there is my problem. How would I translate the following to C# Dim PKvalue As String = FilterInput.Text; // Filterinput ar en textbox DIM Rowlocated AS DataRow = Me.MyDBDataSet.Person.Rows.Find(CType(PKvalue,Integer)) If Not ( RowLocated Is Nothing) Then MessageBox.Show(CType(Rowlocated(1),Stri ...Show All
Windows Forms Problem with designer generated code
I have a custom control (MultiViewControl) which I have inherited from UserControl and another custom control (MultiViewPage) which I've inherited from ContainerControl. A MultiViewPage can host child controls and a MultiViewControl holds a collection of MultiViewPages. What I wanted to do is for a user to be able to flick through a collection of MultiViewPages using the forward and backward buttons (same functionality as a TabControl but withou ...Show All
.NET Development How is performance affected by calling a 1.1 assembly from 2.0 service?
When / how frequently does the 1.1 runtime have to load Surely not with each call to the service As of today, only one version of the runtime is loaded per process, no matter which versions of assemblies are later requested. So, if the v2 CLR is already loaded, it will successfully load a v1 assembly and run it against the v2 CLR (not the v1 CLR) without reloading the already-loaded v2 CLR .dlls. While we'r ...Show All
Visual Studio Tools for Office XML markup error when using InsertXML
Hi, I am new to VSTO and WordML and have been struggling with this problem for a while and would appreciate if someone could help me out of this hole. I am attempting to create a child node inside the document root node using InsertXML. The WordML bit works fine until I decide to add a tag [Title] of my schema. No matter what I do I consistently get the following error message: "XML mark up cannot be inserted in the specified locat ...Show All
Visual C++ How do I mix buffer length macros?
I have got a function void foo( char p_b[], ptrdiff_t p_l = -01); I would like to express a prerequisite that: IF p_l == -01 THEN __in_z p_b ends with '\0' IF p_l > -01 THEN __in_ecount(p_l) p_b except that it may end with ' \0' earlier p_l >= -01 How can I declare it with static analysis macros Chris Not all of them can be expressed; You can express uniform requirements for p_q[0] and p_q[1], but ...Show All
Software Development for Windows Vista Welcome!
Hello and welcome to the Data Access, Storage, Search and Organize forum! There's a lot to talk about here and we're waiting to listen to your comments and answer your questions. A lot of folks are down there at PDC so we're expecting these forums to really cut loose once everyone gets back and starts to work with Vista, but we're open for business now! The following link provides much useful informat ...Show All
Software Development for Windows Vista Register Windows Vista SDK Beta 2 in Visual C# Express
Hi folks, I recently installed Visual C# Express. No I downloaded and installed the current Vista SDK. How do I register the SDK now with my Visual C# Express, so that I can add references, etc. The corresponding tool for registering the SDK seems to be working only for Visual Studio 2005 or C++. Not the express edition. Can anyone help please Thanks and best regards, Christian. You don't need to ...Show All
Visual Studio Express Editions AxShockwaveFlashObjects not found
hi every1. I tried adding a shockwave flash object on a form but i get an error when trying.. "Failed to import ActiveX control. Please ensure it is properly registered" SO, in the references node from the Solution Explorer i have two newly added references, one being ShockwaveFlashObjects (which look ok) and another being AxShockwaveFlashObjects which has an exclamation mark newxt to it.. In the components list (for the Add Reference function ) ...Show All
.NET Development Finalizer thread priority (exploit) ?
Due to a design mistake, I have run into an infinite loop within the finalizer thread. As a consequence the VS interface was almost freezed (I was not able to click on Debug All for example). The Windows Task Manager (running with the "Above Normal" priority) was also almost freezed too. Therefore I have checked the finalizer thread priority, and I have found out that the finalizer thread priority is set to Highest . Since a .Net application ca ...Show All
Windows Forms Multiple Forms
Hello, I have 2 forms (form1 & form2) each with a textbox and a button. What I would like to do is when I click on form1's button, the contents of textbox1 show on form2's textbox. And vice-versa. There is something similar in FAQ's ...Show All
Visual Studio 2008 (Pre-release) Apply same font to all content
How I can set Application level font,that works for all content elements event for Control.Templates Thanks. I'm afraid this is not possible. You need to specify a font either explicitly or via styles for every element. I would advise against doing this as you will prevent users of your application to adjust fonts to match their system theme or more importantly for accessibility. -- Ifeanyi Echeruo [MSFT] ...Show All
Visual Studio How to differentiate between tool window close event and tool window auto hide event
Hi I observed that closing a tool window as well as auto hiding the window is throwing the same value (of 10) to IVsWindowFrameNotify::OnShow(FRAMESHOW frameshow) function. Basically, I need to differentiate them. So how can I know if the toolwindow is closed vs autohidden. Is there any workaround. or is a known MS bug. I am working on VS 2002 IDE/ VC++. Thanks Aswini Kumar Hi Aswini, There really is no diffe ...Show All
