horace.cx's Q&A profile
Visual Basic Troubles with my toolstrip
I have a toolstrip on my form and I have the form's autoscroll set to true so that when it's resize it can be scrolled if necessary. Anyway, When I scroll down my toolbar doesn't stay at the top of my form. It scroll's with my form. So, when I scroll down it disappears past the top of my form. I have dock set to top. What am I doing wrong You should add a panel to your form and set its Dock property to Fill. Now you should set the panel to AutoScroll instead of the Form and add all the controls that previously you added on the form to this panel. ...Show All
SQL Server Subquery returned more than 1 value error
Hi group I get the above error in my SP when the tblHolidayDates has more than one record. Here is my SP: begin if datediff(day,getdate()-10 ,(Select HolidayDate from tblHolidayDates))= 3 AND DATEPART(dw,(select holidaydate from tblHolidayDates)) = 1 -- Monday Date SELECT su.SuspensionID, su.ConsentNo, si.SiteID, si.NameNo + ' ' + si.Address1 AS SiteAddress, si.SiteDesc, si.SuspensionStart, si.SuspensionEnd, si.Address1, si.BaysAttached, rd.RefValue AS NoticeDays, si.MergeID FROM Suspension su INNER JOIN SiteData si ON su.SuspensionID = si.SuspensionID INNER JOIN RefData rd ON si.NotReq = rd.RefCode WHERE su.Status = 'ACT' ...Show All
.NET Development Sql Server Access Database
I am running windows home edition with my IDE and i need to get to my Veiw Designer..It says that i can go to View and right click and go to a sub menu called New view but i dont see that...I am connected throught MS Jet Databases...What should i do Sorry here is another helpful hint For anything other than SQL DB's you must be using 05 (I don't think the express version have this option either) to have that option available!!! ...Show All
Visual C# BitVector32.Section should be int not bool
I am getting an error 'Cannot implicitly convert type 'bool' to 'int' ' while using BitVector.CreateSection to get integers from odd numbers of bits. I used this in the same way in another section and it worked fine. I can't see why I get the error now. Does anyone see what I am doing wrong Here is my code: public class ReadDopFixAlt { private BitVector32.Section sectAlt1; private BitVector32.Section sectAlt2; private BitVector32.Section sectFix; private BitVector32.Section sectDGPS; private BitVector32.Section sectHDOP; public ReadDopFixAlt() ...Show All
Visual Studio Team System Using Microsoft.TeamFoundation.WorkItemTracking.Client to create a work item?
Hi, Has anyone created a work item in code by using Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem I can't figure out how to use it - for instance, how do you create an instance of it What is the " WorkItemType " that the constructor is expecting Thanks Thomas You can't. Every project has a set of installed work item types and you can only create work items in that project of one of those types. You must associate all work items with some project/work item type. A work item type defines what fields and rules are applicable to the work item. Work item types are describ ...Show All
Visual Studio Custom Build Tool and lot of [Inputs] file
Hi, I've a custom build tool for my project, executing another compiler for my .*c and *.cpp file. I have almost 300 files to build and each time the build process try to launch my custom tools, I have this error: The input line is too long. Project : error PRJ0002 : Error result 255 returned from 'C:\Windows\System32\cmd.exe'. I check the log file and I see that the system create a .bat file calling my compiler inside with all inputs and options. The problem is not my compiler because it accept a big amount of input files. Did someone can help me we workaround this issue by using response files. if your tool supports respon ...Show All
Visual C++ using a textbox from a 2nd Windows form
I've got a Windows Forms .NEt application that uses 2 forms. I've got Form2 which is created from Form1 : (inside a Form1 button click event handler) : namespace::Form2 *myForm2 = new namespace::Form2; myForm2->Show(); This Form2 works well, & I now have the need to write text to it's textBox1. So I create one in Form2[Design]. I need to do this textbox population inside a function X that is defined within namespace but outside the definition of Form2. Function X is called from another button click event handler of Form2. How should I do this I've tried : (inside the function X definition) : namespace::Form2::textBox1->set_Tex ...Show All
Visual Studio Team System Sharepoint Permissions error When Creating New Team Project
I'm having trouble adding users as TFS Administrators. From what I understood in the documentation, a TFS Administrator needed to be added to the TFS Security Group as a TFS Admin, an Admin for Sharepoint at the top site level and a content manager for sql server reporting services. I have done that however, I still receive the following error: Error Insufficient permissions on the Windows SharePoint Services at ekta to create a new site. Explanation The permissions granted your user name and ID on the Windows SharePoint Services at ekta do not allow you create a new portal site. You must be granted specific root perm ...Show All
.NET Development .NET Framework 2.0 question
I appologize in advance if some of my questions to the forum is a little out of place. I am not a programmer or developer, just a gamer, system builder, and network administrator of a home network. After installing .NET Framework 2.0, Direct X9.0c's Diagnostic shows that one of the two system.dll files is missing. The one that is listed belongs to 1.1, so logic dictates that it is the one for 2.0 that is missing. However it is in the .NET 2.0 folder! Some other symptoms are that logging into .NET sites must be done manually (being signed in with MSN Messenger does no good), and Auto-Scroll function for IntelliPoint 5.2 does no ...Show All
Software Development for Windows Vista Jon, quick question on Workflow Designer/workflowVisibilityControl
Jon, I've read your blog http://www.masteringbiztalk.com/blogs/jon/CommentView,guid,79f45d4d-6e5a-437b-a230-d7df13ae18e7.aspx and have developed a workflow monitor using your technique. Excellent job, by the way... But, here's my problem. Once I select a workflow instance from the tracking database, I not only display the workflow image ( using the WorkflowDesigner/WorkflowVisibilityControl technique ) I also display the activities ( just like the console version of the monitor ) Now, when I click on an activity, I want to re-render the image, but have the glyphs represent the state of the workflow at the point in time that that act ...Show All
Visual Studio Express Editions "Application.UserAppDataPath" before and after a publish
When I run my VBEE app in the debugger Application.UserAppDataPath points to: C:\Documents and Settings\username\Application Data\companyname\.... as outlined in the help file. When I publish my application this path then changes to: C:\Documents and Settings\username\Local Settings\Apps\2.0\Data\BKXYGCXL.... Why does it do this Can I stop it changing the path when I publish the application Thanks for your help Tim Application.UserAppDataPath string isn't same for any system/user/program, try to change your program name/version, the user name and it will change... Hope this helps a bit. ...Show All
Visual Basic Determining installation complete - ShellExecute API
Hi Friends, I am using ShellExecute API to run an application.Is it possible to determine when the program that was initiated by the ShellExecute API has finished executing (I mean finished installation as I am using the ShellExecute to run my setup.exe). Thanks in advance. If you use the Process class instead, you can set the WaitForExit flag. ...Show All
Visual Studio Team System field (System.Description) mapping with ms project in FileMapping.xml
I tried to map the fields of my process template with ms project fields. There is only one field that I have problem with, i.e. System.Description It is of the type plaintext. I see in ms project only something of type text, and it seems to be limited to 255 characters. And I think with plaintext you can add more than that. I tried different text fields from msproject (e.g. pjTaskText...). When opening a work item with ms project option in VSTS I get the error that the types for System.Description doesn't match. Is there anyway or field in ms project that I can map to System.Description Thanks for the help. ...Show All
SQL Server Error 29503 - SQL Server 2005 DB Engine install Fails
Hi, I've just tried to install SQL Server 2005 Standard and I'm getting an error that I can't find any information on. In the log, I find Error 29503. A message after it indicates that it couldn't start the server. In the setup, I'm getting the error when it is trying to start SQL Server and it can't. I've tried to go to the services window to manually start the engine, but immediately after it starts, it shutsdown again. I read the help file in MSDN that is also included in the error details regarding manually starting the service. It indicates to use the Configuration Manager, but at this point in ...Show All
Visual C# Is it possible to use .NET controls to VB6.
Hi, Please any one tell me is it possible to use .NET controls and libraries [ created by C# ] to VB6. If so can you tell me the way and some useful existing articles regarding this query. Thanks, Yes it is possible to call .NET assemblies from VB 6.0. You need to create a COM interface to .NET assemblies by using RegAsm and generate a type library file. Refer this MSDN article for a detailed explanation http://support.microsoft.com/ kbid=817248 HTH Uday ...Show All
