keyur mistry's Q&A profile
SQL Server Service Broker end conversation
Hello people I am new to service broker and would like a little help please. I have a SP which gathers information from a collection of tables. Depending on the data gathered it may or may not begin a dialog conversation with a service broker queue. What i'm needing to know is should at the end of the SP once the required message has been sent should i end the conversation or not Many thanks in advance, Michael No, you should leave the conversation active untime it has finished. If you send only one message then the destination should end the conversation when it has processed the message. This will result in an EndDialog message being sent to the FROM SERVICE of the dialog and when the F ...Show All
Visual Studio 2008 (Pre-release) Systray icon with WPF
Hello, I'm writing a application in C# that uses WPF and I need a systray icon for it. Is there a way to do this in XAML or C# (without using the System.Windows.Forms namespace) Thanks! See this sample - http://msdn2.microsoft.com/en-us/library/aa972170.aspx From the text - Windows Presentation Foundation (WPF) does not provide a notification icon implementation. However, the Microsoft .NET Framework version 3.0 does provide one: NotifyIcon , which is located in the System.Windows.Forms namespace. which this sample uses. This sample demonstrates how to configure and display a notification icon in the system tray using NotifyIcon . ...Show All
Visual Basic Superconstructors?
What's the general syntax for using inheritance in VB Say I've got ClassSuper and ClassSub, ClassSub inherits ClassSuper. How do you access the super constructor How do you access values in the super class Public Class SuperClass Public Sub New () 'Does Something End Sub End Class Public Class SubClass Inherits SuperClass Public Sub New () 'Do More End Sub End Class What is your end result objective A contructor is not overridable and if you inherit from the super class you subclass when instatiated will "dosomething" from the base class and will "do More" from its own contructor....You may wish to create overridab ...Show All
SQL Server Visual Studio 2005 The remote connection to the device has been lost. Please verify the device connection and restart debugging.
Basically I've been using Visual Studio 2005 for a few weeks now moving a Pocket PC project from 2003 to 2005. When I hit the Start Debugging Button every time until today the project would rebuild and deploy to my pocket PC allowing me to debug etc but now I get The remote connection to the device has been lost. Please verify the device conection and restart debugging. I used to get this problem in VS2003 sometimes and just like the numerous posts on different sites that I've looked at the problem eventually goes away and I'm none the wiser. One guy said that he found that if he went to bed the problem was resolved when he came back! My PDA running Windows 2003 2nd Edition is directly connected to my PC via a USB port. I've re ...Show All
Windows Forms How to show the caps lock is on balloon warning like Windows
Does anyone know how I can show that balloon that windows shows when you are trying to logon and your caps lock key is on There are some VB examples out there of how to show balloons, but I need to show one using C# not VB as a warning to users when their caps lock key is on and they are trying to logon to an internal system. Anyone have any links to how to do this in C# or some C# code that will do this I would appreciate it. Thanks, Nathan Thanks for the heads up tip nobugz, we are going to be migrating everything to VS2005 in about 3 weeks, so that will come in handy for me. Thanks for showing the framework way, I would rather use that than anything else. Nathan ...Show All
SQL Server disable filter
i am having a query in front end like this.. func() select * from table where cond1 and cond2 and col.port in <string> ... goes end i passing this string from other function, i may be not be needing this filter(underlined) for some functionality, but i will be using the same function for both the functionalities i need a string that should tell the sql server to allow all the possible values for that column, so by disabling the filter which i am using... pls tell me URGENT Thanks in advance I agree with the other answer, but it seems too easy.. Is this a user defined function in T-SQL Or dynamically built using your .NET code If dynamic then it is essential that you leave off the ( col.port in <string> ... ) part. Yo ...Show All
Visual Studio Tools for Office AdvancedSearch returning incorrect results.
Hello, I have following appointments in my calendar: --- 11/9/2006 11.00AM - 12.30PM : Meeting1 06.00PM - 08.00PM : Meeting2 09.00PM - 10.00PM : Meeting3 11/10/2006 11.00AM - 01.00PM : Meeting4 --- When I run AdvancedSearch in the outlookApplication.GetNamespace( "MAPI" ).GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar).FolderPath scope, I get some strange results: 1) filter = urn:schemas:calendar:dtstart >= '11/9/2006' AND urn:schemas:calendar:dtstart <= '11/10/2006' Result: Meeting1, Meeting2 (would expect : Meeting1, Meeting2, Meeting3) 2) filter = urn:schemas:calendar:dtstart >= '11/9/2006' AND urn:schemas:calendar:dtstart <= '11/11 ...Show All
Visual C++ Noob->Question
Hi folks, I know this is pretty basic, but I'm having troubles getting my head around it... what is the difference between using the -> (pointer) to access the items of an object vs. using the . (period) to access items. Often times I get the two mixed up and the compiler will tell me I'm using the operator incorrectly. What is going on -Zero -> is used to deference members of a class through a pointer to that class. . is used to deference members of a class through a reference to that class (or is a local). e.g. say MyClass has an int member; as a data member int foo1( MyClass* pMyClass ) { return pMyClass->member; } int foo2( MyClass& myClass ) { & ...Show All
Visual Studio Express Editions using combobox to query.. how?
hi there i'm new in vb express... can some help me regarding to my problem... here's my problem my boss want me to query some sort of data using combobox, i can do this on textbox but in textbox u cannot choose you want to sort pls help me pinoyz, According to your problem, please take a look at the following link titled ComboBox Databinding Sample. In this page, you can download a sample code and I believe it will help you with your problem :-) http://msdn2.microsoft.com/en-us/library/x8ybe6s2(vs.80).aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Component Design Guidelines?
Anyone have any suggestions, tips, experiences, etc regarding designing and developing Game Components With the move of the GraphicsComponent to a service (which makes sense), one of my questions is remains: what makes a good Game Component In pre beta 1, other Game Components that were hinted at were a Camera and Fps Counter. In beta 2, would these still be Game Components, or be left at system-level Is the choice as simple as whether or not your would-be-component has an Update method that takes a single GameTime parameter Same goes for IDrawable, if a Draw method with a single GameTime parameter is sufficient, should this be a Drawable Game Component Is it a never-ending debate such as the guidelines for designing Interfaces ...Show All
.NET Development How will the DataSet work with multiple Tables from database?
Hi!!! Can the DataSet accommodate multiple tables from database Here's an example of what I mean: Dim con As SqlClient.SqlDataAdapter = New SqlClient.DataAdapter SQL statement: "SELECT * FROM TOInfo, TOInfo_OtherTOInfo, OtherTOInfo WHERE TOInfo.TONo = TOInfo_OtherTOInfo.TONo And TOInfo_OtherTOInfo.OtherTOInfoID = OtherTOInfo.OtherTOInfoID" con.Fill (allTradingOrderDataSet, "TOInfo") con.Fill (allTradingOrderDataSet1, "TOInfo_OtherTOInfo") con.Fill (allTradingOrderDataSet2, "OtherTOInfo") Public Property ReadOnly allTradingOrderlist As DataTables Get Return allTradingOrderDataSet.Tables("TOInfo") Return allTradingOrderDataSet1.Tables("TOInfo_OtherTOInfo&qu ...Show All
.NET Development can we create Native image of a strong name assembly ? If yes,please give me full details....
Amity........... I think we can create Native image of a strong name assemble.. All the .Net framework assemblies are strong named. The .NET Framework automatically creates new native images for the .NET Framework libraries that it installs. ...Show All
SQL Server Union Ordering
Hello, I'm attempting to run three separate queries and have them returned as one recordset. I need to show the top 10 customers based on the number of orders they placed for each of three months, then combine them to give a representation of which customers have been within the monthly top 10 for the overall period of three months. My problem is when I run a count on the number of orders they have placed and order by that count, it is in ascending order which in escence shows me the bottom 10, not the top 10. To resolve this issue, I can specify descending order. This works fine with one query, but when I run all three queries using union statements, I can only have one order by which returns incorrect results. Here is my query. In thi ...Show All
.NET Development Web Service - view xml?
Hi, I'd like to be able to view the raw xml that my web service reference is sending during a method call. Is there a way to do this, or should I just use a packet sniffer Thanks, Mike Unfortunately nothing build in the product for this, but there are number of external tools available, you can download number of then from gotdotnet: TcpTrace, WebServiceStudio,.. or you can just use netmon, or write a soap extension. Thanks, Elena Kharitidi ...Show All
Visual C# .NET Framework and compatibility
Goodday, lately I've been programming an MMORPG in another programming language. Anyway, I'd like to learn a new and more adult programming language right now, and it seems Visual C# fits perfectly for this. But there's one question that still stops me from completely getting into C# learning; the .NET Framework. The disadvantage is that a person who wants to run my program will need to have the framework installed, and this is quite irritating for an MMORPG. I've been trying some out and untill now I didn't find anybody having .NET Framework 2.x on their PC yet (except me of course). It seems they don't receive it automatically using the automatic Windows update. It would be quite irritating to ask all my clients to download another 20mb ...Show All
