Search results for query: *

  1. G

    GetIfTable API function

    GetIfTable declaration jmcilhinney, Thanks for reply. The problem was in GetIfTable function declaration: First parameter should be passed ByVal, not ByRef. Thanks, Greg
  2. G

    GetIfTable API function

    Hi All, I'm trying to convert VB6 code using IPHelper APIs into VB.NET(VS 2005). The problem I have: GetIfTable function returns error code 87 - "Invalid parameter" when I call it second time. Any ideas on usage of GetIfTable in VB.NET? Thanks, Greg
  3. G

    IPHelper

    Hi All, Question: Is there any method to change computer network adapter's Admin Status (toggle it Up/Down) in System.Net namespace? Or just IPHelper APIs? Thanks, Greg
  4. G

    Catch data from Serial Port

    ComPort Class in VB.NET 2005 See VS 2005 help: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbalr/html/244ede4e-25b7-445b-9fd6-163550cce193.htm The My.Computer.Ports object provides a straightforward entry point for accessing the .NET Framework serial port class,
  5. G

    Format of time value

    Time formatting Try following: txtTime.Text = Format(rs.Fields ("tijd").Value, "h:mm") where recordset rs contains the table you want to display. Regards, Greg
  6. G

    string to xml

    XML Document See System.Xml.XMLDocument class: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref19/html/T_System_Xml_XmlDocument.htm " This class implements the W3C Document Object Model (DOM) Level 1 Core and the Core DOM Level 2. The DOM is an in-memory (cache) tree representation...
  7. G

    read only check box

    ReadOnly checkbox If you set CheckBox.Enabled = False it will be greyed out and its text will be hard to read. I'd suggest to set its Checked property to desired value on _Click event. For example, if you want to keep it checked regardless of user actions use the following code: Private Sub...
  8. G

    System Menu

    Hi All, Is there any way for Windows System Menu manipulations in VB.NET other than API functions call? In particular, I'd like to delete/rename 'Close' menu item. If only API - Is there any changes in API declaration (Long -> Integer, and so on)? Thanks for any hint. Greg
  9. G

    OrderedDictionary

    CaseInsensitiveComparer Thanks alot! I didn't expect so complicated solution in comparison with good old VB6: Dim dict As New Scripting.Dictionary dict.CompareMode = TextCompare That's it! Greg
  10. G

    OrderedDictionary

    CaseInsensitiveComparer On this declaration I got the following exception: Unable to cast object of type 'System.Collections.CaseInsensitiveComparer' to type 'System.Collections.IEqualityComparer'. Thanks, Greg
  11. G

    OrderedDictionary

    How to set CaseInsensitiveComparer for OrderedDictionary? Thanks, Greg
Back
Top