N G Smith's Q&A profile
Visual Basic How to "know" all controls on a window (I mean: any running program that have a form) and Extract the display current screen val
Any VB example , how to "know" all controls on a window (I mean: any running program that have a form). If I know the program using controls like MSflexGrid, textbox, and labels. I just wanted to extract screen value from the running program. Any solution. So far I only can come out with the following codes, which only can return title of exe program I try to use Microsoft spy++ to know all the running instance names and its properties. I manage to get the class name for the program which I wanted to extract the form data. Following is the progress I can come out. Any other idea please help. Class Name: ThunderRT6FormDC Dim lHwnd As Long Dim sTitle As String, sIncidentNo As String Dim lRet As Long ...Show All
Architecture Clustered .NET Applications
I'm doing the preliminary research for the architecture of a large project. This project will basically be responsible for routing various types of messages transactionally. Some messages have higher priority than others. Some are forwarded, some are processed directly, etc. My initial design calls for a series of MSMQ queues and Windows Services, written in C#, to process the messages in these queues. There will be incoming and outgoing queues, queues to store unroutable messages, etc. Of great concern to me is that there are absolutely no single points of failure in the system. I can't have a machine go down and have the messages sitting in the queues on that machine remain there until it comes back. In order to accomplish this I am cons ...Show All
Smart Device Development Tab order vs 2005 cf 2.0
I have a form with a panel containing 3 radio boxes, several combo boxes and a text field on the 1st page of a tab control. One of the radio buttons has focus and a tab index of 1 (the other 2 radio buttons have 0 and 2 as their tab index value). The first combo box has a tab index of 3, the next 4 and then a text field has 5. The tab control has 16 as its tab index. When I hit the tab button after the screen is displayed, the focus shifts from the radio button to the tab control. If I hit tab again, it moves to the first combo box and then the tab proceeds in the expected order until the text box, where the tab causes the radio button to gain focus again and the order continues as before where it next goes to the tab control. Anyone ha ...Show All
SQL Server Issue with duplicates in a table within a rectangle inside a table header row
Ok...This is wierd...but we have a report which has to have a cover page , then few pages with details and a closing page.The data for cover page is not repeated any where else so the cover page is generated by having a table with only the table header rows.It uses a seperate SP.The same SP is used by the closing page which is again a separate table.All this splitting of the report into 3 tables was done as the it was redundant to have the static details repeated from the SP which is used for detail section. The issue is that the cover page needs to have some telephone nos displayed.Initially,the cover page was to have only 1 such no but the user now wants to have more than one such no.s.To do this ,I dropped a rectangle in the textbox ...Show All
.NET Development sniff Remote Sock Info
there are 2 programs communicating using c#sockets in a specific port. now i need to write a program to sniff that particular port and find what text they are transmitting. pls help me check out the TCPListener http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx ...Show All
Visual Studio 2008 (Pre-release) Async Sockets example within another class...
I'm trying to create a class that uses the Asynchronous Sockets Client example (http://msdn2.microsoft.com/en-us/library/bew39x2a.aspx). I'm pretty new to WPF so I'm not totally sure how to call the dispatcher from the receive callback method in order to update the UI. I'm able to do it while the code is in a WPF Window but not when I place it in a class and then create an instance of that class. One other thing I tried was have the class inherit system.windows.window and calling the dispatcher works that way, although when I close the application I still have the class instance hanging around basically as a hidden window. I guess I'd like to find out the best way to update the UI of a window when the thread calling the dispatcher is in a ...Show All
Windows Forms Input validation on Windows Forms
There are similar questions to this but answers so far have been spotty. So far this is my understanding of the built-in "validation routine" (yes, the quotes are there) for Windows Forms , at the 2.0 level of the Framework: Validation us set at the control level, ex. textbox.validating event There are no other validation controls (like the ones in ASP.NET) built into Windows Forms If your application has a single form, say only separted by a tab control for other functionality, you'll have to do some magic, or obtain 3rd party stuff, to get real validation going. Here's what I've experienced and why I don't think Windows Forms actually has a validation system at all - hence the quotes in "validation routine" ...Show All
Software Development for Windows Vista Compatibility settings not working after uninstall / reinstall
Our application launches other executables that require elevated permissions to run. These other executables were sometimes failing to launch the first time the application was run and succeeding after that, and sometimes failing to launch no matter how many times we tried. We implemented a workaround of setting the registry key HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\[app path] to ELEVATECREATEPROCESS. This worked great - our programs would now launch correctly and ask for elevated permissions as expected. However, if we uninstall the application and then reinstall it, the workaround no longer works. We are removing the registry key that we created when uninstalling and creating it again when installing. If ...Show All
SQL Server Removing Lines from a Flat File
Hi There, I am parsing a directory of flat files and looping through it with a foreach loop. Some of the files have lines that contain characters that I would like to remove. In fact, it would be good if I could remove the entire line. Is there a way to do this with a Script Task or some other way. Thanks for your help. You could read the file in, use a conditional split to identify the rows you want to keep, and then output those rows to a new flat file. ...Show All
Windows Forms Bill said it is a good question!
How can I disable a combobox, while show it as normal instead of being gray Thanks in advance. Hi Jun, You would have to use: this.myComboBox.readOnly = true; Good Coding! Javier Luna http://guydotnetxmlwebservices.blogspot.com/ ...Show All
SQL Server IExtension.SetConfiguration not working
I am having problems with the method IExtension.SetConfiguration in my Custom Data Extension. According to MSDN I am suppose to add <Configuration> tags in my config file, however this does not work for me. The configuration string stays empty. ( http://msdn2.microsoft.com/en-us/library/microsoft.reportingservices.interfaces.iextension.setconfiguration.aspx ) This is an example of my comfig file: <Extension Name="Teradata" Type="namespace.path.to.connect,assemly.path.to.DLL"> <Configuration>value</Configuration> </Extension> I have also tried Microsoft's exact example character for character <Extension Name="Teradata" Type="namespace.path.to.connect,assemly.path.to ...Show All
Visual Studio Team System Monitoring Version Control Activity
My company has its own quality assurance system and for now we only want to use TFS only for version controlling. At the moment we are using VSS for version controlling. Now when a programmer check's out/in, adds a file or does any operation in VSS which influenses the project a dialog pops up requesting from him what task this action is for and subsequently the programmers action is recorded in our Quality assurance system. So if the programmer eg checks in a file he gets a popup dialog, selects the appropriate task and the file checkin is logged with the task in our system. In VSS we do this through a COM object that VSS loads automatically on startup. I have been trying to find a way to do this in Team Foundations Version Contr ...Show All
SQL Server Activated Stored Proc blocking?
Hi There I was wondering, i have experienced alot of stored procedure blocking where you have a stored procedure that get executed very frequently and is complex, when the sp has to recompile it is locked and cannot be executed by other processes. How will this work with an activated stored procedure, our activated stored procedure will probably not be too complex but it may exec complex ones base on the message type. Now lets say that a message is recieved by the activated sp he in turn executes a complex sp to process the message this causes the complex sp to recompile, during this time another activated sp is spawned by the queue with the same message type he execs the same complex sp that is busy recompiling, i presume that th ...Show All
Visual Studio Express Editions VB Express (INKEY$) function.
I have just finished writing my first VB Express program (Sub Search). I often found myself wanting to do an INKEY$ function as I used to do in Quick Basic. I want the program to pause, and wait for me to hit a keyboard key... then to analyze that keystroke, and branch-off to various points. I have seen references to such a capability (keydown & others) but have not been able to decode the directions to the point that I can apply it to my program. Solitaire wrote: The point is, VB.NET is very versatile, and the 2005 edition includes enhanced Console features. I teach a college course in programming for beginners and we are currently using VB.NET for Console applications. The GUI gets i ...Show All
SQL Server output parameter in CLR stored procedure written in C++
How can I declare output parameter in stored procedure, written in C++/CLR In C# it is proc_name( out SqlInt32 value ). In VB.NET it is proc_name( <Out()> ByRef value As SqlInt32 ). And in C++ Thanks a lot for support. Did you try passing a reference void proc_name (SqlInt32 &value) { //... } ... just a guess, but I think it's probably a pretty good shot :) -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- <Sergey Jmacov@discussions.microsoft.com > wrote in message news:fef55f40-42b7-47ef-bf2c-9a2295aca65d@discussions.microsoft.com ... How ...Show All
