S.Jan's Q&A profile
Smart Device Development Get window handle from process id
Hi, does anybody know how to get a window handle by knowing its process id thanks for your help Enumerate all windows (EnumWindows()), get process ID for each one (GetWindowThreadProcessId()). Compare it with process ID you've got and if the same you found your window. ...Show All
Smart Device Development Transmit a phone number to be dialled by calling phone
Hi, I am developing a PPC application using VS 2005 and C#. I need to: 1. Intercept a call made by a specific number and answer it. (I have done this already) 2. T ransmit a hard coded phone number to this incoming call and now the incoming caller phone will dial this transmitted number using a conference service. I am stuck at #2. How to transmit a phone number to an incoming call and make it dial the same Thanks, Vivek What do you mean by "transmit" phone number Dial it via DTMF If so, go ahead and dial it, phone will play DTMF to the line. On the other side of the line you need DTMF receiver which would collect these digits, hang up and dial. That us ...Show All
Visual C# How to get control properties?
Hi, I would like to know how get all the controls in a panel, I use the panel1.Controls.GetEnumerator(); but then I can't get the attributes (name, location, text) of that control. Is there any way that I can put all the Controls in a list/array wherein I can access the control's properties Lol I read it, By the way dont you think it Sucks Now do me a favor: See both thing together now and tell me which one is valid both are from Microsoft: http://msdnwiki.microsoft.com/en-us/mtpswiki/scekt9xw(VS.80).aspx http://msdnwiki.microsoft.com/en-us/mtpswiki/b79a010a-6627-421e-8955-6007e32fa808.aspx Thanks and no Hard Feelings, You are My Senior Cheers ;-) ...Show All
Visual Basic VB Express Very Sluggish With 150 Form Project
I just removed the VS Beta and installed VB Express. Now the IDE is extremly sluggish. Many IDE actions, even simple ones like adding a new line, take 10 or more seconds to appear on the screen. VB is bordering on not being usable. This is on the same desktop platform as the beta 2 was installed and it was usable - build was taking a bit longer than I wanted but OK. The project has over 150 forms. Is VB Express intentionally crippled compared to the full VS Standard version That is can VS handle a 150+ form project better than VB Express Was there some change between Beta 2 and RTM that makes big projects unusable Is there some user option I can set to make the IDE more responsive TIA Hi Bo ...Show All
Windows Forms Implementing Print functionality
hi guys, i am having problems implementing print fuctionality in one of my projects. What I am doing is that I am getting some images from a source, display them on the screen and if the user wants to print those images, he clicks on a print button which prints the image. But the problem is that i want the user to be able to print using range feature in the print dialog box, how can i use the PrinterSettings.PrintRange property, and how should i handle the selection made by the user Can anyone help me with this Well nobody gave me the answer....i've found the solution myself This is how one can handle selections made by the user in the PrintDialog: (here pr_Dlg is the PrintDialog) private ...Show All
.NET Development future class design
I think I read that Microsoft were pushing the increased use of attributes in class design for the future - that is, using attributes to enhance class behaviour. Is that true Should developers be aiming to go that way thanks JAson Yeah, they'll probably add a lot more attribute types to future .NET releases. Attributes allow an independent software tool to discover the context in which a type might be used, independent of the actual type declaration. Classic examples in .NET now are the attributes a designer needs to properly embed control in a container or the annotations the marshaller needs to remote an object to another computer or operating system. In hooks into the notion of a Computer Aide ...Show All
Visual FoxPro Help creating a folder!!
I am trying to create a folder with Visual Fox Pro, using the MD commnad, and i the name of the folder to be the currnet date, anyone has an ideea md date() doens't work Yes thank you both, it works. But now i wanna copy the database in this folder i just made, with the name as he current date. This doens't work: COPY FILE "receptii.dbf" TO (m.lcFolderName)\ Any ideea how Thank you. ...Show All
Visual C++ how to check the data type of an variable?
vc++ 6.0. how to check the data type of an variable. or how to check the value in the variable is integer or not. basically i want eliminate the data which is not as an integer.pls help. thanks in advance.. Hmm, the compiler would know from the variable declaration. If you pass a void* pointer to the variable then all type information is lost and cannot be recovered. ...Show All
SQL Server DTS Wizard SQL 2005 - Enable Identity Insert
I have a large number of Access tables that I need to periodically bring to SQL using the DTS Wizard in SQL 2000 (via Ent. Man). I am only interested in bring over the data from the MS Access tables as I had a separate script (application drive) that would create the SQL tables. The problem is this: with SQL 2000 when bringing over the tables, the check box for 'Enable Identity Insert' for each of the tables was checked , this worked fine. With SQL 2005, this checkbox is not checked hence, I have to click 'edit' for each of the table data being brought over and check the 'Enable Identity Insert' box manualy. My question is whether there is a way to have SQL 2005 have this 'Enable Identity Insert Box' checked by default as it did with SQL ...Show All
Visual Studio 2008 (Pre-release) Help!!! message security using username password with sql membership provider is not working
Hi I am trying to create a sample service using wsHttp binding using message security using username password against aspnet membership provider. I use the following config in the client and I get an exception : " The request for security token has invalid or malformed elements" I used the logger to find out that the RST has failed. I Need help!!! < system.serviceModel > < behaviors > < behavior name = " MyBehavior " > < clientCredentials > < serviceCertificate > <!-- PeerOrChainTrust means that if the certificate is in the user's Trusted People store, then it will be trusted without performing a validation of the certificate's issuer chain. ...Show All
Windows Live Developer Forums Problem with map.Find() method
I am having trouble getting the callback method I specify to fire when I do not specify BOTH a "what" and a "where" value when calling myMap.Find(). e.g. Callback DOES NOT FIRE with the following code: map.FindLocation('', document.getElementById('uiTxtAddress').value , '1', , myCallbackFunction); but DOES FIRE with the following code (IF a Burger King is found within the map view): map.FindLocation('Burger King', document.getElementById('uiTxtAddress').value , '1', , myCallbackFunction); In addition, the following code yields an exception when the uiTxtLandmark text box contains no text: map.FindLocation ( document.getElementById('uiTxtLandmark').value , document.getElemen ...Show All
Visual Studio Express Editions I so thought I had this but I don't - I am not creating multiple objects I don't think...
I thought I had two objects and that I was taking cups away from each of these two unique vendingmachine objects, called decaff and caffeinated. But after testing how many cups are left, I find that I am always having the same number of cups left in either object. Or whats happening is I have one object or maybe I am only accessing one of the two. I am not sure. I really need someone to explain to me what is going wrong with this. I am trying to create two vendingmachine objects. Choose which one I want to buy from, then actually remove cups from that one as a cup of coffee is bought. I am failing to somehow keep them seperate, create them properly or access them properly. Any help would be so appreciated. Edited: Realized a fe ...Show All
SQL Server Checking Job Status using T-SQL
Hi. How can i check the job status using SQL Query Raja, I meant If the job (last execution/historical) executed successfully or not..From the above query.. KangKang, use RUN_Status column to find the status 1=Executed Successfuly 0=Failed with error When Failed you can find the details from the Message Column ...Show All
.NET Development serialization
Hi , Actually i didnt get any chance to work with serialization, what is the use of serialization and pls explain it with a simple example thanks sshaju sshaju, serialization itself is the process in where an instance of an object is stored in a stream. the most typical example is storing an instance of an object in a file.... in that case you have a persistent stream..... related with serialization you have the concept of what is called in .net "formatters" that describes the format of the stored information..... typically you will find "binary" and "xml" formatters to store the data as an array of bytes or as an xml..... xml is becoming popular with web services an ...Show All
Visual Studio Express Editions Deploying an application
Hello Guys! Please, is there any way to deploy an application package created with ClickOnce into Windows 98 I'm asking this because the setup file asks for windows installer 3.1, but this version of windows installer is not available to win98, only 2000, 2003 and XP. Is there any other version of windows installer that will work with the setup application or I need to change anything in the way I generate the deployment package The application was written in vb. Thanks a lot for all your time and attention. Cheers. Rodrigo. andradrr, If you install the .NET Framework 2.0 on your Windows 98 OS, it is possible for you to use the ClickOnce deployment. I search the MSDN, nearly all the ...Show All
