Search results for query: *

  1. S

    Question Events and binding their EventHandlers

    Hi! I tried the same (adding the handler before the eventraising object is created) in my "big" application, which is an addon for AutoCAD and it crashed with some AutoCAD error. So I thought, I can't put it before my eventraising object is created. But your version works perfectly. So my...
  2. S

    Question Events and binding their EventHandlers

    Exactly. And that's why I thought, I'd need to use static binding of the event handlers (-> see my first post): Private Sub EventHandlerSomeEvent() Handles frmEventRaisingClass.SomeEvent But it seems, this is also bound to late...and I thought it's bound during compile time. Than I tried...
  3. S

    Question Events and binding their EventHandlers

    I'm sorry, but I don't get it working during initialization (see my first post). Let's say I have the following two Windows Forms: Public Class frmEventHandlingClass Private Sub btnShowSecondForm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  4. S

    Question Events and binding their EventHandlers

    Hi John, unfortunatelly changing the event declaration in the "UserControlClass" to this: Public Shared myUserControlEvent(...) and binding it to the EventHandler in the "MainClass" like this: Private Sub myUserControlEventHandler() Handles myUserControl.myUserControlEvent ... End Sub...
  5. S

    Question Events and binding their EventHandlers

    Hi everybody! I have a problem with binding my EventHandlers at the right time. Here's a pseudo code of my 1. version: Public Class MainClass Public Sub Main() Dim myUserControl as UserControlClass = new UserControlClass() AddHandler myUserControl.myUserControlEvent...
  6. S

    Question DataGridView doesn't show changes of its DataSource

    Alright, I'll use the CODE tags in future posts! Thanks again for your explanations :). Sebastian
  7. S

    Question DataGridView doesn't show changes of its DataSource

    Yes, that's what I thought when I read your previous posts! Thanks for the explanation! So my solutions would be: 1. somehow only change/update the content of the list object 2. do "bs.datasource = list-variable" again after an update. My old list-variable is then deleted by the...
  8. S

    Question DataGridView doesn't show changes of its DataSource

    Hm...okay. It's a bit different, but you're probably right. I read the xml using LINQ, convert it to a list using ToList(of T), binding this list-variable/object, deleting a row using the datagridview and see the changes in my list-variable/object. Then I read the unmodified xml file again...
  9. S

    Question DataGridView doesn't show changes of its DataSource

    Hi! First of all, thanks for the explanation. Unfortunately the bs.resetbingings(true/false) doesn't do anything?! I put it right after the "update process". If I write bs.datasource = list-variable at the same position instead, it's working... To use your second solution with the...
  10. S

    Question DataGridView doesn't show changes of its DataSource

    I got a step further, but don't understand the logic behind it... When I reassign the list-variable to the bs.datasource after the codelines of the "update dgv"-button, the changes are shown in my DataGridView. But why do I have to reassign it? I think I'm writing the xml-data during the...
  11. S

    Question DataGridView doesn't show changes of its DataSource

    Hello everybody! My application looks like the following: 1. An XML file is read using LINQ and the result is an enumeration of objects of a specific type (i don't use anonymous types). The result is then converted with result.ToList() to a standard list and saved to a list-variable. 2. I...
  12. S

    Question Return value of a LINQ query

    Hi John, you where right! Think my sequence/order of statements wasn't correct: before: .FEATURE1 = (From features In item.<SMS_BAR> Where features.<SMS_BAR_FEATURE>.<FEATURE_NO>.Value Is "1" Select features.<SMS_BAR_FEATURE>.<FEATURE_VALUE>.Value) afterwards: .FEATURE1 = (From features In...
  13. S

    Question Return value of a LINQ query

    Okay, I got the solution for the "btw. - problem": Dim str As String = "abc" Dim xmlOut As XElement = New XElement("node", str) xmlOut.Save("D:\newXMLfile.xml")
  14. S

    Question Return value of a LINQ query

    But my "subselect" isn't working :(. The solution with the "hard-coded" numbers ( .FEATURE1 = item.<SMS_BAR>.<SMS_BAR_FEATURE>(0).<FEATURE_VALUE>.Value _ ) isn't bad, but if the order / sequence of my XML file changes, this won't work anymore. Therefore I want these "subselects". It should...
  15. S

    Question Return value of a LINQ query

    Hi John, think I don't get it working... Instead of the line .FEATURE = (From features In item.<SMS_BAR> Where features.<SMS_BAR_FEATURE>.<FEATURE_NO>.Value Is "1" Select features.<SMS_BAR_FEATURE>.<FEATURE_VALUE>.Value) _ I can write the following - sure: .FEATURE1 =...
  16. S

    Question Return value of a LINQ query

    Hi John! Thanks for your help! Think the solution with the "Return result.ToList" is great! So I don't need to hand over a parameter... (And I also tried it with a ByVal parameter. I know that I should use this one as often as possible, but I thought I would need a ByRef parameter, because I...
  17. S

    Question Return value of a LINQ query

    Hi everybody! I'm new here and I'm not a native speaker, so please don't be to severe ;). My XML source file: <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?> <pricelist> <item> <item_no>123</item_no> <item_description> <description1>new item...
Back
Top