Morten Jokumsen MVP's Q&A profile
Software Development for Windows Vista Modifyable code in Custom Activity
hi, I want to create a Custom activity which allows the user to modify the code in it. E.g I create a Custom Activty called SqlActicity with Basic code like creating connection to sql in it. After the user drag drops the activity the user should be able to extened the code further. Like creating command object and calling its method. Do you mean that you want to a custom activity that when added will add something like the following: private void CustomSqlActivity_CommandExecute( object sender, EventArgs e) { SqlConnection connection = new SqlCon ...Show All
SQL Server Error locating server/instance specified
I am trying to connect to the AdventureWorks database while using Visual Basic 2005 Express. I am currently using the SQL Server 2005 trial version. Here is the error message: An error has occurred while establishing a connection to the server. When connecting to SQL server 2005 this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, Error: 26 - Error locating server/instance specified) I found some threads in the archives when I researched this problem but couldn't relate the answers directly to my situation. Prior to i ...Show All
Windows Forms Unable to read icons from ImageLists
Hi, I have an application in VB which is bieng upgraded to VB.NET. The application reads pictures and images from EXEs and Folders to place it in image lists. The aplication has a toolbar control onto which the contents of image lists are placed as icons. The VB6 Code looked like Tray.Icon = ImageList1.ListImages(imgIdx).Picture frmTimer.Icons.ListImages.Add , icoKey & CStr(iName), m_cI(iName).IconPicture(Me.hdc, ClosestIndex(iName, 32)) The upgrade wizard changed the code to Tray.Icon = VB6.IPictureDispToImage(ImageList1.ListImages(imgIdx).Picture) frmTimer.DefInstance.Icons.ListImages.Add(, icoKey, VB6.ImageToIPictureDisp ...Show All
Visual C# Communication Between Froms...
I currently have a form that I am using to store variables/arrays/etc. I have just created a second form. The form is launched when the user selects a button. I have launched the form by simply instantiating the object, like this: Form2 f = new Form2(); f.Show(); However, there is data that I need to retrieve and display from the first form (Form1). Would anyone know how I could go about doing this Thanks, I'm receiving the following error with that code: 'System.Windows.Forms.Application' does not contain a definition for 'OpenForms' ...Show All
Visual Studio Team System Cannot rename folders in Source Control
I am using VS Team Server 2005. It installed fine on a 2003 Standard Server box. I created a workspace and mapped it to a local directory on my development machine (XP SP2) called c:\imaxwell projects. When I open Source Control Explorer and I click on the new folder button. Nothing appears to happen. But if I shut down Visual Studio and reopen it, I can see the new folder. Unfortunately, the rename option is grayed out. What I want to do is place projects under sub directories rather than in the root of the source safe project. For example, I want to place my Team Project in $/Applications/PhotoManager. Is there a way to do this & ...Show All
SQL Server about the height of a row
How automatically controls the height of the row in a table For instance: If the table only then has one row, the height is 10cm, if it has two rows, the height of each row is 5cm . Thanks... ...Show All
Windows Forms ListBox and ListItem
The type or namespace name 'ListItem' could not be found (are you missing a using directive or an assembly reference ) foreach ( ListItem li in myListBox.Items) { if (li.Selected == true ) { //do something } } What reference am I missing. I have tried a few, but can't seem to find the right one. This is what I have on the page.... using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Data.OleDb; using System.IO; using System.Net; using System.Net.Sockets; ...Show All
.NET Development Runs Framework 1.1 application with 2.0
On a fresh installation of windows xp, if I install ony framework 2.0, can I run 1.1 application or I need to install framework 1,1 Hi, Check the following video for an in-depth info: http://channel9.msdn.com/Showpost.aspx postid=73151 Regards, Vikram ...Show All
SQL Server Cannot install SQLExpress after uninstalling June CTP
I try to install SQL Server Express after uninstalling its beta and get the following error in the log file. Can anyone help me Thanks. Microsoft SQL Server 2005 Setup beginning at Thu Dec 15 20:28:39 2005 Process ID : 110612 c:\e7b4645908c60721e3107fa330d0184a\setup.exe Version: 2005.90.1399.0 Running: LoadResourcesAction at: 2005/11/15 20:28:38 Complete: LoadResourcesAction at: 2005/11/15 20:28:38, returned true Running: ParseBootstrapOptionsAction at: 2005/11/15 20:28:38 Loaded DLL:c:\e7b4645908c60721e3107fa330d0184a\xmlrw.dll Version:2.0.3604.0 Complete: ParseBootstrapOptionsAc ...Show All
Visual Studio Updated: MSHelp1 to MSHelp2 VS2005 Conversion & Integration TestCase/Lab
Hi All, I've added a new Appendix to the Fast Track: MSHelp1 to MSHelp2 VS2005 Conversion & Integration TestCase/Lab (WHAT!!! Again ): Creating a MSHelp2 Combined Collection This addition shows you how to create a Parent node and subsequent Child nodes related to the Parent Topic. It helps conserve space in the VS Help Contents window and, for example, how you can group API, Class Library, DLL Library and Programming Guide .HxS Collections generic to a specific application under one Parent node. You can find it at Microsoft Help MVP Rob Chandler's Helpware website: http://helpware.net/mshelp2/frank/help2.htm My ...Show All
Windows Forms Default from icon
Anybody knows how to remove the default icon when you create a form while keeping the minimize box,maximize box... Thanks. Thanks for you reply and that is sure to be one way. However, we I looked at TaskVision sample application,I found no icon for many of its forms although their "Icon" property still showed the default icon. So I& ...Show All
Smart Device Development Emulator not working in VS 2005 RTM
This a fresh VS.NET 2005 install and the first thing I've done with smart devices. The error is: "Failed to open the VPC Network Driver." Anyone else getting this problem It will work after 45 days, but the download of the standalone Virtual Switch driver should be available before then. Thanks, Vladimir ...Show All
Visual Studio Express Editions Nplot.dll - Free .NET chart plotter component - How to implement?
Hi, Anyone has used this component In VB Express How does one get the plotspace in a form Download at http://www.nplot.com Thanks Jake Hi, Got the basic thing working. Reference material found at http://www.andrewtheken.com/nplot/ Still would like to see (eventually discuss) some implementation of multiple real-time measured values, plotted against a time-based X axis, in a VB Express application. Mouse interaction on the graph should make settings like 'zoom' and 'shift' possible. One doesnt have to re-invent the wheel... Cr ...Show All
Windows Forms dynamically creating a ContextMenuStrip
ok, I am wanting to dynamically create a context menu strip using an existing menustripitem from the form, I used to do this by creating a context menu and merging the differant main menu item i need to the context menu then when the user click the context menu it just fired the main menu item code. The problem I am having is that if I use context .Items.Add( this .child2ToolStripMenuItem); then the main menu strip item is removed from the main menu strip. Is there a way around this or do I just need to do this a differant way I'd create the ContextMenuStrip, then share it with your menustrip assig ...Show All
Visual Studio could not load type Microsoft.VisualStudio.CommonIDE.TemplateWizard.Wizard
Hello, After installing VS.NET 2005 Beta 2 from the DVD (visual studio team suite beta experience kit), i installed a newer beta build . Now i had had to switch back to the Beta 2 that came with the DVD and i have all sorts of problems. Now, the latest problem is the one in the subject. Anyone can help Best regards, Lucian Chiriac Hi, i'm struggeling with the same problem, but it goes a little further: In the directory %programfiles%\Microsoft Visual Studio 8\Common7\IDE\ there is no file named Microsoft.VisualStudio.CommonIDE.dll and in %windir%\assembly\ there is no subdir called GAC_MSIL , so i ge ...Show All
