caddy36's Q&A profile
SQL Server Cannot get the Service Broker work
Some months ago I was playing with Service Broker and everything was ok. But now I just can't get it work. I opened a sample "helloworld" project and still cannot get a message in a target queue. No errors, just empty queues. We have two SQL servers sept CTP on different computers and both give the same issue. It looks like it should have a very simple solution that I cannot come up with. The following script initializes service broker and sends a message, then selects both target and initiator queues. On my environment it just returns two empty selects. --Initializing service broker objects use master GO S ...Show All
Windows Forms How to set window system colours using API & c#
I am designing a splash screen with 6 colours and to provide a smooth transition from the splash screen to the window form, I wish to use the system api to change to one of the 19 window colours. Anyone can tell me how to change the window system colours using api and c# without manually right click desktop select appearance Any advise assistance welcome You really shouldn't change the system colors (which affect all applications with a GUI) just to make your application look pretty. ...Show All
Windows Forms Failed to load resources from resource file
Hi, I may just be being thick here but, after installation, setting up a new Terrarium, compiling the simple carnivore, and trying to indrocude the animal to the Terrarium, I am getteing the following error: "Setup Error Failed to load resources from resource file Please check your Setup" I have the '.NET Framework 1.1 redist' installed, along with the SDK 1.1 i ...Show All
Visual C# Strange PathPointType = 163
I get a strange PathPointType with value 163 when I create a GraphicsPath from a string. This type is not defined in the PathPointType Enum, nor is it an OR combination of some of the flags. What is it Actually 163 is Bezier | PathMarker | CloseSubpath 3 | 0x20 | 0x80 = 0xa3 = 163 ...Show All
Visual Basic WebBrowser Control
I am having a problem with Microsoft Visual Studio 2005 (Version 8.0.50727.42 ) and .Net Version 2.0.50727) using the WebBrowser control. I get same error when using either the RSSReader sample or the MSDN SimpleBrowser sample. The error is that I cannot navigate to any URL - there appears to be an error in connecting to an ActiveX control on my PC .... WebBrowser1.Document.Domain contains the error text - {"Error HRESULT E_FAIL has been returned from a call to a COM component."} Anyone have a fix for this or a suggestion Thanks Tim, can you give a call stack for the exc ...Show All
Visual Studio Team System code coverage "off road"
I've tried using the sample from http://blogs.msdn.com/ms_joc/articles/406608.aspx to get the off-road experience of code coverage. However, when I run the tests on my instrumented binary, I'm getting the coverage results for the test project instead of my instrumented binary. Am I missing something here! Can you send me information about TS-ing into your machine via email to munjald@microsoft.com I am pretty sure the problem is very basic (especially since it is a C# console application after all) and I will not take long before I find out the real problem. Please send information about login credentials and the project path, e ...Show All
Windows Forms Drawstring Font size
Using the Drawstring function, you can limit the text that is drawn to a rectangle, including word wrap, elipsis, centering, etc. The question I have - is there a way that given a rectangle, determine the largest font size to be used that will fit in the rectangle. If it were only 1 line of text, I could simply check the width of the text compared to the width of the rectangle, and same with the height. But if the rectangle is big enough for multiple lines using word wrap, I want the font to be as big as possible and still have all of the text displayed. Any help would be appreciated. Thanks ...Show All
Windows Forms Creating Licensed control
Hi I read the articles in this windowsforms.net about how to create .net licensing, however I tried to create the license control and drag it to designer form of VS.net, but even after I created the licx files and VS.net still doesn't want to allow me to drag drop my custom control. I wonder what should I do and what is the format in the ...Show All
Visual Basic DataGridView edit causes Form.Show() to crash
Hi all, I have an MDI called "Question Centre" with a docked ToolStrip that controls the navigation between the sub-forms within it. One of these forms has an editable DataGridView on it. I experience an "Out of Memory Exception" if I am currently in "Edit Mode" of the DataGridView when I click the ToolStrip to swap to another form. The exception is explicitly throw on the form.Show() event in the ToolStrip's OnClick event. This exception does not occur if an uneditable cell is selected. It also does not occur when I jump between editable cells without changing forms. It only ever occurs when I am ed ...Show All
SQL Server Blocking Transaction
I have a 3 simple packages get called from master package. First package populates time dimension (stored proc), second one populates transaction type dimension(stored proc) and the final one populates date dimension. I set the TransactionOption = Required in the Master package, every thing else (package & component) set TransactionOption = Supported. I have been testing transactions, basically I made time and transaction type dimension to fail and the package did roll back. I am stuck in the date dimension. Within Date dimension I got a stored procedure which populates calendar date attributes into Wrk_Date table. Then I have a ...Show All
Visual Basic Thread-safe call
The following gives the error (...does not have the same signature as delegate...) and I am not sure how to solve (being new to thread calls): Private Sub DataReceived( ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived If e.EventType <> IO.Ports.SerialData.Chars Then Exit Sub SerialData = SerialPort1.ReadExisting DisplayThread = New System.Threading.Thread( AddressOf ListBoxDisplayRawData) DisplayThread.Start() Me .ListBoxDisplayRawData.Text &= SerialData End Sub ...Show All
Visual Studio 2008 (Pre-release) Object-oriented network database
Hi, All! I am Ukrainian scientific researcher and developer. I am developing object-oriented network knowledge database which is based on object-oriented database engine. I already implemented .NET 1.1 support. It's very cool that MS devolops declarative object query language for C#. I hope I'll be able to integrate LINQ features into my engine. Now I have to use three fields to store object soft pointers. One for object handle; One for wrapper instance to pin the object instance in memory; and One for instance of user object. I want to hide implementation details from end user. To make this I need some kin ...Show All
SQL Server OPENQUERY() before BEGIN TRANSACTION
Hi After I have installed SQL Server 2000 SP4 on a Windows 2000 Server, I get a strange error when beginning a transaction inside a stored procedure that looks as follows: create procedure myproc as begin SELECT * INTO #tmpcustomer FROM OPENQUERY(LinkedServerPointingToODBC, 'SELECT * FROM customer') BEGIN TRANSACTION mytran --here I'm doing some insert, update, delete stuff in local tables in the current database with --my temporary table #tmpcustomer as source COMMIT TRANSACTION mytran end The error occurs on the line with BEGIN TRANSACTION... This is the only transaction in the whole program flow. The error message is: "Server: M ...Show All
Visual C# In C# override printf() used in C++ dlls ?
Hi, I am developing a C# application which uses several C++ .NET assemblies. These C++ .NET assemblies uses several old un-managed C++ dlls, which again calls printf() as the main user/developer feedback. What I am wondering, is if I can somehow override the printf() method used in the old-style C++ unmanaged dlls, to catch the contents (what is being printed) and e.g. print it into a text control in my C# Form If possible, I would like to override the printf() in my C# application, but I an not sure where to start... Thanks, Torbjorn PS: I do have access to all/most of the C++ source code, so I can do modifications in C++, bu ...Show All
Visual Studio 2008 (Pre-release) Is anyone working on an Oracle plugin for DLinq?
I'd like to use DLinq on Oracle, but there is only support for SQL Server now. Is anyone currently working on an Oracle plugin for DLinq Thanks! AFAIK, the DLinq team is working on it. ...Show All
