Search results

  1. P

    Monitoring Applications in VB.net

    Hi, I guess your architecture will depend on what work your client are going to perform. If you just need the client to send their status for their existance , just create a Windows service as a server with TCPListener and In your client Exe create a timer which, at a configurable time ,will...
  2. P

    stackOvelflowException ?

    Hi, Please see if you have some Cyclic rerefence of Objects that you have created within your code. Thanks, Jay
  3. P

    Catch Catch ex As System.UnauthorizedAccessException

    Hi, The statement where you assumed can be error should be within the TRY-CATCH block. Your code should be like this: [CODE] For Each filePath As String In IO.Directory.GetFiles("C:\", "*.ptf", IO.SearchOption.AllDirectories) Try IO.File.Copy(filePath, "F:\" & IO.Path.GetFileName(filePath)...
  4. P

    Selecting input masks

    Hi, Your Query " without my code, if a user enters a masked text box, the cursor goes to the end of the value. I'd like the cursor to highlight the entire text, so a user can override the value without having to move the mouse, or keys." In .Net 2003, you can use first TextBox.Focus() and...
  5. P

    Need help in windows service Plz

    Hi, http://support.microsoft.com/kb/310988/en-us http://www.vbdotnetheaven.com/Code/Jun2003/2101.asp You can easily use Odbc in Windows services either in C# or VB.net. cheers !!! - Jay
  6. P

    Creating Schedule Time

    Hi Rinto, Please find follwoing Sample code [CODE] protected override void OnStart(string[] args) { StartWork(); } /// <summary> /// Stop this service. /// </summary> protected override void OnStop() { // TODO: Add code here to perform any tear-down necessary to stop your service. }...
  7. P

    How to reflect the record changes from popup window to main window in ASP.net

    Hi, Here may be you can use Session Variables to Pass Values between 2 forms or use Javascript to Pass value from child(pop-up) form to the parent form. use HtmlHidden Text boxes if you want to store the value and use it in you code. Please see a rough sample for code. here h1 and h2 are...
  8. P

    How to display date and calculate age

    Hey, Well If that solves ur Query then its Fine :) - Jay
  9. P

    Problems with filemode.truncate

    hey, I tried u r example but that really worked. Is it that the data in the list box ends up with line break or something. What type of data u have in List Box ? May be i can help u - Jay
  10. P

    How to display date and calculate age

    Hey, Please see my Inline Comments: I'm capturing date of birth in DateTimePicker ("MM/DD/YYYY" format). 1. How do I display the date into "MM/DD/YYYY"? Jay- a. Add a DatetimePicker control on your form. b. Go to the property Window. c. In CustomFormat Property add "MM/dd/yyy" d. In...
  11. P

    Console help / Desktop Question.

    hi there , I tried this one and it works . [CODE] X = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,2") [CODE] this opens the appearance tab try it Thanks Jay
  12. P

    Help with output on email confirmation code

    Hey, I can suggest u one way for good formatting. Use HTML as body formatting Procedure 1. Create a Template html file template.htm 2. Create the Well formatted text u need to Send. [CODE] Order Number: #Orderno# Qty ProductID Description Price...
  13. P

    How to parse WebResponse XML string?

    hi, try this [CODE] Module Module1 Sub Main() Dim strURL Dim objXML As WebRequest Dim strResponse As WebResponse objXML = WebRequest.Create(strURL) strResponse = objXML.GetResponse() Dim sw As New StreamReader(strResponse.GetResponseStream) Console.WriteLine(sw.ReadToEnd)...
  14. P

    Deploy Console Application

    Hi Rupali, When you Move up in the Setup Wizard, Select Windows Application. From The second screen Select Primary Output.It will show the Proj from which u need to select the EXE. The Additional Files is useful if u want to add some supporting files with EXE. file any file which needs to...
  15. P

    How to Parse Command Line Parameters?

    Hi , Here it is Module Module1 Sub Main() Dim s() As String = System.Environment.GetCommandLineArgs() Console.WriteLine(s(1)) End Sub End Module Thanks Jay
  16. P

    UnauthorizedAccessException

    Hi, I also faced the same error long back while writing Data to a file. and the error was gone when i had set all permissions to the user under which the service was running. I think along with Permissions to everyone the specific user needs all writes if the services is running on Domain...
  17. P

    File access problem with service

    Hi, Be sure that the Folder you are trying to Write data has Writes Permission for the User who's account the Windows Services are running Jay Kavimandan
  18. P

    Parse XML to find the min step #

    hi, from the Xml if you know what you want to retrieve use Xpath Queries. It is a Best way to retrieve data from Xml files May it help you , Thanks Jay
  19. P

    query in adding web service to web application

    hi, In you Windows Application Add 2 things When you create the Localhost object:- suppose [CODE] Dim t As New localhost.StringArray ' Webservice name t.PreAuthenticate = True t.Credentials = System.Net.CredentialCache.DefaultCredentials [CODE] This would work out Thanks Jay
  20. P

    How to abort a thread which is reading from a networkstream?

    Hi, Hmm , i too tried it but it is blocked for Response hence not abortign at the Instance. See if you can set client.ReceiveTimeout = ' Some time out Duration if you set some time out it will be blocked only for specified seconds. See if this helps you , I think need to find a...
Top Bottom