Software Development Network Logo
  • Visual Basic
  • VS Team System
  • Visual C#
  • .NET Development
  • SQL Server
  • Windows Forms
  • Visual Studio
  • Windows Vista
  • SharePoint Products
  • Visual C++
  • Visual FoxPro
  • IE Development
  • Microsoft ISV
  • Audio and Video
  • Game Technologies

Software Development Network >> Gagandeep Singh's Q&A profile

Gagandeep Singh

Member List

Jason Callas
Luke2k4
RaviKanthReddy
Albert Benatov
prashantsable
Mystagogue
Mr Pro Tools
AlexBB
Malleswar
m_umair_85
Ninel_G
spectrablue
Shady9399
DamonPeng
Ronald L
GrahamY
Jan Kučera
Jeanne P
simsen
pcd
Only Title

Gagandeep Singh's Q&A profile

  • Visual C# Maintaining an Activity Log over multiple classes

    Hi all, i have a class called ActivityLog.cs and this basically creates a log of whats going on in my console app. i construct it like: ActivityLog Activity = new ActivityLog(); then you use it like activity.log("this is one entry"); and when the program is done you can mail out the log like activity.Email("me@me.com","me@you.com","the log file"); My program uses three different classes, right now the activity log only works with the first, well it will work with all three but only if i construct a new log file for each class, i was hoping someone could help me figure out a way to pass the log back and forth during the execution of the different classes. I am familiar with the ...Show All

  • Visual Studio 2008 (Pre-release) Is this a bug of drag and drop with right mouse button in WPF?

    Dear Experts, My team is blocked by a confusing issue about the drag and drop function in WPF. In our application, the ListView is used and the target is to drag items out of the ListView control. We succeeded in implementing the drag and drop with mouse left button but the right button doesn't work . Isn't the left button and right button "equal" in dragging of WPF Or anything important we missed Somebody told me that this was a bug of WPF in supporting drag and drop. I am not sure. BTW, there is also a smaller issue: With multiple items selected in the ListView control, when the mouse button is pressed down again to begin dragging, all of the selected items except the pressed one become unselected again. Do you know how to ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. visual c++ and directX config

    I am unable to run the sample applications that come with the SDK's for DirectX 8 or 9 that were written for Visual Studio 2005 Visual C++. When I include the d3d8.h file in the compilation, the system returns with an error listing. PVOID64 in winnt.h line 222 error C2446 I am using Windows XP. Note that I can run the samples written for C# or Visual Basic that are also included. Is there an approach that would correct this problem, as I am unable to make any samples work. Thank you in advance for any help. guybour@sympatico.ca C++ General : http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=29&SiteID=1 or DirectX 101: http://forums.microsoft.com/MSDN/ShowForum ...Show All

  • Visual Studio Team System Add New Project to Solution under source control

    Hello, I have a Solution under Source Control. Since today, when I try to add a new project to the Solution, the solution.sln file is not check-out and the new project does not appear in the pending changes window. Also, I have realized that since today, there is a new option when I click on any Solution file: "Add Solution to Source Control..." when the Solution is already in the Source Control. When I click on it, I get an error message: "The item 'Solution.sln' is already under source control at the selected location. If you are trying to rebind a project that you have already added to source control outside Microsoft Visual Studio, you should use the Change Source Control command. If you are adding this project ...Show All

  • Visual Studio Subreports

    Hello everybody, I have a sub report that shows information for a particular topic when clicked hyperlink from the main report. On the sub report, I need to have another hyperlink that shows another report linked with sub report to show some more additional information. I didn't find a way to add a sub report inside a sub report. Is there a way to do this I need to show more details for sub reports in a separate report. Thanks. Basically I need to show survey statistics. I have main survey information on the main report, survey questions in a sub-report and further additional comments etc. for each question in another sub-report. What do you think the best way to do it Thanks. ...Show All

  • SQL Server How to return a value using EXEC

    Hi every, I am trying to write a function in SQL server to return the minimum of a specific column value. I want to pass the name of the table as an input parameter to the function. To do that I have to user string and then EXEC to run my query : set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Sina Pezeshk -- Create date: 01/12/07 -- Description: Generates the default negative IDs for tables. -- ============================================= ALTER FUNCTION [dbo] . [getAttributeID] ( @tableName varchar ( 255 )) RETURNS int AS BEGIN Declare @id int , @command nvarchar ( 1000 ), @params nvarchar ( 1000 ) ...Show All

  • Internet Explorer Development DISPID_FILEDOWNLOAD & ATL?

    I have written a BHO to intercept IE default download manager for my customed download manager, and there are three problems to be came across. 1.to sink DISPID_FILEDOWNLOAD, and disable default download manager, with "*pDispParams->rgvarg[0].pboolVal = VARIANT_TRUE;", the problem is that if i want to launch default download manager, with "*pDispParams->rgvarg[0].pboolVal = VARIANT_FALSE;", it don't sink DISPID_ONQUIT, and directly exit, also it break the IE, who can tell me why it is 2.when i enter a new link, it also first sink DISPID_FILRDOWNLOAD, and sometimes lauch my customed download manager wrong, with this situation, what can i do 3.I review my code many times, but when IE load my BHO, it usually ...Show All

  • SQL Server Parameters in a OleDb Command Transformation

    Hi there, In order to prevent lookup errors in a lookup transformation, I've decided to go for an OleDb Command Transformation. This transformation should check the lookup and, if it turns out to be null, ir returns a dummy value. Otherwise, it would return the lookup value. This should be done by doing something like this: select coalesce( (select ID_Table2 from ID_Table2 where FK_Table1 = ), 0) suposing Table2 has an atribute called "FK_Table1" that should match a column in the data flow. Now, such command result in this message: " An OLE DB record is available. Source "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Syntax eror, permission violation, or other nonspecifi ...Show All

  • Visual Studio 2008 (Pre-release) WCF call fails sometime in CAB application

    We are currently developing a software using both CAB (Composite Application Block) and WCF. The client side GUI is written based on CAB. However, it is found that if WCF callback is used, sometime WCF client side call will raise "TimeoutException" exception. I have checked the WCF log file and found that before the exception was raised, the message was already received by the client side; but for some reason, the message was not processed until timeout. If I not to use CAB, it seems everything works fine. I think a dead lock could be generated by ObjectBuilder, which is the main part of all the application blocks. I have wrote a small test program which has the exactly same problem. I cannot locate the problem precisely ...Show All

  • Visual Studio 2008 (Pre-release) Peer to Peer channel in WCF

    hi friends, I want to establish a peer to peer channel to communicate between two applications. Can anyone guide me or give me a live example how to create a peer to peer channel between the two applications. Thanks, Abhas. please check this SDK sample(we have more p2p SDK samples,please check all samples) http://msdn2.microsoft.com/en-us/library/ms751502.aspx I like Justin artcle on p2p also,This may be helpful http://msdn.microsoft.com/msdnmag/issues/06/10/PeerToPeer/default.aspx ...Show All

  • SQL Server Question about SQL statement

    Hi guys, Greetings! Please help me to obtain this result using SQL statement. I have three tables Product productID,classID,description,price,sellingUnit,purchaseUnit e.g. data -> 1, 1, "1x1", 1000, 1, 2 Class classID,className e.g. data -> 1, "ANGLE BAR" Unit unitID, unitName e.g data -> 1, "PCS" 2, "PC" Here's how I want to have my result: productID className productDescription price sellingUnit purchaseUnit 1 ANGLE BAR 1x1 1000 PCS PC As you can observe, instead of presenting 1 and 2 for sellingUnit and purchaseUnit respectively, I want to have it point to its corresponding unitName. Thanks ...Show All

  • SQL Server Automatic failover failure

    Hello, we're running a mirrored database with High Availability for Automatic failover including a Witness instance for a web application. When doing a manual failover on the database in Management studio, the roles are switched correctly and the database is in "Principal, Synchronized" and "Mirror, Synchronized/Restoring" mode. The web application has no problems switching servers by using client failover with the jdbc driver. There is no problem accessing the database with Management Studio. However, if we stop the SQL service on the Principal server the role is automatically failed over to the Mirror server by the Witness. The database is then in the mode "Principal, Disconnected" which should be f ...Show All

  • .NET Development buffersize problem(i think)

    hi.. i have a client server application... the client connects to the server then sends his username.. the server then goes to the database and get some feilds in order to return them to the client ( feilds are classes name "math_class" , "physics_class", and "math_with_matrix" or whatever..) i will paste some of the code so u know how the process is done.. ...Show All

  • Visual Basic My.Settings Class

    How does one use the MySettings class to save the state of a check box before a program exits When the check box is changed, I save the state of the check box: My .Settings.Item( "Choice" ) = True My .Settings.Save() And then restart the program and call the check box state back when the FORM loads: Me .RadioButtonEnableCH.Checked = My .Settings.Item( "Choice" ) However, it does not recall the check box state correctly – it is always checked. What am I doing wrong Did you mean to say that: My .Settings.Item( "Choice" ) = Me.RadioButtonEnableCH.Checked Because right now, you are always saving TRUE, which means your check ...Show All

  • Visual Studio Tools for Office Mailitem - Incoming or Outgoing?

    Hi, From the MailItem object, how can i know the email is an incoming or outgoing mail Andy Ho Unsent message > Sent = False Sent message > Sent = True and ReceivedByName = "" Received message > Sent = True and non-blank ReceivedByName ...Show All

©2008 Software Development Network