vb.net

Receive a Jagged Array in VBA (VB6)

I currently have a VB.NET dll that returns a jagged array of double. This is the declaration: Public Function CalcMatching(ByRef dataArray1 As Object, ByRef dataLen1 As Integer, ByRef dataArray2 As Object, ByRef dataLen2 As Integer, ByRef matchingType As String) As Double()() It works well inside VB.NET, but when I insert it...

NotifyIcon not firing double-click event

I have a double click event for a notify icon that will bring up my main form. The double click event isnt firing. Even if I put a breakpoint in the code it never gets executed. Here is what I have so far: Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As FormClosingEventArgs) Handles Me.FormClosing Me.WindowState =...

getting dll library functions in vb.net

i have a dll library but i am not fimiliar to it........but i know where to use it....but how can i get its usage commands in vb.net ...

WPF definition of FontSize

I know that in WPF, FontSize = 1/96 of an inch (same as 1 pixel I think). Is the FontSize dimension the height, the width, or diagonal size of a character? I would guess it's the font height, but the Microsoft documentation doesn't really indicate what it is. Also, is there an easy way to get the height and width of a font size? Answ...

HtmlElement from a WebBrowser object strips double quotes from HTML

I am grabbing an HTMLElement from a browser object and then using getElementById to grab the element I want. When the element is grabbed into the HtmlElement object double quotes around attributes like <input type="checkbox" name="test1" /> becomes <input type=checkbox name=test1>. It is removing the double quotes and backslash from th...

iterating a list with ForEach

I have a list like this Dim emailList as new List(Of String) emailList.Add("[email protected]") emailList.Add("[email protected]") emaillist.Add("[email protected]") How can I iterate the list with ForEach to get one string with the emails like this [email protected];[email protected];[email protected] ...

Appending Strings And Link Buttons Together

Can someone help me accomplish the following..... I want to create a function that will make a treeView out of link buttons. Then I want to tie all the link buttons to one click event. So each time the user does somethingI will append the users name to the current linkbuttons if the user clicks one of the link buttons a click event is ra...

How to allow installation in a custom target directory and suppress auto-start

Hi, I've developed a VB.NET console application and tried to use the Build | Publish menu option in Visual Studio 2008 to create a Setup. It works fine except two things: - when I run the Setup on a Windows 2003 Server, it installs the application in the C:\Winnt\profiles\\Local Settings\Apps\2.0 directory. How can I configure the setup...

Why are array initializers only allowed for arrays?

This does not compile. Dim Tom As New List(Of String) = {"Tom", "Tom2"} This does Dim Tom As String() = {"Tom", "Tom2"} IMO this features should be allowed for all collection types and not only arrays. ...

How to check if label in VB.net (VS2008) has multiple lines?

Hi, I have a method that saves form controls data to a text file, including its text. IF a label has multiple lines, this breaks the text file writing multiple lines to it. I was instructed to simply ignore multiple-line labels and don't include it in the file, but I don't know how to check whether or not a label has can multiple line...

Is there a free implementation of printf for .net?

The problems: I can't use string.Format, I have C style format strings; I can't call the native printf (no P/Invoke); I can't use http://www.codeproject.com/KB/printing/PrintfImplementationinCS.aspx because of the license, I need something GPL-compatible. Is there a free implementation of printf/sprintf for the .net framework? Other ...

stopping and starting for each loop array in visual basic

i have a for each loop i.e For Each dgvRow In boutgrid.Rows file = dgvRow.Cells("FileName").Value AxWindowsMediaPlayer1.url = file AxWindowsMediaPlayer1.Ctlcontrols.play() Next if want that the loop stops while the player play a file until finished playback ...

How to get all forms in a VB.net (VS08) project in an array?

Alright, so I need a method that traverses all the forms inside a VB.net project under Visual Studio 2008, and create an array of type form with references to all the forms inside it, so that the array looks like this (pseudocode) FormsArray() = [Form1, Form2, Form3, Form4] However, I don't have a clue as to how to begin. Any help? T...

How to use Eval in codebehind to set Page.Title

I have a SQLDataSource that is bound to a ListView control but I want to place parts of the bound record into the HTML TITLE attribute. Here is my codebehind file that I want to change so it can use Eval to construct a dynamic TITLE based on the data content: Public Partial Class zShowAd Inherits System.Web.UI.Page Protected Sub Pa...

.Net Dynamically Load DLL

I am trying to write some code that will allow me to dynamically load DLLs into my application, depending on an application setting. The idea is that the database to be accessed is set in the application settings and then this loads the appropriate DLL and assigns it to an instance of an interface for my application to access. This is m...

Using DockPanel Suite's XML saving with My.Settings

In vb.net, how can I use SaveAsXML and LoadFromXML (DockPanel Suite functions) with My.Settings? I know there is a way to save it to a stream, but I don't know enough about System.IO to do this. DockPanel Suite: http://sourceforge.net/projects/dockpanelsuite/ I would very much prefer to store configuration using My.Settings instead of ...

Using JSON.NET to parse JSON generated through PHP

Hello Everyone, I'm sure this has been asked before but I'm not finding quite the information I'm needing so I thought I'd post this. I've written a PHP script that returns a simple JSON object that looks like this: {"status":"success","level":"admin"} I'm doing a standard web request that submits the required data to the script over...

adding all swf files from dir to player in vb

how can i add all swf files from dir to player in vb by just selecting directory....and play it in shockwave flash player in vb....... i have tested a swf file and it is working fine now how can i achieve the above target ...

Get content from cell

Hi! I have UltraGrid and i need when i click on grid row to get content from specific column of that grid. For example if I click in cell of fourth column then i need to get value of first column of the same row where i clicked. Thanks! ...

How do I implement IDictionary(Of TKey, TValue) in VB?

I want to create an implementation of the IDictionary(Of TKey, TValue) interface to provide some wrapper functionality. Public Class ExtendedDictionary(Of TKey, TValue) Implements IDictionary(Of TKey, TValue) Private _Dictionary As Dictionary(Of TKey, TValue) Public Sub Add(ByVal key As TKey, ByVal value As T) Implements I...