script's Q&A profile
Windows Forms Dropping project components onto a form
Is it possible to drop components, via the Windows Forms Designer, which are in the current project but not in the toolbox, onto a form theblueeyz wrote: The answer is no, unfortunately, because the designer needs a compiled assembly to get the component from (because if it doesn't build, for example - how can the designer run it It being compiled already lets the designer be sure it is (mostly) correct). Also, I'm not sure why you'd want to. All you need to do is build your project once and the component should appear in your toolbox. If the issue is, you need it dropped on your form before your application CAN compile.. you might have to comment out everything that uses it, compile, and then unco ...Show All
Internet Explorer Development IE7 and issue with TrackPopupMenu(Win32) within ActiveX-control
Hello. I have a trouble with calling win32-function TrackPopupMenu from ActiveX in new Interner Explorer 7 (RC1 and all betas). The situation is: I have some ActiveX-control - "MyPopupMenu". This control is being used to show context popup menu. To do it, it used win32 function from winuser.h. There's an issue with one of them - TrackPopupMenu. Control has worked fine in IE6, but in IE7 it doesn't. When TrackPopupMenu is called in non-dialog window, nothing happens! There's no popup menu (it was constructed by calling CreatePopupMenu and InsertMenuItem previously). But popup menu still works fine in dialog windows (ones that created in script by window.showModalDialog). Can anybody help me THX. Yes, this i ...Show All
Visual Studio Team System Where to get Microsoft.TeamFoundation.WorkItemTracking namespace document and library?
Hi all, I want to build a "What Is New" page on my internal development web site. The page will list the ChangeSet and the work items relative the changeset. How can I get the work items by a ChangeSet ID from TfsWorkItemTracking database Thank a lot Bill I didn't find the Version Control Object Modal from my VS 2005 SDK. Where is the Microsoft.TeamFoundation.WorkItemTracking namespace document and library ...Show All
Visual C# Unable to update the dependencies of the project
I have had this error every time I try to check my program into source control after making changes. The project builds and works fine until I check it in and check it back out then it won’t build. I have deleted the setup project and built a new one only to have the same problem after checking it into source control. It also givs me a warning that " Assembly ' FolderName\FileName.exe ' is incorrectly specified as a file. Any suggestions would be helpful. You said ... " I think we were WAY TO PREMATURE marking this thread as being ANSWERED!!!" ABSOLUTELY. !!! Can you repost as a new question. I'll have a couple of hours spare later this week and can spend some time trying to make a repo and ...Show All
SQL Server Header and Footer in Report Builder
I recently installed SP1 for SQL2005 and was happy to see that I'm now able to use images in Report Builder, nice! However, what I would need even more is the ability to edit the header and footer of the report from Report Builder. I know I can do it in the Report Designer, but my users out there doesn't have access to it. I need the header for the following: Company logo, todays date and page numbering. I tried to save an .rdl file to disk, edit it in a text editor and inserted a header that way. My thought was to let the users open a pre-made "template.rdl" from disk instead of creating a new. However, as soon as I opened it and saved it again in Report Builder, the header was removed. Is there possibly any other way t ...Show All
Visual C# XML
Hi, How can I decode data in an XML string Like when I get something like > or < in the raw strings, I would like to read or store them as > or < in my application. Regards Kiran Kumar Pinjala. Thanks Andreas, I was using InnerXML and this did not decode the data, So, i switched to InnerText and this did decode the data. The only thing that worries me is when I have children, then InnerText will return me a concatenated string of all the children, that I have. ...Show All
Visual Studio Express Editions Ugh....Driving Me nuts....
I am in the middle of writing a prog that takes a file within a directory on a HD renames it to the directories name and then places the newly named file on the root of that HD. Here is the code. and I am not getting it.....I would really appreciate your help. Thanks Imports System Imports System.io Imports System.IO.DirectoryInfo Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dlg As New FolderBrowserDialog Dim FileNamesSelected() As String Dim SelectedFolder As String 'Dim FileFound As String SelectedFolder = Me .FolderBrowserDialog1.SelectedPath FileNamesSelected = System ...Show All
Visual Studio Express Editions What are the differences between the string/String bool/Boolean (and others) types?
Hello everyone! I've been using C# for a little while now, using the the data types named from C++ such as bool, int, string, etc. Recently I was playing around and started using String, Int32, Boolean, which from what I can tell, do pretty much the same thing as the original ones that I have been used to. I don't think they would have been put into the language if both sets of types were exactly the same in every way. My question then, is could someone explain to me or point me in the right direction so I can know how they are different Which is the best to use during what situation Thanks! Ryan They are just aliases for the .NET type names, probably added to make them look more like the 'native' C# ...Show All
Visual Basic lload database to combobox and draw line with the selection made by user
Hi everyone! I am trying to create a programm in VB 6 for my university and i need yor help. I want to load a ACCESS database into a combobox and then with the selection that i will make, i want a line to be drawn in the screen. Let my explain that better... I have an Access database with some fields. Let's named them field1, field2. I want these to fields to be loaded to the 2 comboboxes that i have in my form, combobox1, combobox2. When the data will be loaded to the comboboxes (field1 to combobox1, field2 to combobox2), i want to select one element from the combobox1 and one from the combobox2. Let's say cmb1 contains A, B, C, D, and cmb2 contains 1,2,3,4. When i select A and 2 from then cmbs i want a line to be drawn in an ...Show All
SQL Server How to Get the Output Column in OLE DB Command Transformation
Hi, I am writing a Dataflow task which will take a Particular column from the source table and i am passing the column value in the SQL command property. My SQL Command will look like this, Select SerialNumber From SerialNumbers Where OrderID = @OrderID If i go and check the output column in the Input and output properties tab, I am not able to see this serial number column in the output column tree,So i cant able to access this column in the next transformation component. Please help me. Thanks in advance. Good advice, Jamie. Dhivya, remember that the Merge Join needs a sorted input, so you'll also need to use sort components. Alternatively, use ORDER BY in the source ...Show All
Software Development for Windows Vista Bug: Autoplay cancellation fails in Vista
Our application needs to cancel the Autoplay for USB flash devices in order to update the device firmware and format the media. In XP, the cancellation works fine, but in Vista you have to be logged in as Administrator to be able to reject the Autoplay for MSC devices. Even being a user in the Administrator group doesn't do it; the Autoplay handler is never called. It only works if logged in to the Administrator account. The same issue is present in x64 Vista as well. Our customers do not want their users to have to close the Explorer window or anything else, and are complaining about this. If they don't close it, the app will fail by not being able to lock the drive. Logging in as Administrator is not a good solution to this p ...Show All
Visual Studio Team System TFS Version Control Error with notification
Hi, When I ask for a notification on the project, for example about every check in, I put my smtp mail address which is myproject_myname@mydomain my username in the domain is mydomain\myname (different from the name in the smtp address). I do not get notifications, but If I check the Applcation event viewer on the tfs application tier I see this error every time I should have recieved a notification: ________________________________ Source: TFS Version Control Event ID: 6008 Type: Warnning Description contains a long text which tells: TF53010: An unexpected condition has occured ... the process name mentioned is: w3wp the account name of the process is mydomain\tfsservice .. ...Show All
Windows Forms Why does Control.DoDragDrop swallow exceptions?
I came across a situation where an exception thrown in a TreeView's DragDrop event handler was not bubbling up to my application's UnhandledException / ThreadException event handlers. A little searching led me to this blog post: http://www.vandervelde.co.nz/2006/02/exceptions-disappearing.html I used Reflector myself to confirm the behavior. Any comments from the Windows Forms folks at Microsoft as to the reasoning behind this Yeah, makes sense. Too bad there isn't any "official" documentation on this at MSDN. I'm sure lots of folks have run into it before. ...Show All
SQL Server Install SQLServerExpress Advanced Service with Visual Studio Express
hello, i’d like to work with (first learn ) all features of the SQL Server Express Advanced Service and Visual Basic 2005 (incl. Connect SQL Server databases from Visual Studio/ VB2005). Before I’ll make a mistake with the install (the numerous versions make me confused) I’d like to ask you which is the correct way to install both : 1) Should I first install SQLServer Express Advanced Service and then Visual Studio (Visual Basic without SQLServerExpress - if it’s possible switch off this compound) or 2) Install Visual Studio Express (I’ve got the DVD from Microsoft) with (or without ) the SQLServerExpress Edition and then upgrade to the SQLServer Express Advanced Service by starting the SSE Advanced-Service setup-file thank you very much ...Show All
Visual Studio 2008 (Pre-release) Jan CTP Microsoft.VisualStudio.Shell.WindowPane.OnCreate()
When I open the project's properties. Each tab in the properties window displayes a red X and Microsoft.VisualStudio.Shell.WindowPane.OnCreate(). So far I have tried this using a C# web and a C# windows project. I am using the installable bits on XP SP2. I chose the default install option and also have VS2005 installed. I am also using XP, Service Pack 2, and am having the same trouble. Visual Studio 2005, and 2003 still work fine, but I get the same error with the January CTP. I suspect they have released a faulty CTP or we have to manually edit the msbuild script to change the properties. I hope someone from Microsoft can clarify this for us. Regards Craig ...Show All
