singhswat's Q&A profile
Windows Forms Scrolling a SplitContainer (newbie alert)
I have a SplitContainer I have set to horizontal. I made the bottom half a DataGrid and the top half a TableLayoutPanel with one column for each column in the DataGrid below. In each top column I'd like to place an interface for filtering/sorting by each column in the DataGrid, but I'm not going to tackle that problem before I tackle this one. I'd like the top half of the SplitContainer to scroll with the bottom half. I tried making a Scroll event in my DataGridView, but I'm having trouble deciphering the ScrollBar properties and "left" isn't one of them. I tried making the form a child form of a MDI, but I guess the MDIContaine ...Show All
Software Development for Windows Vista Workflow Lifecylcle Events
I use a Windows Service and have attached EventHandlers to the Workflow Lifecylce Events(Created, Started, Aborted, Persisted, Loaded, ....). My question: By the time such a event (e.g. WorkflowStarted) is fired, my EventHandler executes some code to write into a log. The only information about the WorkflowInstance I could find in the WorkflowEventArgs is the InstanceId. I would like to get more information about the workflow: What type, .... How could this be possible Thanks You want to look at using a TrackingService. See my post here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=438487&am ...Show All
Windows Search Technologies Protocol handler - AddDefaultUrl
Hi .. I'm trying to register my WDS protocol handler! But I really don't understand how use AddDefaultUrl. I found ISearchCrawlScopeManager definition in the SDK. But how do I use it Does my protolol handler need to implement it I hope someone could help me! Hi ZiQ, I'm not sure if this is the information you have seen or not but what I found is: First, a protocol handler must be added via the AddProtocol method, as follows: HRESULT AddProtocol(LPCOLESTR pszProtocolName, LPCOLESTR pszProgId); Direction Variable Description In pszProtocolName The name of ...Show All
SQL Server outer join produced cartesion product; embedding where conditions in outer join clause
Tables have 100K rows. Inner join produces 99k. The outer join should be 100K. It is 1000 times larger. If I do a SELECT DISTINCT, the right # rows are returned (100K) What gives OR, How do I move the WHERE conditions into the OUTER JOIN clauses SELECT Earth.key1, Earth.key2a, Earth.key2b FROM ((Earth INNER JOIN Moon ON Mid(Earth.key1,1,6) = Moon.key1) LEFT OUTER JOIN Venus ON (Earth.key2b = Venus.key2b) AND (Earth.key2a = Venus.key2a)) LEFT OUTER JOIN Mars ON Earth.key2a = Mars.key2a WHERE Moon.RS_VOIDED <> 'Y' AND Mars.MEM_NAME <> '(A)' Laurence To move the wh ...Show All
SQL Server SSIS ODBC Source Component
I need to create an ODBC source script component that outputs into SQL Server. When I debug I get the following error message: Error at Data Flow Task [Script Component [1]]: System.InvalidCastException: Unable to cast object of type 'System.Data.Odbc.OdbcConnection' to type 'System.Data.SqlClient.SqlConnection'. at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e) at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.AcquireConnections(Object transaction) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper90 wrapper, Object transaction)Err ...Show All
Visual C# information path is required
I have installed Microsoft Virtual C# 2005 Express Edition recently, but when I want to create a new project I have the error message " Absolute information path is required " . I tried everything to solve this problem but I've failed , could someone help me please . I have : Windows XP Media Center Edition, AMD Athlon 64 processor . ...Show All
Microsoft ISV Community Center Forums RTM - Q3 or late Q4 ?
Frank Boyne wrote: If...your eventual product user is willing to run on a beta version of the 2.0 Framework Ah, that's the whole crux of the problem! I'd be willing to, but getting customers to agree to that is a completely different matter . Thanks. ...Show All
Smart Device Development Aligning the Text on a Button Control (cf 2.0)
Hi all, is this at all possible Or do I have to created a Custom Control Thanks Tryst See if the example at the link below helps. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=366029&SiteID=1 ...Show All
Visual J# How to set System.SetProperty() in J#
Hi, When I did a port from JAVA to J#, I need to set proxy settings using setproperty but I tried using the the method recommended in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=148074&SiteID=1 , I cannot find the method setproperty(). I am using Framework 1.1. Desperately need help. Thank you. Warm Regards, Francis The right code may be the following. { java.util.Properties p = System.getProperties(); p.setProperty("Name", "Value"); System.setProperties(p); } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to copy VECTORs or D3D mater,text or MESHes
Hello, I am having a problem with creating a MESH object. I can load it from an X-file, but I would like to to be able to COPY whole object from one SPRITE to ANOTHER so I dont have to access .X file all the time... I can copy mest with CloneMeshFVF, but I fail in copying it's textures and materials... I think every class(SPRITE) should have its MESH type, MATERIALS, TEXTURES saved and not share same things,shoulnt it For instance, when object is being hit in game I destroy it, and therefore I am deleting also its mesh and mats, textures... I would appreciate any ideas Unless you are modi ...Show All
.NET Development Socket BeginAccept Method Memory Leak?
Hi, After copy and pasting the code from the MSDN sample "Asynchronous Server Socket Example" - http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconnon-blockingserversocketexample.asp into a Windows Library project (DLL) for use in a server I'm writing, I'm finding that each request from my client application causes a growth in memory of 4-8KB in the server application. This doesn't seem to be reclaimed at all, it just continues to grow. Since I'm writing a server that must run unattended for long periods of time this will be a problem for me. After googling the problem I found a forum on dot ...Show All
Windows Forms AutoScroll doesn't Paint until MouseUp?
If I set a Panel to AutoScroll = true, and then at run time drag the scroll bar slider up and down, the contents of the Panel don't actually refresh as I am dragging the slider, but instead only after I release the mouse button. This is NOT good. How can I get the Panel to Paint itself dynamically as I am moving the scroll bar slider I figured out a workaround. The pseudocode is really: "if (!draggingSlider || showWindowContentsWhileDraggingSystemSettingEnabled ) { DoScroll() }". So I found out that the scrolling actually works "out of the box", as long as the computer is co ...Show All
Visual Studio Visual SourceSafe 2005 via the Web NOT!
Could someone explain the business logic behind limiting Web access to Visual SourceSafe 2005 via VSS Internet plug-in only Are we the only ones that considered browser-based Web access to VSS2005 ones of the most important selling points Why not allow this intergation in the VSS client ! Dimitri Sungard SCT Hi Dimitri, Unfortunately we didn't have enough time to implement Remote access functionality for VSS Explorer. There are 3rd party products (some freeware, some shareware) that offer browser-based access to VSS repositories. See a list of possible options at http://www.alinconstantin.n ...Show All
.NET Development USB Classes for simple byte oriented serial communication
I am using Visual C++ 2005 Express Edition to develop a .NET managed application. I want to communicate over Serial Port or USB to a custom Atmel AVR microcontroller embedded application. I have already coded (but not tested) my app. using the System::IO::Ports::SerialPort class. I don't see any USB classes (like there is the SerialPort class in my VC++ 2005 installation. How do I communicate over USB using .NET managed classes for simple serial byte oriented communications Any sample code would be much appreciated. Thanks, David Harrison Hello David, Unfortunately the .NET Framework does ...Show All
Visual Basic Lesson 2 ToolStripButton
Anyone who's gone through the video lessons, please tell me where the 'Lesson Resources' are located/downloaded from...I'm not sure whether they were supposed to be included with the initial download or if they're available elsewhere. Thanks for any help Hi, If you can, please include appropriate links to what you're refering to :) My guess is that you're talking about these http://lab.msdn.microsoft.com/express/beginner/ and the resource for Lesson 2 is listed in Download section http://download.microsoft.com/download/f/a/3/fa3d3b3e-993b-47f3-89a2-1a5a09f8b13e/02%20-%20VBasic.exe . ...Show All
