gtom808's Q&A profile
Visual Studio Programmatically adding items to/creating the 'Solution Items' virtual project
Hello, I need to be able to add items to the Solution items (and/or Miscellaneous Items) virtual project programmatically. How do I go about doing this if the latter does not pre-exist in the solution (IVsSolution.GetProjectOfUniqueName() with argument EnvDTE.Constants.vsSolutionItemsProjectUniqueName returns null in this case) Thanks for your help, Gabriel Hi Gabriel, In VS2005 you can add items to M ...Show All
Windows Forms Odd ComboBox behaviour
Hi, I'm getting a strange behaviour with a ComboBox control, I'll try to make the situation clear: I have a DataTable, wich is correctly filled by a SqlDataAdapter, used as DataSource for my ComboBox. I correctly set the DisplayMember and ValueMember properties and the ComboBox displays and it also returns the correct value after the user has clicked on it. The problem lies here: I need to set the SelectedValue property before the user ...Show All
Visual C++ Application configuration is incorrect?
I have a very, very simple program that uses the Microsoft Platform SDK and SDL, basically just native executable (not .NET). It compiles and runs fine on my Windows XP Home Edition system that I'm using it develop it on. It also ran fine when I moved it over to a Windows 2000 Pro system that had no development tools of any kind installed. However, while it runs fine on every random Windows 2000 Pro system I've tried it on, it fails on the Windo ...Show All
Visual Studio Express Editions Stupid questoin from a newbie
Im just trying to get for loops to work properly and just basically messing around. This does actually work properly; yes i realize the names are retarded but they just came out :P Basically in this program you highlight an item in the textbox, and when you press ok that selected item will come up in a messagebox and say "you have selected so and so" Anyway... my question is how would i get this to display "You have selec ...Show All
Visual Studio Team System Warehouse not updating after upgrading to RC
Everything except reports seem to be working fine after the upgrade. When I go to run a report there is no data in it. When I run the scripts in the Warehouse Troubleshooting guide the Last processed time is null. I try to go through the controller web service and it dies on the ProcessingOLAP step. I am set up in a dual tier configuration. On the SQL box there are entries in the Event Log every time the Scheduler tries to update the Warehouse w ...Show All
SQL Server Maximum Size of OPENXML IN SP
How much data we can pass through as an XML Text into SP by the concept OPENXML http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnsql90/html/sql2k5xmloptions.asp "Limitations ...The size of an XML document that can be stored in varchar (max) data type is limited to 2GB. ... " HTH ...Show All
Windows Forms What tools exist for reading binary files
I got a problem, I want to read a .exe file. I open it with a text-editer ( I don't change anything). Then I save it with a .exe extention again, it changes into a DOS-application. Dos won't run on my PC. Does anyone have a program/solution for my problem thanks I don't understand as to why you want to open it in a text editor and save it off as a file Although you don't change anything, the text editor&nb ...Show All
Visual Studio Express Editions A way to swap variables?
Does VB provide an easy way to swap the contents of 2 variables without having to use an intermediate variable Thanks... Well I made a quick function that works fine for me... Public Sub Swap( ByRef x, ByRef y) xx = y : yy = x x = xx : y = yy End Sub That works fine for me xD Hope this helped :P ...Show All
Windows Forms Context Menu Question
Alright. I have a docking manager on my mainform (using Weifen Luo). The mainform calls a second form called xform (naming differently). xform is created onto the docking manager. the xform has a context menu. The context menu calls yform. Now yform I want to dock it automatically. See. The forms are generally added to the docking manager from the event like this: // click event to start up xform ...Show All
Visual C# Opening a file / stream.
Hi folks, i've got a file in a System.IO.Stream object. kewl. i have a button on my windows form which, when the user clicks it, the file will open with the appropriate default program. I'm not sure how to 'kick in/execute the file'. examples: 1) If the filestream object is an mp3 (ie. extension is .mp3), the default program for .mp3's will kick in 2) if the extension is .txt, notepade or wordpad (whatever is setup as defaults) will ...Show All
Visual C# List<> - What am I doing wrong here?
OK, I'm writing an app for managing citation records. I've choosen to use List<> arrays to contain elements with variable numbers of instances in each record such as the Authors. Right now, I am running into 2 problems. My code is down at the end of this post. 1: In my default constructor, I want to initialize all of the List<>s with default values. Unfortunately, I can't figure out how to create an array without declaring a t ...Show All
SQL Server How to install SQL Server Express Management Studio in different folder.
SSMSE installs itself in Program Files. The installation program does not allow selecting a different folder. This is a problem for me, I would like to install on a different drive. Has anyone successfully moved SSMSE to a different folder, and how -apdil Under UI, when you are in the window with "Registration Information", uncheck the box with "Hide advanced configuration options ...Show All
Visual FoxPro foxpro exe and dbf's, fpt's, bak's, tbk's, but now prgs etc.
foxpro exe and dbf's, fpt's, bak's, tbk's, but now prgs etc. I was given a foxpro program and i would like to see the code (the formulas)... i'm not sure how to do this... thank you... modify command <insert your prg file here> modify form <yourformname> use <yourdatabasename> ...Show All
.NET Development SelectNodes only works one level when xmlns is present
SelectNodes only works for one level when xmnls is present. My xml file has a xmlns declaration and SelectNodes only works for one level. My code: XmlNamespaceManager namespaceManager = new XmlNamespaceManager(xmlDocument.NameTable); &nbs ...Show All
Visual Basic Show Menu
Hello I created a menu and I made it invisible. How can popup it in the form. In VB6, I was using: Me.PopupMenu What do I use in VB.NET Thanks for assistance. Maksim Libenson wrote: Hi, You have Show() method for that. Max I don't want this. What I want exactly is: When I click on the notify icon in taskbar by mouse, the menu shows. How can I do it ...Show All
