Brent Clements's Q&A profile
Visual Studio Tools for Office Intercepting Word's message pump
Hi; I am working on intercepting Word's message pump to determine when the user clicks on a menu so I can enable/disable items in the drop down menu. (I'll post the code once I get it working.) I am intercepting the pump using NativeWindow. And I can get the OpusApp windo handle. But here is where I am hitting a problem. The OpusApp window gets no specific messages as the menu is first clicked. It gets a WM_PARENTNOTIFY (WM_LBUTTONDOWN) when it is clicked with the mouse - but that message is fired a lot. And it gets a WM_ENTERIDLE if it's poped up with ALT-T (Tools menu) but that fires after the menu is displayed. I then looked at the menu c ...Show All
Visual Studio Express Editions Help with KeyDown or KeyPress
I am very new to VB but I am progressing well. However, I have tried numerous solutions to this problem and have not found the right answer yet: I want my program to do something anytime a certain key is pressed. It is not going in a textbox or form. So Basically something like this: If (The "5" Key is pressed) Then DoTheseThings() End If I need it to always be active. Any help Thanks!! It actually filled it in on it's own. It is working just fine. It just shows a "Warning" on my warning list. I greatly appreciate the help... It will work for all needed keys(num ...Show All
Visual Studio 2008 (Pre-release) catching routedevent from usercontrol
HI all, i'm creating a usercontrol, and in it i have a slider. of course, before making the usercontrol everything exist in the top-level window1.xaml code. No problem setting a method to respond to "valuechanged" on the slider. now that the slider resides in the usercontrol, i'm at a loss on how to still get the 'valuechanged' event to the top-level. any thoughts on a way to do this do i need to implement a valuechanged method in the code-behind for the usercontrol and then trigger some custom routed event. Hoping there will be an easier way. any help would be appreciate, with some samp ...Show All
.NET Development Very slow debugging
I have the 2.0 framework on one computer and haven't tested it anywhere else, but I'm experiencing very slow debugging. I have a Windows Form app with about 60 classes/forms. Sometimes after making a few character change in code it takes 30 seconds before I can continue in the editor. Opening a form with a lot of controls on it can take almost a minute. The hard-drive runs almost continuously during these "wait" times. The computer is a 3.2GH P4 with has 2GB RAM and 700GB (fast) disk. I know that the 2.0 editor does a lot more work than the 1.1 editor did, but the wasted time during coding is very PAINFUL - anyone else having these ...Show All
SQL Server About the user defined sp for calculating & updating the staff annual leave record
Hello, I'm using sql2005 and created a table use for contain the staff annaul leave holiday records of the company. I created a table 'test' and 3 columns 'id' (int), 'dj' (datetime), 'al' (int) which represent staff id, date join, annual leave holiday respectively. I used this table for testing the calculation of the annual leave of each staff have. the annual leave has the following conditions that must obey: working years annual leave available 0 0 1 7 2 7 3 8 4 9 5 10 6 11 7 12 8 ...Show All
Visual Studio Express Editions .HasChanges and .GetChanges not working?
I have a program where I have a timer and on the ticks I want to check to see if a dataset has updated. I know the dataset is updating but the event is not firing. Can someone please show me what I'm doing wrong Below is my code. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'ChatroomlogDataSet.chat' table. You can move, or remove it, as needed. Me.ChatTableAdapter.Fill(Me.ChatroomlogDataSet.chat) Me.Timer1.Start() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1. ...Show All
Smart Device Development Save the state in the Windows CE Emulator
Is it possible to save the state in the Windows CE emulator run from Platform Builder > Target > Attach to device, so I don't have to upload all files and change the settings everytime I detach from device or close Platform builder Is the only way to start the emulator to do it via attach to device in Platform builder I don't want to use the trivial emulator which doesn't contain my image, with web server and all. Sorry, but savestates are not supported by Platform Builder. Barry ...Show All
Visual Studio Team System Documentation for WIT types
I'm trying to customize our BUG work item item. Is there any reference documentation on the available "types" that can be used for new fields we might want to add ray To answer my own question. I found them here: http://msdn2.microsoft.com/en-us/library/ms243849(VS.80).aspx ...Show All
Software Development for Windows Vista Inspecting a State Machine Workflow
Hi there!. I'm developing a State Machine Workflow. First, please let me put you in context: It’s like a form approval, but the form in cuestion has states (ie: Pending, OnCourse, Rejected, WaitingApproval, Approved) and if the form is Reject, the next State it’s OnCourse again doing a new iteration. I'm using Lab04 as example and I've definied the workflow until this point without problems, but now, when I'm going to code the "test host" I have some questions. In Lab04 a lot for work is done in classes StateMachineInstance and StateMachineTrackingService. Reading these classes I understand that are inspecting the Workflow ...Show All
SQL Server .dtsConfig ConfiguredValue contains environment variable?
is this possible < Configuration ConfiguredType =" Property " Path =" \Package.Variables[User::varFolderName].Properties[Value] " ValueType =" String "> < ConfiguredValue > %enviroment variable% </ ConfiguredValue > </ Configuration > it would be really useful. it looks like the .dtsconfig file needs to be maintained on each install independently. This makes maintenance a nightmare. it would be a lot nicer if the .dtsconfig files were more like templates rather than hard coded values to specific system resources. ...Show All
Windows Live Developer Forums Fixing after submission?
Hi, I was just wondering how strictly the "do not change after submission"-rule will be enforced.. Are you allowed to do minor bugfixing if people report them Thank you, TB Hi. If you need to do minor bugfixing that's fine. You only need to re-submit if the framework of the Activity has changed. Framework changes include changing the purpose of the app or the underlying code allowing users to execute the functionality of the application; for example, the algorithms used to create the logic for the checkers game, or for a billing system. ...Show All
SQL Server how to change the order of rows in datatable randomly?
Hello! I would like randomly change the order of the rows in my table. Is there any way to do that I also have a question about random generator. Is it possible to get a repeatable sequence of random numbers between 1 and 10 in T-SQL (for example 2,7,6,5,8,9,3,2,....each state with the same probability). But i need the same sequence every time i run my procedure. I know this is just a pseudo generator. I tried to use function rand([seed]) and change the seed value, but I got some strange results...(floor(rand([seed])*100)) Thanx for any idea, Z. Seeding random number with specific seed value will work. You cannot however use ...Show All
Visual Basic ReadPrinter function
hi all Can anyone help me with an exapmle of readprinter API function in VB6 I've been trying but not able to use this in Vb application. It realy urgent & any suggestion will be very helpful thanks xmj ...Show All
Visual Studio 2008 (Pre-release) How do I handle a click event for a button in a ControlTemplate?
I have a ControlTemplate that consists of a horizontal StackPanel with a TextBlock and a Button: < Style x:Key = " MyStyle " TargetType = " {x:Type ContentControl} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate > < StackPanel Orientation = " Horizontal " Margin = " 1,0,1,0 " > < TextBlock VerticalAlignment = " Center " Margin = " 3 " > < ContentPresenter Content = " {TemplateBinding Property=ContentControl.Content} " /> </ TextBlock > < Button Width = " 16 " Height = " 16 " Background = " LightBlue " VerticalA ...Show All
Visual FoxPro How to skin Visual Foxpro Forms & Controls
Hi, How i skin my visual foxpro application I am tring vfpskin 3.0 but it can't skin commandgroup,shape & pageframe. Please tell me any other solution. Thanks I am tring vfpskin 3.0 but it can't skin commandgroup,shape & pageframe You may want to contact the developer of the skins, Pablo Molina, at pablo@vfpskin.com.ar ...Show All
