mdenkmaier'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 Misc Projects by using the Misc Project Guids/name. To add items to Solution Items folder use the "Solution Folder Project" guid instead of the "Solution Items Project" guid as mentioned below. {2150E3 ...Show All
Windows Forms How to set the property of the form as Modal
I am calling form2 from form1 Form2's propery I want to set as modal How should I do this Thanks I think you're talking about a dialog window style..... this is an example.... Dim Window as new Form2 window.showdialog() Let me know if it worked..... Bye Reynaldo ...Show All
Software Development for Windows Vista How to create custom state activity with StateInitializationActivity?
Hi, I created the following custom activity MyState MyState : StateActiivty {} The problem is I can not add "StateInitialization" activity to my custom state activity. I tried to create "StateInitialization" in code but the compiler gives me errror saying "Cannot modify activities collection ..." If I use MyState activity in a state machine workflow, then it allows me to add "StateInitialization" activity. Basically, What I want is to put logic inside StateInitialization of my custom activity so the MyState activity can be used by the customer without any change. Please let me know ...Show All
Software Development for Windows Vista Various comments on Default application projects
I've been playing a bit with beta 1 and beta 1.2 and there are a few things I'm not very comfortable with in the default code generated when you create a new Workflow project (C#). For example, the default exe projects (e.g. sequential workflow console application) have absolutely no error handling at all. Now, I'm assuming that many people might just fail to notice this and either use the generated code in Program.Main as is or with little modification, in which case their workflow projects will simply hang in case of an unhandled exception inside one of the workflow tasks, with no indication of anything that might have happened. This is b ...Show All
Windows Forms SettingsDescriptionAttribute - How is it used?
Hi Guys, Setting a setting's Description property from the Settings Editor causes the associated strongly-typed property in the generates Settings (ApplicationSettingsBase derived) class to be adorned with SettingsDescriptionAttribute. What effect does adornign a property with this attribute have Is it used somewhere in the WinForms (or other) designer, or is it meant to be used by Intellisense ...Show All
Software Development for Windows Vista problems with Vista 5308 install
A friend who is in the MSDN wanted to test Vista on a better computer than his so I volunteered mine. After the install or rather during it I got a BSOD. Bad_pool_header was the STOP error. I went through to do the revert to prior install of windows xp sp2 and to give him his dvd and tell him thanks for screwing up my computer but now my machine (which is brand new BTW) keeps restarting during the revert and wont stop though its not really seeming to revert. HELP I am more than angry right now. Please this box is BRAND NEW pentium 4 HT 3.0 1gb RAM Intel integrated audio bluetooth mouse Wireless lan card. did y ...Show All
Visual Studio Tools for Office Build an Action Pane Across All Document Types?
In VSTO 2005, is it possible to build an action pane which is accessible across all documents Rather than associating an action pane to a single document or single template, I'd like to have something (exposed in an action pane) which is available to -all- documents opened in Word. I understand that Word add-ins have the global availability that I want but I don't believe add-in functionality can be exposed via a pane, can they There is some functionality which we'd like to provide as a service to all of our documents and we'd like to expose its user-interface in an action pane (or a similar pane like the research pane).&n ...Show All
Windows Forms Crystal Reports HELP?
Where is it in VB.net I have the standard version and need to make a report but cannot find any way of doing it in VB can anyone help me Does anyone know if the Crystal Reports components even come with VB.NET Standard ...Show All
Visual Basic Syntax error: Missing operand after 'Name' operator.
Any help would be great. I'm trying to setup a filter for my address book program that uses an Access database. I have it working for a different form and I did it the same way as far as I know. For some reason though on this form I get the error "Syntax error: Missing operand after 'Name' operator." Here is the line of code that gives me the error: Me.PhoneBindingSource.Filter = _ String.Format("{0} like '%{1}%'", _ Me.PIDSDataSet2.Phone.Last_NameColumn, _ Me.FilterTextBox.Text) It sounds as though you may have changed one and not the other - so they g ...Show All
Visual Basic cannot update MySql database from DataSet
Hey all, I'm developing a Windows application that connects to a MySql database. I declared a MySqlDataAdapter and a DataSet as Friend in a seperate Module..... did this so I can access them from various forms. (Is this the right way to do it ) I then populated my DataSet with the code below: Public Sub PopulateECNDS() Try Dim conn As New MySqlConnection conn.ConnectionString = connStringLocal &nbs ...Show All
Visual Studio MSBuild and Web Apps - 'Web projects do not support the Publish target'
If I have a web solution that I am trying to deploy out into a real world environment, does MSBuild just not support Publish in any way for the command line MSBuild tool All I am getting is this: "Web projects do not support the Publish target" I am also using ILMerge after the fact to compile all the .dlls into one solid .dll. If if is or isn't possible to get MSBuild to publish a web app, how would ILMerge effect the outcome, positively or negatively Have you looked at web deployment projects WD Projects were released by the ASP.Net team in order to specifically enable the scenario of depl ...Show All
Windows Forms Winform cold startup time in .Net 2
Having just moved to .Net2 and Visual Studio 2005 (release version), I'm porting my WinForms app to the new environment. I'm very concerned about cold startup time for a WinForms app. It's orders of magnitude slower than in 2003. I tried NGEN'ing the app. This made it start slightly faster but still a lot slower than the non-ngen'ed 2003 app. I realize that this will improve when more apps are built using the framework, but that's years off! I'm distributing this app to users now. These users probably won't have half the hardware capacity of what I'm developing my app on (AMD64, 2Gb mem). Does anyone have any tips/tricks on how to im ...Show All
Visual Studio Express Editions preventing thread from abort at specfic stage
i am creating a thread that will do some work and then enter those info in database. use can abort that thread but i want to prevent that thread won't abort when it is inserting some thing in database, instead it will abort after that Why not disable/enabled the button at the appropriate times. If the button is disabled then they cant execute the button click event code containing the thread.abort command Button1.enabled = false ...Show All
Visual Studio Express Editions moving to another computer?
I've installed vwd2005 on my laptop and can't handle how slow it is. I've already registered it though, is it a problem to uninstall and reinstall on a different computer Im foreseeing a conflict. Am I too paranoid As the registration costs are Nil at the moment (Until Nov 2007) it shouldn't worry you.... But if you download the ISO install and install from there you do not need to worry about registrations, You will get a registration message for the first few times you run it. Have a look at the Express home page and the registration FAQ item 7. If you are using the Web installer to install the system, you will have to re ...Show All
Visual C# Application.ProductVersion
Hi I am trying to display productversion in my winform application What i want is to display version information as major.minor.build (1.0.14). Everytime I recompile I want build to increase by one / or when something changes in the code base and recompile - do not mind which. I have looked at AssemblyVersion and AssemblyFileVersion and have set those as 1.0.* however it seems to have no effect on application.ProductVersion. All I get with productversion is 1.0.2131.56354 - does not seem to make a difference what I do but this number stays the same. I have tried this with a simple hello world app. I am sure I am doing something s ...Show All
