vb.net

Does VisualBasic support WSDL2.0?

I'm developing a new SOA system right now, and would like to use WSDL2.0, but I heard some clients are still connect using VisualBasic and WSDL1.1 (mostly from excel sheets and stuff). So I was wondering if VisualBasic also supports WSDL2.0, or if it's all 1.1 I know WSDL2.0 will work with C#,Java,and most other typical application prog...

When working with process' memory, is there a reason to use uint instead of int?

I mean, from what I understand an int(Int32) will go from -2,147,483,648 to 2,147,483,647. If I recall correctly, every program under windows on 32bits will behave as it has 2gb of ram, so I'd say i can put any address "inside" an int32. Is that true? Or should I stick to uint? I know uint is only for positive integers, and that all memo...

Using reflection for generically typed delegate and interfaces

Hi, I have a bunch of classes that each have a property called Sequence. This property is implemented from an interface called ISequenced. For this example lets call one of these classes A. When I have a List(of A), I want to be able to sort them using the standard List.Sort(addressof delegate) where the delegate is a standard function ...

Disable F10 from activating window menu in WPF

I'm trying to figure out a way to prevent F10 from activating the window menu (same function as pressing 'alt') and fire keydown/previewkeydown instead. I know there are ways to do it using window.forms, but I'm using WPF on VB.net and I can't seem to find a method that would apply. ...

export to csv using vb.net

Dear Friend Below is my export to csv from listview using vb.net Function ExportListview2CSV(ByVal lstview As ListView) As Boolean Dim saveFileDialog1 As New SaveFileDialog() Dim csvFileContents As New System.Text.StringBuilder Dim CurrLine As String = String.Empty saveFileDialog1.Filter = "CSV|*.csv" ...

LLBLGen Pro: How to evaluate an EntityField for a given String

I have an LLBLGen Pro project which has generated VB.Net 2.0 Self Servicing code. I have a function to return a list of custom structures based on a search using the generated code. I would like to supply a Dictionary of FieldNames and Values to this function and for each one add a new Predicate Expression to the search. How can I che...

remove last two string char!

The following code: If checkboxList.Items(i).Selected Then .Fields("DESC1").Value += checkboxList.Items(i).Text + ", " End If should produce output such as "A, B, C,(space)", which will then be bound to a dynamically created GridView. I would like to remove the last two-char string, that is ",(space)". How can I do this? ...

Center subitem Icon in ListView

I would like to center the icon in one of my columns. The way I currently add icons is by calling the AddIconToSubitem method after the row has been created. How would I modify my custom control to also center the icon? Thanks Public Class ListViewSubIcons : Inherits System.Windows.Forms.ListView Public Declare Function SendMes...

How to convert delegate from c# to vb.net?

I have this code i'm trying to convert from C# to VB.net: public object Invoke(object instance, object[] inputs, out object[] outputs) { // Create a new, STA thread object[] staOutputs = null; object retval = null; Thread thread = new Thread( delegate(){ ...

Overloads vs generic arguments

I have a question. In the framework, that was largely written before the generics came, you often see a function with lots of overloads to do something with different types. a) Parse(int data) Parse(long data) Parse(string data) ..etc That seems to be to be ok as it helps keeping code small for each method and so. On the other hand, ...

How do I tell which tab you are moving from/to in a .NET tab control?

I need to determine which tab the user is coming from, and going to, when they switch tabs, and possibly cancel the switch. I have tried the Deselecting, Deselected, Selecting, Selected events, and all of them show the e.TabPageIndex to be the same as the sender.SelectedIndex. Is there an event, or property, that I can use so that I ca...

What is the best reference material on WPF custom controls

I currently do all development work in VB.NET 2008, winforms; but within 18 months will be switching to WPF (for better or worse). I have had great success using Matthew MacDonald's "Pro .NET 2.0 Windows Forms and Custom Controls in VB 2005" book. This is an excellent reference focused entirely on the development of custom controls in ...

Visual Studio keeps pegging the CPU for Intellisense as I type

Why would Visual Studio all of a sudden start using tons of CPU as it tries to implement Intellisense? I happen to be working with LINQ queries in VB.NET, but no idea if that's related or not. I've tried closing and reopening VS, but that has no effect. I'm not sure what else it might be related to, which makes researching it difficult a...

how to generate a pdf file with VB.net?

i would like to generate a very simple report with some images and text and i am wondering if there is a way to generate a pdf file with vb.net? ...

displaying a pdf on a windows form?

in vb.net is it possible to display a pdf file on a form? ...

how do i get microsoftreportviewer on my winform?

i am trying to put a pdf file on my form using microsoft report viewer, but i cannot find it. where is it? ...

Bitwise Property Values in Designer

I have an abstract user control(baseModule) that has a property that I plan on using a bitwise comparison on to determine what export types are supported by that module. In the designer of a module derived from baseModule, I am presented with a combobox with the ability to just select a single value (Html, Xml, etc.) I would like to be...

C# Linq to VB.NET (not a From In Where ... query style)

How would I convert this kind of expression in VB.NET? I'm stomped! bool exists=repo.Exists<Post>(x=>x.Title=="My Title"); This is from the SubSonic docs here: http://subsonicproject.com/docs/Using_SimpleRepository Thanks in advance! ...

difference between microsoft report viewer and adobe pdf reader tools?

i would like to display a pdf on my winform and am thinking of using of those tools in my vb.net application. does anyone know the difference between the two? ...

PHP equivalent of VB.net character codes

Hi, So I am calling an API written in VB.NET from PHP and passing it some text. I want to insert into that text two linebreaks. I understand that in VB.NET, the character codes for a linebreak are Chr(10) and Chr(13). How can I represent those in PHP? TIA. ...