vb.net

Best Practices for handling Error Strings

In my vb.net application if I have a known set of Error Strings i.e. Failed because I don't know about it Failed because I know about it but I can't find it Failed for another reason etc And I get a response which I want to ensure doesn't have the error string in it If returnedString.equals("Failed because I don't know about it")...

Databinding an ArrayList to a ListBox in VB.NET?

Hello, I'm working in VB.NET I have an ArrayList named Invoices populated with objects of the class Invoice. I'd like to data bind this to a ListBox so that as the contents of the ArrayList are updated and changed the ListBox updates. I've implemented a .ToString function on the Invoice class, I just don't know how I'd go about bindi...

Mixing C# & VB In The Same Project

Can you mix vb and c# files in the same project for a class library? Is there some setting that makes it possible? I tried and none of the intellisense works quite right, although the background compiler seems to handle it well enough (aside from the fact that I, then, had 2 classes in the same namespace with the same name and it didn'...

How do I "kick-start" a jcl stream on the mainframe using FTP inside vb.net 2008

The following is the code that uploades a bytearray into a file DSN on our mainframe. It works very well. What I want to do is upload the jcl which should then start to execute. That's the part I am stuck on. I used to be able to do it through WININET, but I want to get away from that and use the better FTP commands in vb.net Pub...

Visual Basic Typing and Casting Question

I am new to developing with Visual Basic, but have lots of experience in C#/C/C++/JAVA/Haskell and a few others. Is there some reason I am maintaining code and finding code examples where the type declaration just seems lazy? I have seen countless Strings, that are only ever used as the String type, declared as an object. Before the o...

Unit test fails, tested code works!

I have a simple unit test which tests that a validation function picks up a specific validation issue. The validation item returns a simple object with Item & Message properties. I've written a unit test for this function but this always fails even though I know the function works as expected. <TestMethod()> Public Sub ContractNote_Vali...

PHP Encryption & VB.net Decryption

I'm trying to do a simple task. Encypt a value in PHP and Decrypt it in my VB.net app. I figure I'd use tripleDES or Rijdael 128 or 256 I though this should be simple. Can anyone point me in the right direction? Thank you ...

Convert vb.net byte to php

I have the following code in VB.net Dim bytIV() As Byte = {121, 241, 10, 1, 132, 74, 11, 39, 255, 91, 45, 78, 14, 211, 22, 62} I'm trying to convert it to php. $iv = array(121, 241, 10, 1, 132, 74, 11, 39, 255, 91, 45, 78, 14, 211, 22, 62); That doesn't work. The complete php code below: <?php $key = "lvvxmzmfrqeephxwmifw...

installing: adding icon to project?

i would like the installer to put an icon shortcut to my app created in vb.net. how do i do this? i am using click once edit: i am using visual basic express 2008. perhaps it is not possible to add the icon to desktop using the built in installer? ...

Simple Databinding... PropertyManager does not have a refresh method?

Hi, I've setup data binding in VB.NET as follows with an Address business object and a Textbox. My issue is when I use AddressObjectInstance.Name = "Bob" the text box will update while if I do AddressObjectInstance = AnotherAddressObject the text field does not update. How do I force them to update properly? My Address Object: ...

Radgrid and RadFormDecorator

Guys, I have an ASP.NET application using the Telerik Q1 2009 controls. I have a masterpage, which has a FormDecorator control in the master page. In my ASPX page, I have a RadGrid, with the following definition: <telerik:RadGrid ID="gridExclusions" runat="server" AllowPaging="True" AllowSorting="True" ...

Create custom chrome for a windows form in vb.net using Visual Basic 2008 express

How do you create custom chrome for a windows form in vb.net using Visual Basic 2008 express? I want to basically scrap what they give and start fresh, is there any way to do so easily? Thanks for the help! Surprisingly, google searches have failed me. ...

Conversion problem from C# to VB.NET

http://wiki.team-mediaportal.com/MediaPortal1%5FDevelopment/PluginDevelopersGuide#Appendix%5FA:%5Fcomplete%5Fsource%5Fcode%5Fof%5Fthe%5Fplugin Trying to translate the first "test"-code to VB.NET and it doesn't work. It compiles alright, but won't work as planned. I would guess it has something to do with the "Implements"-statement or s...

How I can make Start Page for My Application Like Visual studio

Hi, everyone know the start page of Visual studio it seems to be a web page, how I can make like it in my applications? Edit, Add more details: let us say that I want to show the recently opened forms or the Tip of this day, who I can do that, where to store the data and how to generate the HTML file? ...

Intercepting combobox dropdown

Urgh, I have spent the last couple of hours on this now. I normally end up finding the answer from a bit of Googling, but not with this one. Bit of a headache. My questions: How can I catch when a user clicks the dropdown arrow on a combobox and prevent the dropdown list from being displayed. How can I then clear and populate the dr...

Best way to get the first digit from an integer of varying length in VB.NET

I am a newbie to programming and need some help with the basics. I have a function which takes in an integer value. I want to be able to grab the first digit (or the first and second digits in some cases) of this integer and do something with it. What is the best way in VB.NET to get the first digit of an integer (or the first and seco...

How to Add Smart Tags to my .net component?

look at the following picture, which showing smart tag for DataGridView Now I'm creating new component and I want it to support showing some properties in Smart Tags, how to add the properties to the smart Tag? ...

Directory as a bucket for a clickonce application

My application works great in debug mode but crashes after deplying it on localhost (for testing purposes) And the error message indicates that the path is invalid... And the first thing i don't get is why the directory is invalid.. I read it with: Application.StartupPath & "\Images\" C:\Documents and Settings\george\Local Settings\A...

Free ribbon control for vb.net

Hi, I was wondering if there were any free ribbon controls for vb.net, and if there are not, how I could go about making my own. I don't want to pay $300 or more for a professional one...and I would really like to add one to my project. What would be the best solution for finding/making one? Here is my google search I tried, I could on...

How can I pass the value of a control in a datalist to JavaScript?

I have a datalist like this: <asp:DataList ID="dl" runat="server" Width="301px" onitemcommand="dl_ItemCommand"> <ItemTemplate> <table style="border:solid 1 #CCCCCC" > <tr align="left"> <td align="left"> <img id="imgPhoto" runat="server" alt="Company Logo" ...