ChrisB999's Q&A profile
Visual Studio 2008 (Pre-release) Mouse Position During Drag-And-Drop
What is the recommended way of getting the mouse cursor position during a drag-and-drop operation Using Mouse.GetPosition() or DragEventArgs.GetPosition() always returns some incorrect value. I just noticed that Dan Crevier circumvented this issue by Pinvoking into userland ( http://blogs.msdn.com/llobo/archive/2006/09/06/Scrolling-Scrollviewer-on-Mouse-Drag-at-the-boundaries.aspx ) but I would prefer to avoid that. Is there a reason why the WPF APIs for retrieving the mouse position do not work properly during drag-and-drop operations Mouse.GetPostion(element) gets the mouse Coordinates *relative* to an element. Most people assume mouse coordinates are absolute and write buggy mouse logic. For instance code that drags an el ...Show All
Visual C++ newbie Q: choice of project for a particular interface
hi all, i intend to build a new interface for an existing relational xml database that works with IBM DB2 to store, parse xml files and perform simple queries. the db system already has a test driver (interface) that can perform the main functions from command prompt. the db system is written in c++ and contains some IBM header files. which type of project should i use some suggested MFC application, some say just windows application will do. im unsure how to start as i don't know much abt interface building, and i absulutely don't know anything about MFC. thanks. Tan It's depends on what you need to show as the final output. If you want to show something in window, you can go for MFC. If you a ...Show All
Software Development for Windows Vista WinForms control positioning not the same in vista?
I have started using VS2005 with vista (SP1 + vista fixes applied) and some windows forms have some controls moved. Is this a known bug Thanks Hello. This forum is focused on individual application compatibility and logo issues and not Visual Studio related issues. A better place that could yield quicker results http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vstudio.development&lang=en&cr=US Here's another forum that may be of assistance: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=120&SiteID=1 Also try technet http://forums.microsoft.com/technet/default.aspx siteid=17 Thanks ...Show All
.NET Development Datasets and SQL Server
I'm currently working on a application in VB.NET 2003, with a SQL Server backend. I was asked to make an import function that would allow a user to import an Excel worksheet into SQL Server. I'm aware you can do it from Excel directly to SQL Server, but the clients would like something that wouldn't involve the users of this application touching the SQL Server. I'm using an OLEDB for the Excel connection, and a ODBC connection for the SQL Server connection. Next, I have a button event that would open up a OpenFileDialog window, and a user can choose an Excel sheet. If the Excel sheet is valid, it would go on extracting the data into a dataset: ds = New DataSet ds.Clear() strSQL = "Select HEAT, Practice, C, Mn, P, S, Si, Cu, ...Show All
Visual Studio Express Editions Getting and displaying the build version
Hi, I am semi new to VB.net and am building a program that actually works! What I want to do is to display the build version in my form that VB gives the form automatically. How do I do this I dont want anything fancy just build:1.0.0.1 or what ever it is at the time. Thanks Actually, if you use Windows explorer and find the file, doing a properties on the "exe" should show two things: Both File Version and Assembly version under the version tab. ...Show All
SQL Server Remote connection to database on same PC?
I am running the SQL express advanced on the same PC that also hosts my Visual Basic Express application. I have user instances turned off and full-text enabled and working from within a SQL query window. However, I can not create a working connection to the database using the data source wizard from the server explorer within VB.NET. Since this is on the same PC, do I need to enable anything other than shared memory I get the error: Provider SQL Network Interfaces, error 26 Error locating server/instance. DeBug Hmm, the way you use the server explorer in VB.Net Express seems to be different to the full version of Visual Studio 2005 I use. In the server explorer I see a top node "Data Connections" wh ...Show All
Windows Live Developer Forums del.icio.us integration
have you had any idea how to integrate del.icio.us in msn space, such as daily blog posting function... Hey Dare, del.icio.us provides a feature to post daily link summaries to any blog that supports the MetaWeblog API. I too am unable to get this feature to work. Here's how it should work: 1. Log in to del.icio.us 2. Open the URL del.icio.us/settings/<username>/daily 3. Click add a new thingy 4. Fill out the form with these values job_name: whatever, doesn't matter out_name: your MSN Spaces alias, e.g. tom out_pass: your Mobile publishing secret word out_url: https://storage.msn.com/storageservices/MetaWeblog.rpc out_time: the hour of the day in GMT you want the links published, e.g. 7 correspon ...Show All
Visual C# Casting Question
I have an ArrayList in which each element contains an Integer. I'd like to convert this to a Decimal Array. So I tried making the conversion like this: (decimal[]) MyIntegerArrayList.ToArray(typeof(decimal)) but it fails. Is there a simple way to make this conversion Robert Hi I think that this is a simple way: Conversion: Decimal [] DecimalArray = Array .ConvertAll(IntegerArray, new Converter < Int32 , Decimal >(MyConversionMethod)); and MyConversionMethod : private Decimal MyConversionMethod( Int32 i) { return Convert .ToDecimal(i); } Yours Markku ...Show All
Gadgets Gadget: background color in the SPACES ?
Hello , i am new in this Forum; I remark that it is not possible to change the background color of certain module gadget ; in the "customize box"of WLS ,it is envisaged (since the 8 november update of the "tweakomatic UI " ) ; with gadget '"itune" or "Soapbox video..." it is good , but with my gadgets or others it is not possible ; I use <iframe> code in the javascript file : 1° is it a bug in WLS 2° do you know an other code Thank for your help ! (excuse my bad English , but i am French ) Unless you set your background to "transparent" specifically, it'll default to a white background. A simple thing to do is call 'document.body.style.background = "transparent ...Show All
.NET Development Proxy server
Is there any way in the BCL to detect what proxy server settings are configured through IE (i.e. Tools-Internet Options->Connections tab->LAN Settings->Use a proxy server for your LAN...) Furthermore, if a proxy server is problematic (i.e. non-existant or is intermittant), is it possible for the BCL to distinguish between a bad network connection (e.g. a disconnected NIC) and a bad proxy server (e.g. unreachable proxy) Any thoughts Thanks. You can use the WebProxy.GetProxy(Uri) method to get the proxy settings for a particular URI, as set in the IE settings. You could then detect if the proxy server (WebProxy.Address of the returned WebProxy object) is responding or not. Although, if you have a disconnected NIC you're not ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Who is using XACT?
If you are using or considering XACT for your product, could you let us know Recently we heard from a developer who was about ready to ship an XACT title, and we had no idea. We try to provide as much direct support to early adopters as we can, help them with any problems they bump into, etc; we can also adjust and prioritize our features based on real-world usage. So, if you're using XACT "secretly", please come out the woodwork and let us know, and maybe we can help. Thanks! Dugan Porter - Game Audio Team - Microsoft This posting is provided "as is" with no warranties, and confers no rights We would use it, if some compression that sounded better, and compressed more, than MS-ADPCM was available. WMA will do in a pinch; ...Show All
Smart Device Development How to peek at the CF IL
I'm opening CF assemblies with ILDASM/Reflector in an attempt to learn more about the internals and/or undocumented behavior of some classes, but all I get are empty method signatures. I'm opening for example c:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.dll. Should I be looking somewhere else (i.e. the GAC ) Please look inside Debugger\BCL folder instead of WindowsCE folder. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Looking for Game Components
Hi all, I'm compiling a list of game components made by the community. Let me know if you have any you would like listed. Thanks, Ziggy www.ziggyware.com Buttermilk has 3 main components - Core - Takes care of most of the low level 2D functionality for your game Gui - Has a feature-complete advanced Gui system for your game 2D - Has a lot of high-level 2D game functionality for your engine. Check it out - http://www.codeplex.com/buttermilk Right now it's only been tested on windows, but it is made specifically for XBOX as well. I just don't have the hardware to test it on the XBOX right yet :( ...Show All
Visual C++ Creating an Object
Hi All, I have class, which is used for synchronization purpose the class is declared as follows Lock(CriticalSection& crSection) : m_CriticalSection(crSectio) { crSection.Lock() } The code will unlock the critical section in it's destructor. I'm using the class as follows in another class which has an critical section object Lock(m_CriticalSection); // Note that I'm not specifying the object name But it's saying that no default constructor available It's working fine for a class like this class CBase { public: CBase(int i ){cout<<"Ctor";} ~CBase(){cout<<"dtor";} }; int main(int argc, char* argv[]) { CBase(10); return 0; } What would be the problem Viorel. wrote: This is because y ...Show All
SQL Server Find/Replace Not Working in Management Console
I have the 2005 Standard Edition of Sql Server, and the managment console tonight stopped responding to quick find/replace requests either via menu or (ctrl+f, ctrl+h). The UI bars above just grey out a bit and nothing happens. I saw a MSFT dev for VB (visual studio) respond with a fix that was to run "devenv.exe /resetsettings" that restored the defaults and fixed the problem for those affected. Anyone know how to do that for management studio, since going to customize (restore) each of the individual bars didn't do it. Thanks in advance, Greg I am not sure if a shortcut to center the windows was ever added. However, while the problem keeps happening to me I've become much ...Show All
