creaturita's Q&A profile
Visual Studio Access the MRU list using SDK
Just wondering if it's possible to modify the MRU list using the SDK. I know you can modify the registry to remove/add entries.... but to get MRU list in VS to recognize the changes, a restart seems to be required. Is there a simple way to refresh the MRU list in VS using just code (w/out restarting) Many thanks. Hi Bobby, There is no programatic access to the MRU list. The items you see displayed in the MRU list are read from the registry when devenv is first launched, and then modified as files/projects are opened/created/closed. There are no interfaces that provide access to the static list of strings the IDE maintains. I did a quick search and the initialization code (where we first initialize these structures) are internal f ...Show All
Visual Studio Can Sandcastle output a help website rather than a CHM file?
I used to use NDoc to create help in HTML format. When I try to use SandCastle, it appears that the only option is to create .chm files. Is it possible to create a website similar to http://msdn2.microsoft.com/en-us/library/aa388745.aspx using SandCastle Hi Anand, In that case, I'll continue my work on DocProject to provide users with more control over Sandcastle from within the VS IDE. Thanks for the response. BTW, I'd love to see the RTW on CodePlex . Vote += 1. ...Show All
SQL Server SQL Server Package Execution
I tried to execute the package,which is importing the data from the Flat file(flat file from map network drive on other computer).But Packages are created and executed on Server.While i executing that package it shows error as "Package could not be found.". Please help me ASAP. Thanks in advance Whiz-kid wrote: I tried to execute the package,which is importing the data from the Flat file(flat file from map network drive on other computer).But Packages are created and executed on Server.While i executing that package it shows error as "Package could not be found.". Please help me ASAP. Thanks in advance Does the ser ...Show All
Visual Basic Button!
Hello all, I am a total visual studio newbie and need help with a very basic task and was wondering if anybody could help me. I basically need a button on my userform to be able to link to an external application, for example the user presses the button and the alternate application will then open. Thank you if you can help me with this problem I am having I hope to learn much more within visual studio as it seems to be a vast but brilliant program. As Lars pointed out, you can launch a process with teh Process.Start() command. To hook this up to a button Double click on the form or control in solution explorer Drag a button from the toolbox onto your control double click on the butt ...Show All
Visual Basic How To Automate The KeyBoard?
I've gotten Code on how to automate a mouse...Now is there a way to automate the Keyboard, where it will type perform commands I know this probabbly will be a little harder to do. If it is possible can you make it so it can use Combonation of keys such as alt-tab to still work The information was very usefull. However I can't get the Alt Tab to work that way Dim Keys As String Keys = "%({tab})" ' alt + Tab SendKeys.SendWait(Keys) When I try to run that it dosn't do anything. I don't uderstand why it Wont work. ...Show All
Visual C# StackOverflowException was unhandled.
Hi, I'm trying to call a method which exists in Form1.cs file from a UserControl file called UserControl1.cs . This is how i'm doing it: Form1 inst = new Form1 (); inst.server_Start(); Now when I run the program, i get the above mentioned Exception. However, when i remove Form1 inst = new Form1 (); along with the method call, the program runs just fine. What should I do Thankyou for replying guys. The code inside that particular method which i was calling was stuck inside an infinite loop; tcplistener, it kept waiting for clients to connect...Cheers. ...Show All
Visual Studio Express Editions Key press detection.
Hello. I have searched forums here and could find answers on some of my questions, but now i have faced a problem which I can not find. I have used a code from one on the threads to make the obgects in the form (Picture boxex) moove (as for i kind of pong game which as I see one of the first games to anyone:-)). But now I have the followng: 1 When I change the direction of the object it gives delay for almost a second to change the direction. 2 There are 2 objects at the same time mooving on the screen and when one of them changes direction it gives delay to second one also and then they continue mooving. 3 I use arrow keys to make one of the boxex moove and A and D keys for the other (left : right) Now when I press ...Show All
Windows Forms DataGridView Scientific Format Data Entry
Hi, This is a data grid used in Visual Studio 2005 (managed C++). The entries into the columns set either in numeric or scientific format cause exceptions without the data being entered. This is when a number in scientific notation is programatically entered into the column's cells. Any idea or observation to cicumvent the problem Best Regard, Reza Bemanian ...Show All
Visual Studio 2008 (Pre-release) RichTextBox, turn off the Keyboard-language-feature?
It seems that there is a nice ( ) feature in the RichTextBox that marks the text with the current keyboard language. This is in theory very smart. But what if I want to have my keyboard set to Danish but I want to write English, witch is a very common thing in Denmark. Then the (cool!!) spellchecking feature in RichTextBox will not work because it thinks I’m writing Danish. I could of cause mark the entered text as English afterwards. But new text I enter will again have the Danish attribute. How can I turn off the Keyboard-language-feature Best regards, Thomas Andersen There's no way to disable the feature in V1. I would describe this problem as the lack of a feature. The WPF RichTextBox doesn ...Show All
Visual C# Can't see my design form in VS2005
Hello I have an application, I dropped a DataGridView onto it and then put 3 rows namely Event, Time and date into it. It does not connect to a database - I put the text into the rows as follows: string [] s = { sSensorEvents[iAlarmType], sRecord.Substring(25, 2) + ":" + sRecord.Substring(28, 2), sDay + "/" + sMonth + "/" + sYear }; dataGridView1.Rows.Add(s); and repeat this a number of times This works fine and the data displays when I run it. However when I return to the visual design form (i.e. close VS2005 then re open) I get the following Warning message: Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxColumn' to type 'System.ComponentModel.Component'. a ...Show All
Visual C# Please Help me out.
I was trying to use ConfigurationManager.ConnectionStrings.Add(settings) inside app.config programatticaly but that returns a read only exception. Is there another way to do this You cannot write to the app.config during runtime. You won't be able to read the new values from the config file using the stock config uration classes, as the config file is loaded on app startup only. Therefore, if you write to the file with an XMLDocument , for example, you'd have to read it back using the classes available in the System.Xml namespace unless your app is restarted. ...Show All
Visual Studio Tools for Office Powerpoint add-in detection problem
Hi Which files is required to run a powerpoint add-in The registry files is set up correctly and the dll is installed but it wont work on other computers. //lasse Hi I've made an installer that install an add-in for powerpoint, currently it installs the dll files, registry entries, vstor, interop assemblies and makes it trusted. But the add-in doesn't load in powerpoint on computers that haven't visual studio installed, is there any files or configs that I've missed Thanks! // lasse ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
Visual Studio How to retreive whole tree of code in Visual Studio 2005?
Hi, I'm trying to make an add-on for Visual Studio 2005, and I need to retreive whole tree of code objects such as classes and methods, properties, ... I tried to use Project.CodeModel.CodeElements.Item to retreive codeElements and I used CodeElement.Children to retreive next level codeElements, but it gives an NotImplemented Exception on CodeElement.get_Children(). is there any other way to retreive CodeModel Tree is there any newer version of EnvDTE assembly with this method implemented Thanks in Advance The Children property is intended only for C++ code models. For C# and VB.NET see my articles: HOWTO: Navigate the files of a solution from a Visual Studio .NET macro or add-in. HOWTO: Navigate the code ele ...Show All
Smart Device Development Repainting whole screen on application exit
Hi When I exit my application the OS does not refresh the menu bars. Both the start menu bar on the bottom of the screen and the "battery" bar don't refresh. Is there any command I could issue before exiting my application so that all screen components are refreshed on exit I use C++ so no C# code please. many thanks, Martin Malek Hi Alex I tried your example: RedrawWindow( NULL, NULL, NULL, RDW_ERASE|RDW_UPDATENOW|RDW_ALLCHILDREN ) and RedrawWindow( NULL, NULL, NULL, RDW_ERASE|RDW_INVALIDATE|RDW_ALLCHILDREN ) but none of them repainted the menu bars. Do you know if there are any known issues with repainting the screen on exit Could my problem be device specific I use a qtek 8310 at the moment. Thanks, Martin Malek ...Show All
