Shyam Sundar's Q&A profile
SQL Server Joining different datasets with parameters
Hi all, lets say i have one table with colour ids and colour names, and another table with broad-leafed trees and different colour id fields for root, leafs and trunk: Table colours: integer field colour_id, varchar field colour_name Table trees: varchar field tree_type, integer field leaf_colour_id, integer field trunk_colour_id, integer field root_colour_id one way to ...Show All
Visual C# real time paint
how can i draw in real time a line on my form i dont want to paint it when the form is painted with the paint event is there another option And now the method that uses a thread: First we will need some variables in the class: // when this is set to false the thread that does the drawing will stop bool animateLine; // the color of the line and the color of the background Color lineColor; Color backColor; In the Form_ ...Show All
SQL Server killing sqlservr.exe from sqlclr code
I keep getting different answers from different people on regarding if you can or cannot kill the hosting sql server process with an unsafe assembly. Can you do this If so could you please attach a sample demonstrating this Thanks, Derek Uhh, delicate question. Sure Microsoft did everything to prevent this. I know that in beta this was sort of unstable, but right now I have no clue how to do this. If some ...Show All
Windows Forms Splash Screen 2005
I use the Application Designer to set the Splash screen but I want to give the user the ability to turn off the splash. I can't find a way to do this at runtime. Could someone help Thanks This is not doable through the existing .NET controls and code. The problem is that the first Form to become active is tied to the message loop that controls when the app shuts down so as soon as the splash screen g ...Show All
Software Development for Windows Vista Visual studio 2002 with Windows SDK 2006
My current code base is using Visual studio 6.0. I am trying to port it to visual studio 2002 using latest sdk which has support for native wifi. Are these compatible enviroments ...Show All
SQL Server Using variables of Connection Manager, Connectionstring
Hello, I'll spare everyone my diatribe about MS and Booksonline... I considered myself pretty good at Server 2000 DTS. It certainly has it's shortcomings, but there are a couple books on the market that helped a lot. I'm now trying to learn Integration Services, and not getting very far. There are two books out so far. one is poor, the other worthless. What I want to do seems very simple. That is to loop through a series of .txt file ...Show All
Visual C++ Checking if a trivial event has any handlers
How does one check if a trivial eventy has any handlers When I try to say 'if (SomeTrivialEventMember)...' I am given compiler error C3918. This tells me the error can occur trying if I attempt to check a trivial event for null. But of course it does nto tell me how I do check a trivial event for handlers. I hate to think I must change a trivial event to one with specified add, remove, and raise methods just to be able to check and see if it has ...Show All
.NET Development Device Enumeration
Is there a managed way to enumerate or search the devices available on a system (i.e. the Device Manager list), or will we have to use dllimport Thanks in advance... ...Show All
Visual Studio Team System FxCop support in VSTS
Managed Code Analysis feature in Visual Studio Team System - 1. Is library support present for writing cusom rules 2. How are custom rules applied on target projects 3. Are all the features in FxCop like reporting supported Firstly you should know by the huge pricetag you presumably paid. Normally that would be proceeded by a lot of sober consideration (people don't normally throw away $6000 without kno ...Show All
Visual Studio How to scale down Visual Studio 2005.
Hello, I would like to launch a scaled down version of Visual Studio. I am looking to launch the Editor, with my own tool bar and menu bar. What is the best approach to do this Should I write my own editor using the VSIP APIs OR is there a way to remove the extension points from Visual Studio 2005 to get down to its bare bones and then add my functionality on top of it Thanks, Laadlaa. A ...Show All
Windows Forms VB.NET vs AS/400
Many of my programs make repeated calls to our “elderly” AS/400 to get data based on account numbers, then process that data and write back to the AS/400 before moving on to the next account number. Using the .NET ODBC classes has worked& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vertex shader problem
Hey, Ive been trying to add a vertex shader to my engine(right now its just running a pixel shader). Currentlly if I activate the vertex shader the world gets drawn distorted(a small random red box with a triangle going out to infinity). Heres the simple vertex shader im using. struct VS_INPUT { float3 position : POSITION; float4 color0 : COLOR0; flo ...Show All
Visual Studio Express Editions Return data between two different delimiters.
Hi Guys, I am trying to read a string that is between two different delimiters. e.g. =surname;postcode,telephone* I have played around with the Split function and tried to research this but how would I return the text contained with the = and the ; (in this example surname) Any help would be greatly appreciated. hi, you can do something like this Public Sub spliter() Dim spliter ...Show All
Visual Studio Express Editions Working on both VB 2005 Express & Visual Studio 2003 ?
Hi! I'm learning programming (VB .net) as a beginner and downloaded Visual Basic 2005 Express edition at home. However, we use Visual Studio 2003 in School and will present our project there and then I wonder if it is possible to work at home (with 2005) and get it working on 2003. Shortly: is it possible to either make visual basic 2005 express to save the project or convert it some way so that 2003 will be able to open it or to lim ...Show All
Windows Forms Primary Key Violations
Hi. I have a simply table called "DryingSetup" with the following fields. DryingSetupID : Int : Identity : Primary Key Description : VarChar(100) I have a DataGridView on my form the is bound to the above table. If I insert records one at a time in the grid and save after each of the record additions then all works 100%. If however I add a few records (4 or more) and only then click "Save", then I get errors. Some ...Show All
