Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by sand133

  1. sand133

    Winforms - Events

    Hey Jason, thanks for your reply, I guess the solution you provided is ok for this situation or one where I dont have deep nested controls. What if I have control A that needs to listen out for an event and control A is embedded in control B. How would I do this? Control B is on the form with a...
  2. sand133

    Winforms - Events

    Hi, I have a basic form with a button and a usercontrol (which is just a label). What I want to do is when I click the button, raise a custom event and have the usercontrol listen out for it. Any ideas how i can do this? I have got as far as this. The Event --------- using System; using...
  3. sand133

    Javascript Readonly

    that works great but for dropdowns it does not work, any ideas?
  4. sand133

    Javascript Readonly

    I cant seem to make these readonly any ideas, thanks for(i=0; i<document.forms[0].elements.length; i++) { { document.forms[0].elements[i].readOnly = true; }
  5. sand133

    regualr expression

    got this "Intesa Sanpaolo ST: the downside prevails <ISP.MI>" i want to extract all data in <...>. how woudl i do it in c# thanks
  6. sand133

    SSL, C#

    Figured it out my url was incorrect, if anyone does want to know then you set the Credential property of the HttpWebRequest object, passing in the username and password, as seen below. HttpWebRequest req = new HttpWebRequest(); req.Credentials = new NetworkCredentials("<your...
  7. sand133

    SSL, C#

    Hi, i had a look at the article, thanks but i dont want to write my own httpObject, I sure this must be easy with the HttpWebRequest class, but how do i pass the username and password? so far got this HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); // Set some...
  8. sand133

    SSL, C#

    Hi, im trying to request some data from a server using HttpWebRequest and HttpWebResponse classes.However all communications with the servers are encrypted using the HTTPS (HTTP over SSL) protocol. I have been given my username and password from the vendor. Question is how do I pass these into...
  9. sand133

    ThreadPool class

    Thanks bledazemi that was the perfect solution.
  10. sand133

    ThreadPool class

    I have the following code... static void Main(string[] args) { for (int i = 0; i < 10; i++) { ThreadPool.QueueUserWorkItem(new WaitCallback(Method)); } } // This thread procedure performs the task. static void Method(Object stateInfo) { //do...
  11. sand133

    DateTime format

    That doesnt give me what im looking for but thanks for the PDF.
  12. sand133

    DateTime format

    Hi I have a dataRow that has a field which contains a datetime. Does anyone know how i can get it into the following format in C# Friday, 15 June 09:11am Thanks Gary
  13. sand133

    year, month, day of current date

    does anyone know how do it in SQL, thanks
  14. sand133

    year, month, day of current date

    thank you brother
  15. sand133

    year, month, day of current date

    Hi, does anyone know how I can achieve the following in c# as a string... (1) The current year (2) The current month (3) The current Day in the following format 20080422 im having problem with the 04 bit, DateTime.Now.Month.ToString() returns 4 not 04. thanks

Part and Inventory Search

Back
Top