OICU812's Q&A profile
.NET Development Thread.BeginThreadAffinity required before WaitHandle calls?
MSDN doc for this method has this interesting statement in remarks: /* You must also call BeginThreadAffinity before blocking on any .NET Framework type that inherits from WaitHandle, because these types depend on operating system objects. */ It is not clear to me if this statement is only in context with MSSQL Server's hosting enviroment or if it is required in any CLR host. Can anyone verify this or clear this up Thanks... Dino Vieh ...Show All
Visual Studio Tools for Office How to use OWC11 component in ASP page
I know how to use owc9 in the ASP page and how to use OWC11 in the APS.NET page, but i don't know how to use the OWC11 in ASP page. who can provide some examples to me thanks. I've reposted your question to the Office Web Components news group as it is non-VSTO related and out of our domain knowledge. http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.web.components Thanks Darryn Lavery [MSFT] ...Show All
Visual C# Logger in multi-threaded application
Hi, I have a multithreaded application, in which most my classes inherit from a base class. This base class contains a Log()-method, that is supposed to append text to a text box created in the main thread. I know that this is a problem since I can/should only access the textbox in the same thread as where it was created. What I would like, is a thread-safe way to implement the Log()-method in the base class, so that disregarding whic ...Show All
Windows Forms Custom collection inside inherited control NOT removed when control removed
Hello All, We have a custom ComboBox which inherits ComboBox and extends it. Within the custom ComboBox there is a custom collection. Everything works as expected except for one thing. If I drag a custom ComboBox onto my form, add some custom collection items and then remove the custom ComboBox from the form, the custom collection is NOT removed from the Designer generated code. It seems like that should happen automatically. Can someone e ...Show All
Visual Studio 2008 (Pre-release) Winfx SelfHosted webservice over HTTPS
I'm hosting the service and creating the bindings at runtime. Currently I get an error when my test client tries to connect "The underlying connection was closed: An unexpected error occurred on a send" How do I tell ServiceHost which certificate to use for the https Not sure if below is all I need for configuring the binding to use HTTPS: string Address = https://10.3.10.10:10870/TestWS/ ; ServiceHost MyHos ...Show All
Visual Studio Express Editions New Instal of VC++ Express Edition
Have installed VC++ Express. Used microsoft uninstall too prior to installation. Used microsoft clean-up to check all previous installations cleared. Problem is that, even with a newly created project, get "Project is out of date" message and on build get following build log: Creating temporary file "c:\Documents and Settings\Brian Parton\My Documents\Visual Studio 2005\Projects\TestCPP\TestCPP\Debug\RSP000001312 ...Show All
.NET Development Issues Trying to return Single Row Set
I want to enter a repair number in a text box and then return a single row, but i am getting an Unhandeled Exception that tblWatchInstance is not apart of the Parmeters collection any help would be great thanks! Private Sub cmdSearch_Click_1( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSearch.Click Dim myConnection As SqlConnection Dim myCommand As SqlDataAdapter myConne ...Show All
Visual Studio Team System TFS Security and Group Membership Admin Performance is Very Slow
When using beta 3, the performance while administering the security and group membership is very bad. Is this going to be tuned Hi Gary, Can you tell me what particular administration tasks you are doing within security and groups Is this at the server level, project level or Areas and Interations Are you viewing groups/permissions or adding new groups Are you adding large AD groups etc etc Thanks, ...Show All
Windows Forms Windows API
Howdy folks! I'm trying to learn more about calling Windows API through .NET. Does any of you know of a website I could learn more about it I'm really searching for a list of all the DLL's I could use... Like, how to capture key&n ...Show All
SQL Server IHTMLDocument2 E_ACCESSDENIED
Hi, Do anyone know why I got the E_ACCESSDENIED error CComQIPtr<IHTMLFrameBase2> pFrameBaseElem( pElemDisp ); if (pFrameBaseElem != NULL) { LONG celem2 = 0; CComPtr<IHTMLWindow2> pFrameWindow; CComPtr<IHTMLDocument2> pFrameDoc; CComPtr<IHTMLElementCollection> pElemColl2 = NULL; hr = pFrameBaseElem->get_contentWindow(&pFrameWindow); if (pFrameWindow != NULL) { hr = pFr ...Show All
Visual Studio 2008 (Pre-release) about richtext
Hi I'm new to avalon and i've a small doubt on richtext box. Here i'm entering some message in rich text box and i dont know how to save that message also how to load external file(.rtf) into current richtext box. thanx Nagu Several things to note here. Looks like you are extracting the text dataformat from the problem you describing. From the code provided, it can be seen that the rtf format is ...Show All
Visual Basic How To Return records from database a to Array() Get
So I have a code And I want to return records from Datase Northwind Employees Table FirstName Column to array Save. But an occur error. Thanks for Help. Dim Con As SqlClient.SqlConnection = New SqlClient.SqlConnection Con.ConnectionString = "Server=.;Database=Northwind;Integrated Security=SSPI" Try Con.Open() Dim Com As SqlClient.SqlCommand = New SqlClient.SqlCommand("Select FirstName Fr ...Show All
Visual Basic How do I save to a EXE?
I am running Microsoft Visual Basic 2005 Express Eddition Beta 2 and i am wondering how I save my project to a EXE. I click build and nothing happenes I hit publish and it makes something wierd. help Your build output should be put in the ProjectFolder\Bin\Release directory. if there is nothing there, look at the error list after the build. Dustin. ...Show All
Windows Forms Anyone have a list of objects that should be .disposed?
Hi, I'm not too good on killing my objects after I use them. I was wondering if anyone has a good reference on what type of objects need to be destroyed or disposed after use. thx. Did you uninstall any add-ins If the ...Show All
Visual FoxPro report export to excel differs from print preview and print
When using Visual Foxpro 8, I notice that my subtotals based on 2 report variables that calculate sums per group in the 4th data grouping are continuing to accumulate instead of resetting after each group when I export to excel but appear fine when I do a print or print preview. I tried deleting and re-adding the grouping only to get the same result. Strangely, I also notice some of my text labels have also shifted over to the r ...Show All
