JasonG271009's Q&A profile
Windows Forms Generic Drag and Drop (no hardcoding source in target's events)
All the drag & drop examples I have seen on msdn and google are between 2 controls that are aware of each other. The target control knows exactly what the source control is and vice versa. However, in a more realistic environment, the target control shouldn't need to know where the source is coming from or even modify the source at all. For example, let's say I have two listview as source (lvSrcA, lvSrcB) and two listview as target (lvTarA, lvTarB). The rules are as follows: lvSrcA to lvTarA - Move lvSrcA to lvTarB - Copy lvSrcB to lvTarA - Copy lvSrcB to lvTarB - Move The ideal way to implement this is if in the target's dragdrop event, the target can ask the source what to do. Right now, lvSrcA will always have to ...Show All
Visual Basic WMI Printer Management ?
Hi, I am using vb 2005 and need help with trying to do the following : A Form that has a combo box , a listview and 2 command buttons( When the form loads ) i need the combo box to be enumerated with the printers that are on my server ( so will need to connect to my server which is obviously a remote machine ). Then when ever I select a printer from the combo box, it enumerates the listview with any print jobs that are in that printers que and I am able to select either one or multiple print jobs and click on the cancel print job button ( which will cancel any selected print jobs ) or click the cancel all button which will just delete any print jobs in that printers que. I know this is a lot to ask but even if I could just get an example o ...Show All
Visual C# Socket.Poll
hi, i am making a program with sockets but i cant know when the client disconnects from the server, im trying this: public bool IsAlive() { return clientSocket.Poll(1000, SelectMode.SelectRead); } //This is on a thread so it dont freeze my app //if IsAlive returns false then i fire an event so i can notify the client went offline public void PollConnection() { while (true) { if (!IsAlive()) { if (ClientOffline != null) ClientOffline(this, new ConnectionEventArgs(this)); break; } } } my problem is that : return clientSocket.Poll(1000, SelectMode.SelectRead); never returns false , even if i close the client . mig16 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animation sample?
Great work on XNA GSE 1.0! I downloaded it today and signed up for the 360 Creator's Club. Getting the basic engine code I've been working on under Windows for the past few weeks compiling and running on 360 was far easier than I was expecting (though it would be nice if the IDE had better support for projects that target both platforms). One aspect of the engine I've been avoiding for a while is mesh animation, as there has been talk around here for weeks that a sample would be released and I'd much rather start from a sample, even if it is very simplistic, than dig though the documentation enough to figure out how all the classes fit together. So my simple question is.. any updates on this sample Has it been made available and I'm j ...Show All
SQL Server Is SQL Server Express designed for production use?
Per the subject line : Is SQL Server Express designed for production use re: > are you experimenting inconveniences None. I was wondering, mainly, whether SQL Express differed from MSDE ...which wasn't designed for production use. To further the question : Express will only bind to one CPU at a time, and it cannot run queries in parallel. Express cannot use more than 1 GB of RAM at a time for queries and data pages. SQL Server 2005 will handle many more concurrent queries than the Express version. No one database in Express can be larger than 4 GB. Data mining, Data Transformation Services (DTS) and reporting functions are not available for SQL Express. Other functions not available in Express include clustering/mirroring, full- ...Show All
SQL Server No full-text supported languages found in SQL Server Express with Advanced Services
I've downloaded SQL Server Express with Advanced Services from http: / / msdn. microsoft. com/ vstudio/ express/ sql/ download/ and installed all components. When I try to create a full-text catalog, I get the following message: No full-text supported languages found. select * from sys.fulltext_languages returns no lines. How can neutral, English or maybe Hungarian word breakers be installed Thanks It was surely installed because msftesql.exe was running. I reinstalled Sql Server Express with the following changes and now full-text search works: - I use default instance instead of named instance - IIS was enabled during installation - The installation folder was selected so that to be different from t ...Show All
Visual Studio Team System Export Folder structure from TFS to Excel
Hello! Is there a way where I can export the top level folders and the contents from all team projects in TFS to excel spread sheet This is for PMs who would like to have a glimpse of everything out there instead of actually going to source control explorer. Thanks! Hello, I don't understand what is content of team project (team projects are top level folders in version control). If you want to do 2 levels recursion dir, you can do this with shell script (execute "tf dir $/" and for each directory execute tf dir again) or custom application (the same thing, but using OM instead of tf.exe) and save output in csv file (comma separated values, which you can output later in Excel) ...Show All
Visual Studio Team System Time-tracking for TFS work items?
Does anyone know if there is a way to track the time spent working on a work item I'm thinking of something like a "clock-in/clock-out" feature, so a developer can record the actual time spent working on a particular task, etc. I assume that if there isn't a built-in way to do this, there might be a way to build this in as custom functionality. Any ideas/guidance Updated Question: Perhaps I should have stated this better earlier... TFS work items obviously have a field or two in which a developer can enter the total time spent on a project, but what I'm looking for is a way to help track and calculate that total time, based on a mechanism (like a chess timer, for example) which would allow a user to "clock in" ...Show All
Visual Studio Tools for Office Context menu customisation for the outlook word editor
I am writing an add-in to Outlook 2007 using VSTO 2005 SE for which I need to add a context menu item that appears in a new mail inspector window when I right click over the body of the email. I was able to do the same back when winword.exe was run as the default editor in outlook 2003, but now it seems that the editor is run in-proc (I tried accessing the object model through the wordeditor object of the inpector but it looks like the object model and access to the corresponding commandbars object is blocked when the document is open as an email). The command bar needs to be added to the word-editor’s context menu and nowhere else in Outlook. Could anyone help me out on how this can be done or point me to some resource that’ll ...Show All
Visual Studio Express Editions Connect to word and get form data?
I recently began working on a Word macro to send data from form fields to an Excel spreadsheet. The project went well and I decided to create a Windows Application with VB 2005 EE to do the same thing. The basic premise would be I would point the application to the appropriate Word document containing the forms and it would send the data to the appropriate Excel spreadsheet. I have been searching for quite some time now (including on this forum) and I can't seem to find a way to correctly connect to a Word doc of my choice and then get the form data. Any help in this area would be greatly appreciated. I need: 1. How to connect to a Word document in VB 2. Once connected how to get data from Word document ...Show All
SQL Server Import from Data from Microsoft Access
In SQL Server 2005, Im trying to append data to tables which already exist. Im importing the data through the import wizard. The source from is Microsoft Access with no username and password. The source to is SQL Server 2005 using OLE DB Provider SQL Server with the login information of the schema I wish to use. I click through and the tables appear in the source. When I select all, they appear in the destination but they appear with the dbo. prefix which would regard them as new tables since the tables dont exist under that schema. I can click on the first destination table drop down text box and see all the tables under the schema there suppose to be under but its not the default. There are a lot of tables and I don't feel lik ...Show All
Visual C# Datagrid from arraylists
Hello, I have several arraylists with exactly the same number of elements. In a datagrid, I want to display the elements in ArrayList1 as the column names and the elements in the ArrayList2, ArrayList3 etc.., as the rows to the set of columns. I did read threads with similar queries but I am afraid I could not find what I am looking for. This is the first time I am working with datagrids without a dataset and I would appreciate any kind of help on this. Thanks a lot for your time !! I don't like the above procedure because it doesn't allow the security of a stored proc. You have to give your application permission to execute inserts, deletes and updates directly on the tables in your database. This I don' ...Show All
SQL Server How to get mobile subscription to sync with dynamic snapshot
Hello Everyone, I have a publication on a Sql 2000 (SP4) server. This publication has dynamic filtering enabled. What I want to do is create an interface which will generate a new dynamic snapshot based on filtering input from users. So far I can create the dynamic snapshot easy enough and I can see the filtered results on a Sql 2000 subscriber. However, there seems to be no way to configure a mobile database to point to the dynamic snapshot. This is easy to configure in a Sql 2000 subscription - the options are right there are on the properties page. Yet, it seems like the mobile database only points to the required unfiltered snapshot through the IIS proxy. Is there any way to force the mobile database to use the dynamic snapshot ...Show All
Software Development for Windows Vista How to add Images like JPG,tiff into XPS Document
Hi , Can any one tell me how images like jpg , tiff can be added into the XPS Document. Thanks in advance for earliest reply. Santhosh Hi , Can any one let me know what is the difference between the Beta 1 & Beta 2 version of the XML Paper Specification. I tried opening the XPS document generated by embedding a jpg image which was openable by Beta 1 version , but Beta 2 version is hangging while opening. Can any one help me out in knowing where could be the problem is. Thanks in advance, Santhosh. ...Show All
SQL Server How to create Database Diagrams in SQL Server Management Studio?
Hi: I installed SQL Server 2005 onto Vista RTM. When launched SQL Server Mangement Studio -> Databases -> choose a database and expand. Right click on top of "Database Diagrams" node, only options I've got are: 1. Working with SQL Server 2000 Diagram 2. Refresh. Wondering did I missing something on my system in order to make database diagrams to work Thanks Tommy Hi : I got the same problem running xp, here its how i solved it: - First unistall sqlserver 2005 including sql server native client -get the lastest sql server native client (sqlncli.msi) -install it, then reinstall all the sql server services Note: I ran a batch file which restored a lot of .dll and registry keys, maybe that cou ...Show All
