Michael Chancey's Q&A profile
Windows Forms drag & drop
How would one go about implementing drag & drop functionality with taskbar buttons as in allowing the user to drag buttons from the taskbar and drop them onto an application so it can determine what application was dropped there. Similar functionality is acheived in the program taskbar shuffle, and a few other programs like it. That would take several major tricks. The shell doesn't initiate a drag & drop operation when you click the taskbar button. To get one started anyway, you would have to use a global mouse hook. First, it needs to detect that the mouse is in the taskbar area. Then it would have to discover the button. Then it would have to reverse-engineer the button to the associated applic ...Show All
Visual Studio Team System creating project error
hi anybody can help i have this error , any helpful information 006-11-05 17:57:10Z | Module: Work Item Tracking | Thread: 5 | Uploading work item type from file 'C:\Documents and Settings\MNoor\Local Settings\Temp\TPW_tmp48.tmp\WorkItem Tracking\TypeDefinitions\Task.xml'... 2006-11-05 17:57:12Z | Module: Work Item Tracking | Thread: 5 | Uploaded WorkItemType definition from C:\Documents and Settings\MNoor\Local Settings\Temp\TPW_tmp48.tmp\WorkItem Tracking\TypeDefinitions\Task.xml 2006-11-05 17:57:12Z | Module: Work Item Tracking | Thread: 5 | Uploading work item type from file 'C:\Documents and Settings\MNoor\Local Settings\Temp\TPW_tmp48.tmp\WorkItem Tracking\TypeDefinitions\Qos.xml'... 2006-11-05 17:57:15Z | Module: Work Item Tracking ...Show All
Visual C# Database best solution.
What is the best solution for a program, storing settings, logs...., is it MS Access database file If your app will not store to much data, you can use xml file as data store. Create xsd schema with all columns that you need in the table or tables, and use generated typed dataset to read and write xml data file . ...Show All
Visual Studio Express Editions Help Needed
I have made a web browser but i don't know how to make it the when im using that web browser and i click open in new window and it opens a new web browser form the same program and wont open a new windows explore brorowser. Can anybody help me Ow, Very sorry about that. Let me try again. When you right click in any web browser, But in this case the one I made, You get a list of things that can be done such as, If it is a link it will give you "open" or "open in new window" and so on. When I run my browser it works all fine and dandey exept when I right click on a link and select "open in new window", When I click that it opens up a new Internet Explore Browser but I dont w ...Show All
Visual Studio Express Editions how can i change the groupbox boder and textcolor
hi how can i change a groupbox border color and the text displayed on the border. i don't want for it to change the text inside the actual groupbox. Thanks ramjamman (funny name) is correct in regards to changing the text font color. In regards for the border color of the groupbox, you need to implement/override the Paint event and code it there to change the border color or maybe make your own control for this. Not sure how to do this but thought I would give you a nudge in the right direction ...Show All
Visual C++ How to use FileSystemWatcher
I want to watch my directory,I build a win32 consle project,i know FileSystemWatcher included in namespace system.io,how can i use system.io in a win32 consle program and how to use FileSystemWatcher i see the example in msdn,i think that's clr program,how can i use in it in win32 consle program if there are any other function FileSystemWatcher is .net service and ASFAIK it is not possible to use in a native application. You can make use of FindFirstChangeNotification function Please see the documentation from MSDN. There’s a sample Snippet in MSDN for Obtaining Directory Change Notifications A Code Project article is there for Spying a file system Hope this helps! ...Show All
Visual Studio 2008 (Pre-release) Virtualized panels and lots of images
Hi! I have a question related to virtualizing panels and images. I need to present lots of images (hundreds or even thousands) in a thumbnail view - like Max is doing... I solved thumbnail generation problems, but now I hit into other issue. I am using virtualizing panel - lets say for simplicity that I am using ListView with VirtualizingStackPanel.IsVirtualizing="True". I have made my own little class that holds basic info about thumbnails and has BitmapImage property that loads thumbnail on-demand. Here is the issue... Application start and uses about 30MB RAM. If I scroll down through the whole collection of about 2000 thumbnails (usually their size is 150x112 or 112x150), the memory used by the applicatio ...Show All
Visual C++ VS2005 SP1 released
VS2005 SP1 is released. http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx If you have any trouble installing, be aware of http://support.microsoft.com/kb/925336 (that exact problem happened to me when I tried to install VS2005 SP1) I don't see a vcredist_x86 folder there, even though I have installed SP1. I was just told on another thread that it is not yet available for VC++ Express... Kumar ...Show All
Software Development for Windows Vista Drivers signing question.
Hi all! My product installs a boot-start filter-driver, but uses co-installer for its setup. I have successfully signed this driver using MS recommendations, but I have a number of questions and I would be very happy if someone could help me clarify them: 1. For LOGO certification - is it obligatory to install filter-driver through .inf file or I can use co-installer 2. Shall I generate .inf and .cat files if I use 'co-installer' way 3. MS docs say that .cat files must be signed with a cross-certificate. But what about .sys-files inside the driver package What certificate should I use - from Verisign or the cross-certificate 4. In case of '.inf-file' installation scheme, are the sign rules similar for device drivers and for filter-drivers ...Show All
Visual Studio Team System Can not install because TFS is already installed on server???
We had asked a contractor to take the time to install the Workgroup edition of TFS on a department server for evaluation. The contractor ended up leaving and the state of the TFS installation was unclear so I simply uninstalled TFS and initiated a re-install myself. SQL and Sharepoint seem to be fine. At this point the installation for TFS gives me an error while it is checking for pre-requisites and states that it can't install TFS because TFS is already installed on the server. I of course had already successfully uninstalled it. It does not show up under Control Panel - Add, Remove Programs. Does anyone out there no how I can get past this Thanks, Dale FYI, the dep check looked fin ...Show All
Visual Studio Express Editions SQL database connection
I've just downloaded VB 2005 Express and SQL server 2005 express. Built SQL database and trying to connect and open DB.I was trying different connection strings, OLEDB and SQL connections,reinstall Sql server and VB, but have the same massage:"Cannot open database.Login failed". When I bind DB in application, everithing is OK.First guess that something is missing in the code.But maybe Express Edition is not capable to deal with SQL DB Public p_conFirst As New SqlConnection() p_conFirst.ConnectionString = "Server=bk\;SQLEXPXESS;Database=First;Trusted_Connection=True;" p_conFirst.Open() 'error 4060 Maybe somebody has answer Thanks,Boris The Expre ...Show All
Visual C++ C2027 Error: Full class declaration required: Bug?
Hi, This may touch on some obscure corners of the C++ standard, but I believe the example below should compile as is, without the full declaration of class Atom. Comments Thanks. Stuart ____________________ // Shows VC++ 2005 Bug Requiring Full Class Declaration Where Forward Declaration Should Suffice // Compile: cl /EHsc forward.VC.bug.cc (other options didn't make a difference) // Error: error C2027: use of undefined type 'rosetta::conformation::Atom' // Compiles without warning on: GCC 3.4 and 4.0, and Intel C++ 9.1 // Compiles if: // . Full Atom.hh header is included // , std::vector is used instead of vector1, // . vector1 dtor is made non-virtual // . typedef for Atoms_Iterator is removed // Something about the vector class hierarc ...Show All
Software Development for Windows Vista Is there a possibility to run the SendEmail Activity with Lotus mail server?
Hello, Is there a possibility to run the SendEmail Activity with Lotus mail server if it's how would I proceed yes very easy : one additional string property for the password (it can be encrypted if you want), and in SendEmailUsingSmtp() , add the following lines : NetworkCredential myCredentials = new NetworkCredential(<your email>,<your password>); client.Credentials = myCredentials; // if necessary: client.EnableSsl=true; client.Send(message); ...Show All
Visual Basic Retrieving values from DataSet/DataTable
I have a DataSet with 5 DataTables holding selected fields from different tables. I want to know how to query a DataTable to retrieve any particular column value. K, Assuming you have some criteria for your lookup, the command you are looking for is the select command of the datatable object as: dim dr() as datarow 'This creates an array of datarow objects, at this point you should know whether or not you are expecting 0, 1 or more return rows... dr() = ds.Tables("x").Select("KeyColumn='"YourSearchCriteria"') ' if you look up the tables.select method you will find more complex uses for this method Of course, this can be simplified to: dim dr() as datarow = ds.Tables("x").Sele ...Show All
.NET Development Getting the 32/64 bit dotnetfx into a vs2005 deployment project
Folks, I have a nice little 2.0 .net application I wrote in VS2005 that I need to install on both 32 bit and 64 bit machines. I need to be able to distribute this in a one-click type environment. By adding a deployment package, I was able to do all the installer mumbo-jumbo I needed to do, including sending the 32bit framework out in the project (by going into Prerequisits via the Installer project property page). When I transport the output to a 32bit box, I get a dialog asking if the user wants to install the 32bit .net, etc, etc. Cool. If I go to a 64bit box, I get a "this version of .net can not be installed on a 64bit machine" type message. Ooops. So, it would be ideal to just tell vs2005 to use the 64bit netfx file that is ...Show All
