Luke Yang's Q&A profile
Visual Studio How to catch .net 2003/5 solution tree drag and drop event
I am using EnvDTE to build an addin for .net 2003/2005. I am trying to catch the drag and drop event of the solution tree for both file items and folders. From the EnvDTE module, I can't find anything which is really useful to do this. Also, found that IVsHierarchyDropDataTarget and IVsHierarchyDropDataSource interfaces in the VSIP provide support for drag and drop, but I have no idea to hook them up with the IDE's solution tree so that we could catch the event. Please help on this. Thanks very much. Ivan Hi Ed, Unfortunately, there is no VsService defined in vsshell.h that could be used to query IVsUIHierarchy. The sVsShell service can only go down to IVsUIHierarchyWindow which will only hand ...Show All
Windows Forms Embeded WindowsMediaPlayer has bugs
Summary: The AxWMPLib. AxWindowsMediaPlayer object seems to have bugs and becomes unstable. Question: Is there a bug on the Active X wrapper that is generated by Visual Studio Do anyone know of a workaround Background: I am using an embedded Windows Media Player in a form. I got the player onto the from via the VS Designer. The instance of the player object is of type AxWMPLib. AxWindowsMediaPlayer m_player . When I set the URL property (e.g. m_player.URL = "c:\my_wav_file.wav" ) the player starts playing but then after a few seconds the progress bar of the player jumps back to the beginning and becomes grey (disabled) although the audio keeps playing. Once the position marker got into the disabled ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Automatic Content vs Manual Content?
One thing I'm not sure about are the two different content pools and what kind of content should be in each one. Additionally, in relation to this, are we supposed to load all our game's textures, models, audio, etc, all at once in one spot I can imagine larger games wouldn't be able to hold all the game's assets in memory, so where should content be loaded incrementally Thank You. Eli, being able to have more than one ContentManager is pretty cool, but is there a way to unload an indivudal asset It seems like the current ContentManager.Unload method should really be called UnloadAll and there should be an Unload which takes a string for the content item identifier. Am I missing something Loving the content pipeline so f ...Show All
.NET Development The new configuration design in 2.0
Elsewhere I wrote, regarding putting an XmlDocument into the config file "surely, if anything, this ought to be easier than de/serializinging a binary object into XML and then saving it". I've read more and am pretty much concluding that in spite of the fact that this seems to make sense, the reality is the precise opposite - instead of being simple, it's actually impossible to directly place an XmlDocument/XmlNode into the config file. Which brings up a much larger question for the community at large regarding the design for this configuration stuff. Isn't all of this solely for the purpose of putting some arbitrary XML into app.config under a given application name And doesn't the framework already have great facilities for producing XM ...Show All
.NET Development 8 byte Guid’s with .NET
Hello folks, is there a possibility in .NET to generate 8 byte Guid’s Or do i have to generate them on my own Thx for your replies. Kris Security through obscurity is not secure. An identity column of type int can generate 4 billion rows. You'll absolutely never run out numbers with a bigint (8 bytes). SQL Server natively supports the GUID column data type, you create them with the NEWID function. ...Show All
Visual Studio Express Editions Login screen not getting focus
-Visual Basic Express 2005- This should be simple to fix but it has me stumped. I'm writing a program that allows a user to login. The login form is called by another (startup) form. The login form never has the focus on startus (neither does the main form) Things I've tried: Setting the main form to enabled = false hiding the main form login.focus login.t_username.focus and load the login form just before the end sub It doesn't get the focus until I actually click on it. Any suggestions on what I'm doing wrong you can use .Show instead of .ShowDialog - showdialog will make the caller block until the form in question has been closed, whether this will resolve it...50/50 :-) you can also try: theSec ...Show All
Visual Studio Problems installing Workflow Extensions (RC5)
Has anyone had any problems installing the workflow extensions (RC5) for Visual Studio I have this installed however every time I try and run Studio it displays the splash screen and then hangs using 99% of the cpu. If I run Studio in safe mode then I can get in fine and the workflow options appear in the create project dialog however if I create one of them then I get the error message: --------------------------- Microsoft Visual Studio --------------------------- The project file 'C:\Documents and Settings\gordon.NT\Local Settings\Temp\w42cddt1.gwy\Temp\WorkflowConsoleApplication1.csproj' cannot be opened. The project type is not supported by this installation. --------------------------- OK Help --------------------------- ...Show All
.NET Development Upload Data To HTTPS via Proxy problems
ok.. I've seen quite a few questions about this issue but no responses, so let me try again. I'm trying to upload some data via the request headers to a page on a secured site, the page is accessed through the office proxy. Through IE and the appropraite proxy settings I can browse to the page just fine. When I use a webclient to call downloaddata on the page I get the webexception "The underlying connection was closed: Unable to connect to the remote server." which has an inner IOexception of "The operation is not allowed on non-connected sockets." from what I could trace out of the headers I can see that IE sets this when requesting the page Proxy-Connection: Keep-Alive But when I call it th ...Show All
Windows Forms How do I get these buttons to work?
I have made a simple form and have two buttons at the bottom. One of them I would like to be a reset button, the other I would like to set up to be a submit button to either send me the info in an email or to save the into to a file that I can access. You'll find lots of examples when you search the VB General forum for SmtpClient. ...Show All
SQL Server SQL Server 2005 Management Studio Keyboard throws DISP_E_EXCEPTION
An Exception encountered in SQL Server 2005 Management Studio.Non-Aphabetic keys like Control, Enter, Backspace & Function keys are NOT working only within SQL Server 2005 Management Studio Query Window. When i tried to change the keyboard options (Tools menu ->Options - Environment->Keyboard), An DISP_E_EXCEPTIONis being encounterd Pls help me to resolve this regards Dhandapani Hi Dhandapani When I try to replicate this mine seems to work ok. I suggest you place your installation CD in and run setup to do a repair on your installation. Try this first and report back and we will see what else we can come up with. Barry Andrew ...Show All
Visual Studio Team System Building un-manged code without converion/migration..
I have a good amount of un-managed code that I use - I want it included in my TFS source control but I would prefer to not convert/migrate the code. For building the projects, is MSBUILD.exe my best bet, I have been using NMAKE.exe. Any comments/suggestions are appreciated. Thank you. The two approaches available to you are to either use MSBee, which requires that the solution files be upgraded to VS 2005 format, or that you run devenv via the Exec task in msbuild. There aren't any really good options here. Buck ...Show All
Visual Studio Team System error with unit testing web site
I have a web site (IIS based) and now trying to write unit test for that. I keep getting following error for a simple method test: - "Could not connect to the web server for page 'http://localhost/Support/Training.aspx'. The remote server returned an error: (404) Not Found.. Check that the web server is running and visible on the network and that the page specified exists." I can browse the page without any error though. Here is my code in Training.aspx.cs public string SayHello() { return "Hello"; } and my test code is - [TestMethod()] [HostType("ASP.NET")] [UrlToTest(" http://localhost/Support/Training.aspx ")] public void SayHelloTest() { PrivateObject po = new PrivateObject(TestContext ...Show All
Visual Studio Tools for Office combobox in microsoft excel
Hi, I noticed that you can add a combobox through data/validation in microsoft excel, however when you leave that cell, there will be no longer any indication that the cell has a drop down list. Is there any way to add a combo box in excel with the drop down indicator at all time. thanks i'm adding through clicking on the cell, and then selecting data menu/validation. After that, I change it to a list and make sure in-cell drop down list is checked and add values. Is there another way to do it ...Show All
Visual Studio Express Editions Convert hex byte to decimal?
Here is the code I am using. I would like to convert 1 byte that is in hex to a decimal value. //==define a buffer array to load a save game file into. private byte[] mBuffer; // File data buffer //==in click open event. // *********************************************** // Select filename and load file into mBuffer // *********************************************** if (openFileDialog1.ShowDialog(this) != DialogResult.OK) return; using (FileStream fs = new FileStream(openFileDialog1.FileName, FileMode.Open)) { mBuffer = new byte[fs.Length]; fs.Read(mBuffer, 0, (int)fs.Length); fs.Close(); } //==find strBkName in mBuffer. this gives the starting location aa ...Show All
Visual FoxPro command window always on top
Hi, I am trying to figure this out for over an hour without much luck. When I open a table and browse it, the command window always stays in front. How can I get it to go to the back so it won't be in the way Thanks, Mark ...Show All
