Santhosh Pallikara's Q&A profile
Visual Basic SQLExpress and VB.NET
Hi everyone and Happy Thanksgiving, anyways. I am having trouble with my program all of a sudden. I am creating a small application that will allow a small group track Golf Tournament sponsors & players. When you launch the program I have a small login screen that appears. Up until today this was working but now it doesn't. I get the following error whenever I try to login. Unable to open the physical file "N:\AITP NEW\AITP\AITP\users.mdf". Operating system error 3: "3(The system cannot find the path specified.)". Cannot open database "users" requested by the login. The login failed. Login failed for user 'DESKTOP\Matt'. File activation failure. The physical file name "N:\AITP NEW\AITP\AITP\Users_ ...Show All
Visual Studio Team System History of merge's?
Is there any way to get history on if a particular changeset was merged into a particular branch If not, it would be nice if there is some way to pull this off. I guess if you had a work item associated you could relate both changes to the same work item, but sometimes there is not a direct correlation. In this case we don't use work items yet and a developer should have done a merge of changesets, but I can't think of an easy way to tell other than just try to compare files. Granted since merges involved manual steps to do merging, a merge may not be able to have a direct correlation with a changeset, since there may have been changes to the changeset to do the actual merge, it still would be an interesting view as it at least track ...Show All
SQL Server SQL 2005, SSL - certificate request, ports
I would like to use SSL on SQL Server 2005. With SSL, is all traffic from the client to the database on port 443 Or are other ports needed With Windows Certificate Management Snap-in, a request for a certificate assumes that there is a local Certificate Authority. I don't have one and it is my understanding that I should buy a third party certificate to avoid a man in the middle attack. With IIS there is a certificate request process. Is there something similar I should use with SQL Thank you. You don’t need to change the port used by SQL Server. SQL Server and your client will negotiate the usage of encryption during the handshake steps of the communication (before authenticating the cli ...Show All
Windows Forms DragDrop - figuring out who the sender is
I've written a C# app that allows me to drag 'virtual files' from a listview onto my desktop and also drag items from my desktop into the listview. But now the problem is that if I start to drag an item from the listview and then drop it while still inside the listview, it performs as if an item was dragged from the desktop. How can I tell where the item is coming from in the DragDrop event sender is always equal to the listview object and EventArgs doesn't contain any relevant information. Just use a boolean class member that you set to true before calling DoDragDrop and to false afterwards. Inspect that member in the DragEnter event to know that it came from your listview or from somewhere else. ...Show All
Visual Studio Team System tfpt online - Missing Method Exception: ServerURI
I have successfully installed TFPT. I then run “tfpt online /preview” from my workspace directory And get this error: Method not found: ‘System.Uri Microsoft.TeamFoundation.VersionControl.Client.WorkspaceInfo.get_ServerUri()’ Anyone else strugling with this All the tfpt commands failed, the tf commands run fine. I uninstalled tfpt & installed it again, but got the same result. I am thinking that maybe there is something wrong with tf setup on my machine, I'm having problems with other addon software also (such as sidekicks giving could not load type 'Microsoft.TeamFoundation.Client.PermissionGridControl') I will be re-rolling the machine pretty soon, maybe th ...Show All
Visual Basic Hide/Show form causes form to reload
Using VS 2005. Creating windows forms application. I have a search form that the user can enter their search criteria and then find records. The records found populate a grid. The user selects a record in the grid and then clicks open record button. The click event of the open record button does the following: Dim frm As New frmRS_ModMenu frm.Show() Me .Hide() 'This is frmSearchForm This works great. The user can enter data for the selected record and then close the form. When the data entry form is closed I do the following: frmSearchForm.Show() Me .Close() However, when I close the data entry form and call show on the search form the form load event fires only on the initial hide/show. This causes the sea ...Show All
Visual C# Problem with obtaining text in an edit control
Hi All, I am getting the text inside an edit control of another process. I tried to read the text inside the Notepad using Win 32 APIs. Unfortunately, there is no text returned. I don't know what's the problem. Here's my code: public static string GetEditControlText(IntPtr hEdit) { StringBuilder sbText = new StringBuilder(Windows.GetWindowTextLength(hEdit)); Windows.GetWindowText(hEdit, sbText, sbText.Capacity); return sbText.ToString(); } Here are my API declarations: public class Windows { [DllImport("user32")] public static extern int GetWindowText(IntPtr hwnd, StringBuilder windowText, int maxCount); [DllImport("user32")] public static ...Show All
Visual Studio Team System Migrating WorkItems to a new project.
Okay so we've completed our first project using TFS. I'll have some comments regarding the experience on my blog later. I want to branch the code into a new project and migrate the work items...or maybe somehow branch the workitems as well. The trunk will be used for the production version of the system, while the branch will be v.next. Some of the work with v.next will fix the code from prod and we will want to merge it back into prod. For the most parts the changes to prod will be specific to prod and we don't want new prod code going into v.Next. There are definitely some work items/scenarios et. al that I'd like to bring over to the new project rather than re-entering them. I know that exporting to excel and importing to the n ...Show All
Visual Studio changing path for files while installation
hi there , my problem is that i want to change the path of of one of my files like demo.txt while installation from default installation folder that user selects to something like C:\demo.txt that is defined by me please help me with it how to do it by giving some example code or steps in visual studio 2005 prof. thanks gurpreet You should direct your questions about setup projects to the ClickOnce and Setup & Deployment Projects forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=6&SiteID=1 ...Show All
SQL Server Is it possible to read Flat File data from a Variable?
Hi, I'm relatively new to SSIS and I've been tinkering with the XML and Flat File sources. I noticed that in the XML source it is possible to tell SSIS to read the XML data from a variable. I didn't see a similar option for the Flat File source. Does anyone know if it is possible to read flat file data from a variable when using the Flat File source Thanks, -dhideal Jamie/Darren, Thanks for the advice. I will definitely try out both options but I believe staying in memory might be better for me because the XML files I'm working with aren't huge but there are just a lot of them. -dhideal ...Show All
SQL Server Restore process is hung up
I really could use help ASAP - I started a restore process about 20 hours ago of a very SMALL database. It apparently is hung up because it is still in the "restoring" state. How can I stop the restore process I need to get this database back up, even if it is to the state prior to attempting a restore. I can't do anything with it now because it keeps saying the database is in the middle of a restore. ANYONE I can't find any way to kill the process or anything. Any help would be GREATLY appreciated! Thanks. What I ended up doing was creating a new database and doing a restore to it and it worked fine. Then just deleted the one that was hung up. ...Show All
Visual C# System.Web.HttpException: Request timed out.
The following program is to strip the string of its HTML tags. After running for several minutes, anyway, which is much longer than other normal program, then the error was complained finally. Why Thanks. <%@ Import Namespace="System"%> <%@ Import Namespace="System.Text.RegularExpressions"%> <script language="C#" runat="server"> void Page_Load(object sender, EventArgs e) { string temp = "<NOSCRIPT><IMG height=0 alt= src=HTMLfiles/s9.gif"; Response.Write(StripHTML(temp)); } public static string StripHTML(string strHtml) { string [] aryReg ={ @"<script[^&g ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting up the camera for a mesh
I'm loading a mesh into my program. My problem is, they are always like half way off my screen or super large or super small or sideways, depending on what model I load. I would like to re-create the functionality of the DirectX viewer - which lets you view mesh .x files. No matter what, when you load a file in it, the mesh is always nicely centered and at a zoom to fill the window. How can I set up this functionality in my code um.. "DirectX Viewer" Look in the DirectX Sample Browser. If you need to narrow down the list, only check "C++" and "Utilities" ...Show All
.NET Development Controlling a pc with a standard remote control
Greetings - I want to use a standard universal remote control to send commands (create events) on a PC and respond to those events using vb.net. Any suggestions for the most direct route to doing so Specifically, I have a program that I want to have respond to the user pressing "play" or "pause", etc on a remote. Thanks for any suggestions/pointers! im actually in the middle of doing this myself, but controlling from a Windows Mobile device! I've also created a WMP Remote control app for the mobile device, allows you to control WMP from the power of the device, so you can play/pause etc... and connect via bluetooth/wireless/gprs/usb cable. I guess in your ca ...Show All
Architecture Data Provider Design Pattern
i am currently developing a data access layer. my aim is to separate the entities from their data access logic. this way i will be able to work with different data sources with the minimum of fuss. i am trying to implement a kind of provider pattern in order to achieve this aim. please let me explain with a simple example. let's say i have a class called Client which has fields and properties for name and department. my proposed solution is to make my entity a simple object with just these fields and properties (CDO object so good for serialization over web service) then i can have an external Provider class which fills my entity like this: ClientProviderSqlServer ... while (rdr.Read) { client = new Client(); if (r ...Show All
