Search results for query: *

  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?

    Also, since the given text is quite well formatted. I am just wondering if I can treat it as xml? The only problem using xml is the < and & can't be in the content. Is there a way to solve this? Thanks!
  3. pisceswzh

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

    Actually I have just trid <td>[^</td>]</td> but it seems that it is not taking </td> as a whole word, meaning if a use this regex to match <td>d</td><td>aaa</td>, it only returns 1 result and bypass the <td>d</td>, because the regex negates the d in it. Is there a way to negate a whole word?
  4. pisceswzh

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

    I trid to use the regex. However if I use the pattern string like <td>.*</td> It turns out it only matches one group which is the entire string, meaning it matches the first <td> and the last </td> and omits the ones between them. In the sample I have provided, it should be two. I have already...
  5. 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...
  6. pisceswzh

    Question About BackgroundWorker.RunWorkerCompleted

    Thanks, jmcilhinney. I think to test the IsDisposed property would be easier.
  7. 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...
  8. pisceswzh

    Question Security of clear text connection string

    Thanks. Let me first go thru this.
  9. 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...
  10. pisceswzh

    Send an email in my application - again~

    Please refer to the forum on OutlookCode.com for more detailed use of Redemption. I found it very good!
  11. pisceswzh

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

    Find the solution: e.SuppressKeyPress = True
  12. 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!
  13. 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...
  14. pisceswzh

    Question My.Computer.Clipboard

    Yes. I am looking into it.
  15. pisceswzh

    Question My.Computer.Clipboard

    I am upload an image to show what I want to do and please help to see if there is any other solution?
  16. pisceswzh

    Question My.Computer.Clipboard

    I tried, but no luck. I tried several times and there is only one time it really worked. Now I think it does relate to the delay of the clipboard. On the other hand, your method cause another problem - "Requested Clipboard peration did not succeed." and I don't know why.
  17. pisceswzh

    Question My.Computer.Clipboard

    OK. Following is my code. Actually is very simple. I can't tell what's really the problem. Private Sub webCV_PreviewKeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PreviewKeyDownEventArgs) Handles webCV.PreviewKeyDown   If e.KeyCode = Keys.F1 Then...
  18. pisceswzh

    Question My.Computer.Clipboard

    OK. I will copy and paste my code tomorrow. I use ClipBoard.GetText and get a blank string...
  19. pisceswzh

    Question My.Computer.Clipboard

    Oh really? You can use GetText to extract the data from the clipboard? Can you copy and paste the code? btw, instead of let the user actually press the Ctrl+C. I asked the user press F1 and then in the PreviewKeyDown event using SendKeys() to send a Ctrl+C and try to paste them in a textbox...
Back
Top