lord_8's Q&A profile
Visual Basic Can I initiate mousewheel by a MouseHover over a Panel instead of being Click activated.
I don't like the current behavior where to zoom in or out on a graphical object with the mousewheel I have to click on the panel first before anything will happen. This isn't very user friendly. The user should just be able to go right to the mousewheel if the mouse cursor is within the panel boundaries. Is it possible (and if it is how do I do it) to have a MouseHover event help out Public Sub panel1_MouseHover( ByVal obj As Object , ByVal e As System.EventArgs) Handles Panel1.MouseHover what would I put here to activate the MouseWheel event below 'If this makes sense End Sub Private Sub panel1_MouseWheel( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles Pa ...Show All
Software Development for Windows Vista How to get SeBackupPrivilege in a deferred custom action EXE?
I have encountered a privilege difference in Windows Installer between XP and Vista RC1 which makes our installation fail. I have searched for an explanation and workaround but haven't found anything so far. This is NOT a UAC issue: the difference in privileges is there even when UAC is off. The Problem: In Vista RC1, a custom action of type 3074 runs WITHOUT having the SeBackupPrivilege privilege. The privilege is not there so it is not possible to enable it using AdjustTokenPrivileges. (Type 3074 custom action is an EXE that runs from a temp file using deferred execution in the Local System context.) In XP SP2 and earlier versions of Windows, this custom action has the SeBackupPrivilege privilege so it is possible to enable it u ...Show All
Visual Studio Team System Viewing a list of WorkItems from a Project Portal Site
Hi, I know this question might sound somehow strange, but we have a case in which we need to access a work items list for a specific project particularly bugs from a project portal. I know that you can access a specific work item through its id from the browser through the url format: http:// <TFS Server Name> :8080/WorkItemTracking/WorkItem.aspx artifactMoniker= <WorkItem ID > I know also that you can access the project portal through the URL format:: http:// <TFS Server Name> :8080/sites/ <Project Name> /default.aspx The problem is that there is no way to access a list of work items (i.e. Work Item Query) for a particular project from the project portal site !!! Please advise. ...Show All
SQL Server xp_enumdsn in 2005
Hello, Does anybody know what happend to xp_enumdsn in 2005 The sp_enumdsn is there AND makes a call to [distributor].master.dbo.xp_enumdsn, but the actual xp seems to be missing from master catalog and views. Previously in 2000, you could simply EXEC master..xpenumdsn. Now in 2005 you need to explicity set up a distributor even if you do not intend to replicate as I see it. Any expert opinions/answers would be appreciated. Jim OK Zhiqiang. I finally got it. I had to disable any other services i.e. Agent, etc. from assuming the Single user slot before I could get in there with my OSQL command. Here are the results below. I know you are doing your best but I need to stress that SQL Development/SQA needs to fix ...Show All
SQL Server Restoring master Db to Secondary server- Service unable to Restart
Hi, I'm having trouble with restoring the master db on w2k3 sql2000 sp3a to a Secondary Standby server. Firstly, I place the server in Single user mode and then restore the master db. The sql server then tries to restart sql services but immediately stops as soon as it starts up. Can anyone help Please ! Thx, Steve First, is the secondary server running the same version of SQL It needs to be. Secondly, look in the SQL errorlog and in the system event log. It should tell you why it can't start up. ...Show All
SQL Server Dynamic Grouping with Report Designer
I've got this working -- I allow users to have 2 groups, and choose what they want to group by. I'd like to add one extra bit of functionality -- for the inner grouping, I would like my users to have the option "None" -- i.e. don't have an inner group. I've tried setting the group expression of the second (inner) group to "" when the user chooses the "None" option but the report errors out. Any suggestions as to how to dynamically get rid of the inner group Thx Helen Helen: I had a similar requirement and here's how I solved it. For the "None" entry at each grouping level you'll need to include a value for it in the combobox that's the following functions will recognize. Include the ...Show All
Visual C++ New template compilation errors in 8.0
Hi All, This template code compiled fine in the previous version of Visual Studio, but when I tried to port this code to Visual Studio 2005 I get compilation errors. Can someone help Class declaration in header file: // Linked list entry class template<class T> class CProListEntry { public: // Construction/destruction CProListEntry(); CProListEntry( const T& data ); CProListEntry( const CProListEntry<T>& entry ); ~CProListEntry(); &nb ...Show All
SQL Server Where's the "NeedsProcessing" property for a partition?
I know, there is no such property - but is there something similar that I could query inside my Script Task to know whether or not to process a particular partition Thanks.. As I mentioned in several posts this week, there is a very simple way to figure out if there is property belong to an object. That is : use AMOBrowser application. You compile and run this application and then navigate to the object. In your case you can see that partition object has State property. And if your partition is processed it shows 'Processed' value. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
SQL Server Report server database security question
I am currently the only Reportbuilder / Contentmanager / Publisher and admin in the Report server database. I am using windows authentication when creating subscriptions and saving them in this database. Some of the reports that i create have very sencitive information. What risks and procautions do i need to assess if i want to add another reportbuilder / content manager that can manage subscriptions The main thing is I do not want the other builder and content manager to see my report information. is it just meta data that it holds or do i need to worrie about the data also if so what do others do to block them from viewing other peoples data Summery : I just want them to see data that is relevent to their work and not mine. Is th ...Show All
Visual Studio Express Editions array for IP address range
im trying to get an IP address range into an array so that i can scan for example 192.168.1.1 to 192.168.1.12 the array that i created was in vb6 and even that one errored out because of the "." between each octet.. Im not using vb6 anymore, just express Hi. I don't mean to be insulting but I don't think you're using the code correctly. Here I've updated this to add all of the items to a listbox as I believe you're doing. The results in my code look like exactly what you're looking for (I think.). Note that you don't have to add each item to the listbox individually you can add a range of ip addresses in a single line. I apologize in advance if I've simply misunderstood you. ListBox1.Items.Clear() Dim ipAddresse ...Show All
Visual Basic Emulating VB6 Textbox arrays on Windows forms
My apologies to anyone reading this for a second time - I might have put it in the wrong forum earlier. I like entering data into text boxes on a form, rather than using a datagrid. I like to have the use of the Enter and arrow keys to navigate from one box to another. Doing this in VB6 was easy. All it took was making the textboxes part of an array, then this subroutine took care of the business (the actual routine also takes care of the arrow keys - I have removed the coding to keep it short). Private Sub Text1_KeyDown(Index As Integer, keycode As Integer, ShiftCode As Integer) Select Case keycode Case Is = vbKeyReturn Index = Index + 1 If Index > Text1.Count - 1 Then I ...Show All
Visual Studio 2008 (Pre-release) Generating bitmap from System.Windows.Controls.Image object
I want to generate a jpeg file from a System.Windows.Controls.Image. How do I render to a bitmap from an Image Thanks, that got me most of the way. I'm using the following code to save (now a png, jpeg doesn't have the transparency information I need.) The problem is a perfectly valid png/jpeg file that is empty (jpeg is black, png is completely transparent.) Anyone have an idea what is going wrong Thanks. --- // // Create the Geometry to draw. // GeometryGroup ellipses = new GeometryGroup(); ellipses.Children.Add( new EllipseGeometry(new System.Windows.Point(50,50), 45, 20) ); ellipses.Children.Add( new EllipseGeometry(new System.Windows.Point(50, 50), 20, 45) ); ...Show All
Visual C++ SelectPrinter Method
Hi, I have been trying to implement a solution that will allow me to programtically set the printer that my document is printed too. I have seen and looked at this article. http://support.microsoft.com/kb/193103 and http://support.microsoft.com/kb/166129/ Neither of these worked for me I got Error reading memory location or Error writing memory location errors. There doesnt seem to be a lot of sample code out there for doing this, so i wondered if anyone knew of any or how to do it Thanks I am using VS2003.net VC++ unmanaged . Will I'm afraid this post is not covered by the scope of this forum. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=789657&SiteID=1 for more inf ...Show All
Visual Studio Express Editions DataGridView: Replacing ID with data from other table
Hello, I'm building an app, that shows a datagridview containing materials from a material database. Every material belongs to a certain type, so I link it with I foreign key typeID. But when I show all my materials in my datagridview of course it shows the typeID and not the typeName from my type database. Can anyone help me fix this problem In short, I want to get information from a database to show in 1 column of my datagridview, which is showing information from another database. I hope you can understand my question. Thanks in advance To achieve this, first add another binding source to your form for your Type table. Then add another column to your datagridview and set its type to combo box. Then s ...Show All
SQL Server Cannot install SQL Server Express
I'm attempting an new installation on an Athlon 64 3300 system running XP Pro using the default install options. Get the message "SQL Server service failed to start..." and the installer starts Rolling Back the installation leaving me with a bunch of log files that mean nothing to me. I'm not savvy enough to solve this one. Can anyone help Microsoft SQL Server 2005 9.00.2047.00 ============================== OS Version : Microsoft Windows XP Professional Service Pack 2 (Build 2600) Time : Thu Oct 19 20:09:10 2006 Machine : SR1365CL Product : Microsoft SQL Server Setup Support Files (English) Product Version : 9.00.2047.00 Install : Successful Log File : C:\Program Files\Microsoft SQL Server\90\Setup ...Show All
