Search results for query: *

  • Users: pisceswzh
  • Content: Threads
  • Order by date
  1. pisceswzh

    Question HTTP POST method in .net

    Dear all, I am working on a project that need to ask my program to use the HTTP GET/POST method to interact with a web server. To be more specific, I need my program to log into a website with a set of user name and password from the database and then save the cookie returned from the website...
  2. pisceswzh

    Question How can I extract the data in a standard format?

    I have a string like the following. <td>aaa</td><td>bbb</td>... Now, I want to extract each of the <td>...</td> group. How shoud I do this? I tried to use xml to do this. However, since xml doesn't support < and & in the content area and I can't guarantee there is no such two characters. Any...
  3. pisceswzh

    Question About BackgroundWorker.RunWorkerCompleted

    I use the BackgroundWorker to perform multi-thread process to increase user experience. However if users close the window before the BackgroundWorker finishes working and when it does finish and try to return values to the controls on the form, it will throw a exception: Object reference not set...
  4. pisceswzh

    Question Security of clear text connection string

    Hi, In my program, I use the following connection string to connect my windows form program to the SQL server. Since I believe the program communicates with the server using clear text, I am just wondering if it is possible that the password for the SQL server be intercepted. If so, how can I...
  5. pisceswzh

    Resolved How to prevent a textbox from reponding to the keyboard when pressing an key

    I want to do something else rather than the original behaviors when a user presses an "Up" or "Down" key on the keyboard. More specificly, I don't want the text cursor in the textbox to move back or forward when a user presses an "Up" or "Down" key. Anyone can help? Thanks!
  6. pisceswzh

    Question Does it possible to restrict a DLL file to be only used by a single application?

    In my application, there are lots of DLL compiled by VS. However I don't want these DLL be used by other applications. Does it possible to add a signature to the DLL file and my application, so these DLL files can ONLY be used in my application? Otherwise, there might be secrutiy breach or...
  7. pisceswzh

    Question My.Computer.Clipboard

    Hi, I am working on a program of extracting data from the clipboard. The data in the clipboard is actaully copied from the WebBrowser control. (User highlighs certain text part and press Ctrl+C) However I cannot extract from the clipboard using My.Computer.Clipboard.GetText or...
  8. pisceswzh

    Question The Enter event for WebBrowser

    I want to do something when a WebBrowser control is focused. However the WebBrowser control doesn't have an Enter event. How do I realize the same effect? Thanks.
  9. pisceswzh

    Question Why the WebBrowser doesn't suppress the script error?

    I am using a WebBrowser to regularly load a webpage and process the content of that webpage accordingly. However, sometimes there are script errors on that webpage and if the script errors occur, the whole processes stop. I tried to set the ScriptErrorsSuppressed property to True, but sometimes...
  10. pisceswzh

    Question How to use the OnKeyUp method for WebBrowser?

    According to MSDN, the WebBrowser has a protected method called OnKeyUp. I want to use this method, anyone can tell me how to use a protected method? Thanks.
  11. pisceswzh

    Question Is there any free PDF API ?

    I want my program to create PDF files and am looking for any easy-to-use PDF API. Any recommendations? Thansk. Tom
  12. pisceswzh

    Looking for a solution for my scenario

    Dear all, I am trying to do the following, but I don't know what is the best and secure approach. Please advice. I am providing some information as a service. These information is highly valuable and users need to subscribe it for a monthly fee. My ideal approach is to open up a website and...
  13. pisceswzh

    Question Error creating window handle.

    Hi, I received following error reports from my users: Error creating window handle. I used a TRY... CATCH... to catch the problem. After that, my program cannot create any more windows. Is it because my program created too many windows? Actually the number of windows opened is not that much...
  14. pisceswzh

    How to make a dll library only accessible by a certain exe project?

    Hi, I am trying to pack certain feature, which includes some windows forms and modules, into a dll library and when I want to use these forms or modules, I just use the exe project to call the library. The problem is if I want my exe project be able to call, say, a subroutine in the dll file...
  15. pisceswzh

    How to host a .net site in this situation?

    Hi, In my office there is a SQL 2000 Server for our internal information system. Now I want to provide new service for our client, a service that allows our clints to log in a website and see some information in that SQL server. The problem is the bandwidth in our office is not large enough to...
  16. pisceswzh

    How can I list all the available properties of an AD user?

    Hi, I am working on a project to create an AD user using VB.NET. For the time being, I have been able to create it using Dim newuser As DirectoryEntry = de.Children.Add("CN=Tommy Wang", "user") But I found it is not so easy to assign value to its property Now I only know how to assign its...
  17. pisceswzh

    How to get the name of the function/sub?

    Hi, I am working on a project that need to send a bug report to the administrator whenever it happens. So I use a TRY...CATCH... to catch the bug and send an email to the administrator. For the time being, I relize it by: Class ClassLoad  Private Sub subLoad()   Try    * codes   Catch ex as...
  18. pisceswzh

    datetime format

    Hi, One of my users has just reported to me that my application cannot work if the Region setting of the PC to be English (United Kingdom) (its date time format is dd/MM/yyyy). I tested and it turns out to be true. Generally the users who use my application set the Region setting to be English...
  19. pisceswzh

    How to stop the BackgroundWorker?

    Hi, In my application, I use the BackgroundWorker to load the data from the database. I use the BackgroundWorker DoWork event to load the data from the database to a datatable and in the BackgroundWorker RunWorkerCompleted event to assign the datatable to the datasource property of a...
  20. pisceswzh

    How to determine if the scroll bar of a WebBrowser is at its default position?

    Hi, I am working on a program that has a datagrid and a webbrowser in a form. When the user clicks on one row in the grid, the webbrowser will display something that is related to the selected row. My problem is the datagrid is supposed to auto reload every 1 min and if the reload happens when...
Back
Top