Search results for query: *

  1. L

    threading tasks

    Actually, no, the word event is used by me to describe... events, as a process. Not an event data type, not methods that act as event handlers, and not methods (though wouldn't that be the event handler, the method that handles said event). Back at OP... events are just like delegates. And...
  2. L

    WCF, Begin/End asynch, OperationContext.Current

    nope... the object is there if I don't do an asynch begin/end call I'm using ws And I just tested, because that sounds weird, and OperationContext.Current does exist in BasicHttpBinding.
  3. L

    threading tasks

    oh no, differing nomenclature... next we'll have the paradigm vs programming debaucle. Sorry but Microsoft and .Net did not invent the event driven system. So changing my informal vocabulary (it's not like I was writing published word here) to meet some ridiculous "guideline" that just...
  4. L

    WCF, Begin/End asynch, OperationContext.Current

    So I have a WCF service that runs, and sometimes I want to call to the server asynchronously. Basically I follow the Begin/End outline to do the call. WCF takes care of a asynchronous call when I do this, which means I'm not struck with any 'timeouts' if the service takes a while, it just...
  5. L

    Question Create a star in VB2008

    What have you done for this question so far? Do you have ANYTHING written? Take a try at it, show us what you have, and ask a more specific question.
  6. L

    threading tasks

    events don't inherently create new threads (though some events have the potential to... and if you write your own event you definitely have the ability to). events will fire in the order the delegates were added to the event. One at a time, one after the other, and if any one of the handlers is...
  7. L

    Question Create a star in VB2008

    that's a triangle... and why not give some type of effort... this sounds like a weird 'easy homework question' or something. I say this because, why a for loop? You don't need a for loop to do that, but you're asking for one, which leads me to believe you're required to use a for loop, which...
  8. L

    Question a console to convert integer to binary format

    you should start with checking the msdn page for Int32: Int32 Structure (System) scroll to the bottom, you'll see something about binary (just cntrl+F and type in binary) remember binary is just a way to 'spell' a numeric value. So it's to do with ToString... in it you'll see there is a...
  9. L

    Question How can I format the text output to a textbox so it adheres to a predefined width?

    does this need to be defined within some pixel width relative to the font chosen for the TextBox?
  10. L

    Streams, MemoryStream, StreamReader... questions

    Ok, I'm not well versed in the System.IO namespace, and I don't know if there are class types elsewhere that may serve my purpose. But I need two special things... a MemoryStream or StreamWriter that treats the stream as a fixed line length. So that when a new line is written to it, the...
  11. L

    Adding carriage returns to XML file

    set the formatting of that XmlTextWriter you have... like so: Dim writer As New XmlTextWriter(mediapath + "EVENT_MANIFEST.xml", System.Text.Encoding.UTF8) writer.Formatting = Formatting.Indented DataManifest.Save(writer)
  12. L

    Industrial App: Can I raise an event for something that doesn't have an event?

    well if the action doesn't have an event coupled to it, you aren't going to just immediately pull an event out of nowhere. But you can convert that polling to an event so that the rest of the application doesn't realize that you're actually polling it. Of course if you find a better method...
  13. L

    Question Averages

    The Double.TryParse method overload that accepts a NumberStyle can throw an Exception... Double.TryParse Method (String, NumberStyles, IFormatProvider, Double) (System) I bring this up because of that custom parsing method I was writing (and you subsequently assisted in) was giving me issues...
  14. L

    Question Averages

    well the class average would be the average of all student's averages. So you get and store the average of students a, b, and c. These are your student averages. Then you add them up and divide by 3 (a,b,c, that's 3 students) and you have a class average. I'd use a simple structure that stored...
  15. L

    Block like ShowDialog blocks, but without a form...

    Now that's the kind of information I need! Thanks JohnH Also, thank jmcilhinney, that should be of help as well.
  16. L

    Block like ShowDialog blocks, but without a form...

    i want the method to block... not the thread... I do what I need by blocking threads right now, but I don't want to do it that way, because I'm constantly having to reach back to the main ui thread to do random things... where as if I could just stay on the main ui thread. ShowDialog the method...
  17. L

    Block like ShowDialog blocks, but without a form...

    So you know how when you call "Form.ShowDialog" from where ever you call it, it blocks until the form being displayed closes. And then the function returns whatever result it was. I want to know how to block like, but without a form, yet still have the "main ui thread". Basically I have this...
  18. L

    How can you ensure that a form stays completely on-screen?

    i agree, usually the user should have complete control over the placement, size, and position of a window. Don't impede on the users control over software or they'll find it constraining most of the time. BUT If you want it, yeah you can do it. There are properties of a window that you can...
  19. L

    Strange XPath

    nevermind, I answered my own question... parnode.SelectSingleNode("./node[(@id=""b"" and @other=""1"") or (@id=""b"" and not(@other))]") Though I'm still hoping for something that is greedy for the 'other' attrib and only moves on to the otherside of the 'or' if the first side fails on all...
  20. L

    Strange XPath

    Does anyone know if there is a syntax for XPath that supports "possible attribute". Basically I want a XPath that tests for two attributes of a node equal to some value. BUT if one of those attributes doesn't exist it ignores testing that attribute and considers itself successful. Say I have...
Back
Top