Hong_Zhang75252's Q&A profile
Windows Forms TreeView event bug
I've come across what I think is a bug in with the TreeView control and how the AfterSelect event appears to take control of the event queue by placing itself higher than other events. Situation: 1. Focus is currently on TextBox control. 2. User c ...Show All
Visual Studio November DSL toolkit: how to add commands to context menu?
hi, I want to a add a command to the context menu. how can i do that with the new november toolkit I know that this is explained in a paper(customizing features in MS Tools for Domain Specific Languages (September 2005 CTP)) for the semptember toolkit. i tried to map it to the november dsl version(since the structure of the projects changed) but it seems not to work. E.g there is no File " Designer\Diagram\PkgCmdID.cs " and " DesignerUI\ ...Show All
Visual Studio Tools for Office Office SP1 & SP2
Hi everybody, As I started with my VSTO project (September 2005), I had to install the Office SP1 so that the customization works. Well of course the SP1 should be installed on the target machine also. But now there is allready the SP2. Now my questions are. Do I realy need to deploay the SP2 And do I need to install first the SP1 and then the SP2 or can I just run the SP2 Or is it better to deploay both and install both on target mac ...Show All
.NET Development Transferring Data between DataTables
How do I import rows from one datatable to another.Calling the ImportRow function imports the rows at the end of the datatable.I want to be able to import it at a specific index.Data is displayed using a DataGrid. I tried using InsertAt function but as I have to add one row at a time iterating thro the loop thows an Exception.(System.ArgumentException - row belongs to another table). Is this even possible. if so where do I specify the ind ...Show All
SQL Server Develop multiusers applications with SQL Server Express
Can I develop applications with SQL Server Express that I have more than one user in several computers working with the same database on a server, or I can only develop applications with only one user with a local database with SQL Server Express You should also read the Blog entry at http://blogs.msdn.com/sqlexpress/archive/2005/05/05/415084.aspx . You may need to enable SQL Browser and create Excpetions in yo ...Show All
Visual Basic How to obtain program directory
How do you obtain the installed path for the program. I need to check if a file is present in the directory where the main application is installed. Thanks. In VB Express / 2005 My.Application.Info.DirectoryPath For More details... http://msdn2.microsoft.com/en-us/library/6whasz3x(VS.80).aspx ...Show All
Windows Forms Struggling with no touch deployment
I have copied my exe file onto the virtual folder and set the exe up as a trusted exe file on the client machine. This works fine until I recompile and copy the new exe. When I do this I get the usual permissions problems. Whats happening I thought no touch deployment would handle this easily. I have now compiled my application as a class file (dll) and I have placed that in the virtual folder and have created ...Show All
Smart Device Development How could i create a database application in VB 2005 for windows ce?
hello! i've been searching the internet for the answer to this question, but i didnt find any that is useful to me. i would also like to know everything that is connected with the database application im intending to write. thanks a lot. Hi, You can use the EDB class to create,copy and delete database. I hope the following links will help you. http://www.developer.com/net/cplus/article.php/3327171 http://msdn2.microsoft.com/ ...Show All
.NET Development Problems in Marshal.PtrToStructure
Hi all, I'm having problems when using Marshal.PtrToStructure and passing a structure type to it with structure array as one of its members. The exception i'm getting is ' can not marshal field ComnPara of type DeviceDialog.CgfFileStruct This type cannot be marshaled as a structure filed. ' This is my structure [StructLayout(LayoutKind.Sequential)] public struct CfgFileStruct { [MarshalAs(UnmanagedType.ByValArray,SizeConst=Co ...Show All
Visual Studio Team System Branching is Broken - Severe SQL Error
About two weeks ago I was able to successfully create a feature branch off of our Main\Src directory. Last night I tried to help a co-worker create a different feature branch off of Main\Src. We tried from the VS 2005 UI and via the command line with no luck. Both ran for 15 minutes without completing. Finally we left the command line branch going all night and when we got back in this morning the following error message ...Show All
Visual Basic Invalid Column Name Error in Server Explorer Table Definition
Running .NET 2005 Beta 2. In Server Explorer, have added connection to SQL Express DB. I can view the Tables in the DB, the data in the tables, but when I go to the table definition, I get the following error: Table 'mytable' could not be loaded. Invalid Column Name 'is_active'. There isn't even a column in the DB with that name, so I'm kinda lost. I don't have any problems connecting to the DB within my VB code or with sqlcmd, ...Show All
Visual Basic deploying .swf file
my application has these 2 procedures: 1. Private Sub btnHelp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Help.ShowHelp(Me, "..\CYM HELP.chm") End Sub 2. Private Sub frmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim pro A ...Show All
Visual Basic VB2005 Express - Sub Main in Windows application
hi, Is it possible to use a custom Sub Main on a VB2005 Windows Application project It was possible to set the entry point to Sub Main manually in VS2003, however in 2005 I can only set it to start a form. Thanks, Regarding Sub Main() 1. If you implement Sub Main, it must be Public Shared, and can be in a separate Module or Class. 2. If you specify Sub Main or the class with Sub Main() defined, ...Show All
Software Development for Windows Vista How to get child workflow instanceId after calling invokeworkflow
Hi, I have one state machine workflow, in the start of the workflow, it will call InvokeWorkflow to invoke a sub workflow which is also a state machine workflow. The question I have is how to get the sub workflow instanceId after calling InvokeWorkflow. I try to use invokeWorkflowActivity1.InstanceId right after invokeWorkflow but that GUID is not the correct Id. Also, is that possible to fire event from child back to ...Show All
Windows Forms how to find the active form
hi VB6 had property to find the active form's active control - Screen.ActiveForm.ActiveControl.Text .... how this is replaced in .net.. i want to create a child form in an MDI application that can search for empolyee code and set the code in the combobox/text box (the user clicks F3 button)... i need a general form that can be used in all forms... thanks Regards If you're creating a child form and you want to send b ...Show All
