vb.net

Free .NET Diagramming Control (like Nevron Diagrams)

Can anyone suggest a free (or very very cheap) alternative to Nevron Diagrams? I was playing with Open Diagram which is open source but it's very poorly documented and their forum is dead. ...

Problems passing properties into UserControl Asp.Net

I'm trying to create a UserControl in ASP.NET to display news items based on two values that are passed in, NewsTag and ItemLimit. The problem is that the SQLdatasource is not picking up the properties in SqlDataSource1_Init. Instead the calls to the properties are empty when this is called but after render have values. <script runat="s...

making Transparent, unclickable areas in a userControl/pictureBox

hello. I have a userControl with a picturebox in it. I need the areas of the userControl to be transparent and unclickable on the main form. After some searching Ive come up with this. http://msdn.microsoft.com/en-us/library/aa235175(VS.60).aspx but it doesn't seem to work. I have it set up so the usercontrol can be drag-and-dropped. bu...

How can I make this function not generate a "doesn't return a value on all paths" warning?

I realize this is a very specific question, and not very helpful outside of this scenario, although I am sure it applies to other questions with the same problem. I have a function to recursively search through windows (and their child windows) to find specific ones, it works exactly as expected, however it causes "function doesn't retur...

hooking another program's calls to winapi functions in vb.net

I have been trying to build a game bot in vb.net. One of the main problems is getting access to the text the game prints on the screen so I have been trying to hook the games calls to the windows api drawtext and textout functions. I have been hunting for examples of how to set up a hook in vb.net for a long time without any luck. I h...

Read xml nodes values from web service

I am trying to read xml nodes values from lastfm web service that look like this: <lfm status="ok"> <results for="stinkfist" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"&gt; <opensearch:Query role="request" searchTerms="stinkfist" startPage="1" /> <opensearch:totalResults>188</opensearch:totalResults> <opensearch:startInd...

Create strings on the fly using VB.NET

I'm trying to create a number of strings based on one long string that i'm passing. Basically this is an example of my long string StrMain = AL123456 - PR123456 - RD123456 - LO123456 So in this case I want to create 4 separate strings. Str1 = AL123456 Str2 = PR123456 Str3 = RD123456 Str4 = LO123456 But there isn't always that man...

BeginInvoke using a Function?

Hi all, This sub works fine: Private Sub UpdateInfo(ByVal text As String, ByVal timeStamp As DateTime) If Me.lstStatus.Dispatcher.Thread Is System.Threading.Thread.CurrentThread Then ' Do stuff with Else Me.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Send, New Action(Of String, DateTime)(...

Converting Gridview into CSV

Is this possible to take delimeter other than comma for converting into CSV file....because in my scenario my gridview cell contains data with commas. ...

ASP.net VB - Trim/Replace problem

Hi I am trying to remove all spaces from a text field when a form is submitted so that the contents of the post code field match those in a database... If drSet5c.Tables(0).Rows(0).Item("post_code") = UCase(Replace(tbPostcode.Text, " ","")) Then response.write("Postcodes match") Else response.write("Postcodes DON'T match") End ...

Quicker way to loop through LINQ data

I am writing code that pulls data from database tables and writes them to an XML file (to be picked up by another process). There are bout 60,000 records, and each record can have multiple entites, i.e. a member can have several contacts, each contact can have several phone numbers, etc. The entire process takes several hours, and I've n...

How to show a form's custom property at design time?

I have a form where I have created a custom property, DataEntryRole, and set its Browsable attribute to True, as shown: <Browsable(True)> _ Public Property DataEntryRole() As UserRole.PossibleRoles Get Return mDataEntryRole End Get Set(ByVal value As UserRole.PossibleRoles) mDataEntryRole = value End Set ...

How to determine if an object is a DateTime in VB.NET

The following works fine in c# (assuming value is an object): if (value is DateTime) What is the equivalent check for VB.NET? ...

Export Image with pixelformat 16bpp4444

Hi, I'm trying to let the user import an image in my windows application, in any pixelformat, but i need to save the image in 16bpp4444 format, and that is not an option for pixelformat in .Net imaging class. Any ideas on how to do this? Thanks! ...

Actually im developing a vb .net desktop app that needs to restore a database using a .bak How to do that?

Im getting this: "Exclusive access could not be obtained because the database is in use. RESTORE DATABASE is terminating abnormally." First the message told me i must connect to master db to execute the restore but i change it and i got the message above. The parametrized sql statement im using is : cmd.CommandText = "RESTORE DATABAS...

Parse text file and create an excel report

Hello, My application is supposed to parse a text file (relatively easy) and create an excel spreadsheet report. Should I write a stand alone VB.NET application that saves the excel file, or should I use VSTO? I am unsure if there are any differences in terms of ease of development, usability issues, API functions available, etc. Are...

HTML Agility Pack & VB.NET

There's plenty of examples out there for other languages. Are there any examples for vb.net? ...

Adding x:Name to a user control gives error in generated code of page its used in.

I am basically using a user control for the first time, so hopefully it's just a dumb mistake. I have a simple user control <UserControl x:Class="TestProject.WebApp.myUserControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas....

How to make a "System Modal Dialog" in C#

I want to make My form "SYSTEM MODAL DIALOG" as in windowsXP "TURN OFF Dialog" so no operation can be made on window except in my form in C# ...

Finding the Index of Characters in a String

I have a text file that is automatically generated by an older computer system daily. Unfortunately, the columns in this file are not delimited and they are not exactly fixed width (each day the width of each column could change depending on the amount of chars of the data in each column). The file does have column headings, so I want...