Results 1 to 10 of 10

Thread: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    7

    Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    Any C# guru (perhaps just an experienced vb.net developer) interested in helping to get this really cool Outlook Sidebar Control to work in vb.net?

    May be an easy fix! ???

    http://www.codeproject.com/cs/menu/O...42&msg=1744742


    Hi all,

    Thanks for the time you're spending to read this post.

    I'm a novice in vb.net 2005 Express.

    With No experience in c# Express.

    I've attempted to get this really cool and simple Outlook Sidebar Control to work in vb.net
    but can't get it to save certain properties properly:

    Enabled, Image, Tag, and Text
    ie.
    'Enabled' is already declared as 'Private Dim enabled As Boolean' in this class.
    ' Image' is already declared as 'Protected Dim image As System.Drawing.Image' in this class.
    etc.

    I'm hoping its just a quick fix in C# for a C# guru to get the control to work properly in vb.net.

    For a vb.net guru (perhaps just an experience vb.net developer):
    I've also already converted the code to vb.net (I think).
    But, again, being a novice I'm out of my depth.

    The attached code is as far as I got.
    The attached error list is where I start to go under.

    Again I'm using vb.net 2005 Express.
    Which I'm finding very flaky.
    Especially when moving documents around to different folders in the Project Explorer.
    And when changing data types for fields in SQL Server 2005 Express.
    Not only does it fail but saves the code in a manner that can't recover some documents.
    Regretably vb.net 2005 Express does NOT come with Source Safe which I miss very much.
    So I have to backup the project and data very often.
    And have to recover just as often.

    Perhaps vb.net 2005 would give a different result.

    I've also downloaded and installed the Create New Project type -
    "Windows Control Library"
    that was missing in vb.net 2005 Express.
    The errors are the same.

    I hope this is enough info to peak someone's interest
    and not too much to chase others off.

    If anyone is interested and needs more info just let me know.
    Of if anyone can tell me its not even close or not worth it,
    I'm happy to drop the vb.net conversion.

    Any help or any positive constructive suggestions would be greatly appreciated.

    Thanks again.
    Last edited by BarrySumpter; Nov 7th, 2006 at 02:22 AM.

  2. #2
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    710

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    I produced a VB.NET version with our Instant VB converter. I made the necessary adjustments to get it to compile, but I have no time to test the control. I attempted to attach it here, but the 'Manage Attachments' button doesn't work for me.
    David Anton
    Convert between VB, C#, C++, & Java
    www.tangiblesoftwaresolutions.com

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    7

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    Hi David,

    Thanks for the input.

    I've sent you a private email with my direct email address.

    Please feel free to post the entire project directly if and when you can find the time.

    I'll attach it to a reply here.

    Then see what I can do from there.

    Thanks again ...

    baz
    Last edited by BarrySumpter; Nov 2nd, 2006 at 04:16 AM.

  4. #4
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    710

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    Here's the zip file for the VB version of the project (on a different machine, the 'managed attachments' upload works).
    As I mentioned, it compiles, but I haven't tested, so I can't guarantee that it works identically.
    Attached Files Attached Files
    David Anton
    Convert between VB, C#, C++, & Java
    www.tangiblesoftwaresolutions.com

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    7

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    Absolute Champion !!!

  6. #6

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    7

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    As noted: Dave Anton from Tangible Software Solutions used their Instant VB converter - c# to VB on the full project and has left the full project zip file on the post above.

    Dave has also hand edited the code to get it to compile.

    At the moment its stil producing the same errors as the c# version when used in vb.net.
    I'm using vb.net 2005 express can anyone confirm this is happening in vb.net 2005 as well?

    I’ve chased the issue down as far as a vb.net novice can to:


    VB Code:
    1. <DesignerSerializationVisibility(DesignerSerializationVisibility.Visibl e)>
    2.  
    3. Where .content and .hidden DO NOT produce the commands but Visible does.
    4.  
    5. But, of couse, we need the commands:
    6. 'OutlookBarButton1.Tag = Nothing
    7. 'OutlookBarButton1.Text = "Test"
    8. including Enabled and Image
    9.  
    10.  
    11. As you can see below the (Me.) qualifier has been dropped from the properties giving the errors.
    12.  
    13. Me.OutlookBar1.AutoSize = True
    14. Me.OutlookBar1.BackColor = System.Drawing.SystemColors.Highlight
    15. Me.OutlookBar1.ButtonHeight = 30
    16.  
    17. OutlookBarButton1.Tag = Nothing
    18. OutlookBarButton1.Text = "Test"
    19.  
    20. Me.OutlookBar1.Buttons.Add(OutlookBarButton1)
    21. Me.OutlookBar1.Cursor = System.Windows.Forms.Cursors.Hand
    22. Me.OutlookBar1.Dock = System.Windows.Forms.DockStyle.Fill
    23.  
    24.  
    25. Which is produced (I believe) from:
    26.  
    27. <Browsable(True)> _
    28. <Description("Indicates whether the button is enabled")> _
    29. <Category("Behavior")> _
    30. <DesignerSerializationVisibility(DesignerSerializationVisibility.Visibl e)> _
    31. Public Property Enabled() As Boolean
    32. Get
    33. Return m_enabled
    34. End Get
    35. Set(ByVal value As Boolean)
    36. m_enabled = value
    37. End Set
    38. End Property
    39.  
    40. Protected m_image As Image = Nothing
    41. <Browsable(True)> _
    42. <Description("The image that will be displayed on the button")> _
    43. <Category("Data")> _
    44. <DesignerSerializationVisibility(DesignerSerializationVisibility.Visibl e)> _
    45. Public Property Image() As Image
    46. Get
    47. Return m_image
    48. End Get
    49. Set(ByVal value As Image)
    50. m_image = value
    51. m_parent.Invalidate()
    52. End Set
    53. End Property
    54.  
    55. Protected m_tag As Object = Nothing
    56. <DesignerSerializationVisibility(DesignerSerializationVisibility.Visibl e)> _
    57. <Browsable(True)> _
    58. <Description("User-defined data to be associated with the button")> _
    59. <Category("Appearance")> _
    60. Public Property Tag() As Object
    61. Get
    62. Return m_tag
    63. End Get
    64. Set(ByVal value As Object)
    65. m_tag = value
    66. End Set
    67. End Property
    68. Protected m_text As String
    69. <DesignerSerializationVisibility(DesignerSerializationVisibility.Visibl e)> _
    70. <Browsable(True)> _
    71. <Description("The text that will be displayed on the button")> _
    72. <Category("Appearance")> _
    73. Public Property Text() As String
    74. Get
    75. Return m_text
    76. End Get
    77. Set(ByVal value As String)
    78. m_text = value
    79. m_parent.Invalidate()
    80. End Set
    81. End Property


    Perhaps its something to do with the collection editor?

    Any positive contructive assistance directly related to this issues would be greatly appreciated.

    Thanks to all for their participation.

    All the best,
    Barry G. Sumpter
    Last edited by RobDog888; Nov 2nd, 2006 at 08:16 PM. Reason: added [vbcode] tags

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    I edited your post to include the "[Highlight=VB]" tags for formatting vb code.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    7

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    Ahh, so its vbcode and not just code.
    Excellent!
    Thanks for that.
    The post reads so much better now.

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?

    Well, actually it works with both but the tag identifiers are the square brackets and not the "< >" signs
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    7

    Re: Any C# guru interested in helping with Outlook Sidebar Control to work in vb.net?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width