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...
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!
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?
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...
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...
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...
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...
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!
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...
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.
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.