vb

Styling VB.net Form With CSS & HTML?

Hello, I am wondering if it is possible to style my VB.net application with CSS and HTML. So far all I can do is apply a windows based theme. Any help would be really appreciated!! ...

System.Configuration.ConfigurationSection not available under a class library

I'm migrating a piece of functionality from my App_Code directory to a separate project that's going to build a class library to be referenced by my web app. One of my classes in the App_Code piece inherits form System.Configuration.ConfigurationSection, like so: Imports System.Configuration Imports System.Web.Configuration Imports Mic...

Visual Basic label

If i have information (for example a name) in a label on a form in Visual Basic, how do I save this information in a .txt file? Thanks ...

I need to consume an ocx for voice recording and playblack

Hi. The current ocx controls I'm using for voice recording and playback are not compatible with Windows 7. I'm already feeling the pressure to produce a Windows 7 compatible version of my software. The author has already stated that he is not planning to write a Windows 7 compatible ocx. I work from xharbour so I need to consume an...

Displaying "Google like" search results

Working in ASP.NET (VB), I am trying to develop a simple search results page for my website. The process is as follows: (1) The site's user enters a search phrase; (2) The search results page searches the site's database, returns the page title as a link, and a short snippet from each search "hit", with the search phrase highlighted...

Problem using OLEDBCOMMANDBUILDER.

So, here it goes: I need to copy data from table in access database, in another table from another access database. Column names from tables are the same, except the fact that the FROM table has 5 columns, the TO table has 6. here is my code: dsFrom.Clear() dsTO.Clear() daFrom = Nothing daTO = Nothing conn_string1 = "Prov...

Help, Visual Basic 2010 express wont install!

When i try to install visual basic 2010 express it downloads it and then installs it, next to all the installs i get all green ticks, but then it says setup failure, did not attempt to install Visual basic 2010 express - ENU. Help! ...

Outlook 2007 Script that sends new form email when a message is dragged and dropped into a folder

Is it possible to write a script that will allow Outlook to automatically send out a new email to a distribution list when you drag and drop and previously opened email into a specified folder? The rules only let you apply them to received and sent messages. They do not allow you to apply it to anything that is dragged and dropped after...

FtpFindFirstFile and Hidden Files?

Is it possible to get a list of hidden files over an FTP server using FtpFindFirstFile? I can get all files aside from hidden ones. I am wondering if there is a flag I need to set, or if there is just no way using that function. hFindConnect = InternetConnect(hInternet, mHost, INTERNET_DEFAULT_FTP_PORT, mUsername, mPassword, INTERNET_S...

The type initializer for "projData.projDataModule" threw an exception.

In visual basic, when in the "frmMain Events: Load", I get the following error The type initializer for 'projData.projDataModule' threw an exception. when running the code: var = 180 "var" is defined in projDataModule as Module projDataModule Public var As Double End Module When I rebuild the solution, It says "0 errors, 0 ...

Syntax error converting the nvarchar value to a column of data type int.

I have 1,2,3,4,5,6,7,8,9 stored as nvarchar inside Level in my db. I then have a dropdownlist with values 1,2,3,4,5,6,7,8,9. When a user makes a selection (i.e 1) (Level.SelectedValue.ToString). This builds an sql query via a param like this: "Select things From MBA_EOI Where level = 1" When I run the select I get the following erro...

.NET Process.Kill() in a safe way

I'm controlling a creaky old FORTRAN simulator from a VB.NET GUI, using redirected I/O to communicate with the simulator executable. The GUI pops up a "status" window with a progress bar, estimated time, and a "STOP" button (Button_Stop). Now, I want the Button_Stop to terminate the simulator process immediately. The obvious way to do t...

How do I read the AssemblyFileVersion of a C# DLL from Visual Basic?

I am invoking a C# object from a Visual Basic 6.0 sub routine (don't ask). How do I get the AssemblyFileVersion from Visual Basic? ...

show a bold font in asp.net mvc

Hi, I have a textarea and I put in a word or words in bold es. Eat and then view the frmattato can you tell me how to make mvc asp.nt? Thanks ...

VBA, inline array

Looking to create an inline array in Visual Basic for Applications Something like this would be cool Dim a() as Integer set a = {1,2,3} In Java, this would be the equivilant functionality int a[] = {1,2,3}; Also, bonus points if you can tell me how to find its length afterwards (without needing to hard code it, as all the example...

Most Frequent Number

Hello, I've used an array of strings to populate a DataGridView. How do I go about finding the most frequently occurring number? Or, even better, order them by most frequently occuring? Thank You. ...

Access Error 3443: Unrecognized database format 'databasename.mdb'

What could be the cause of the above error when trying to use an MDB file from a VB app? The access version of the MDB file is 6.68. I have a feeling this might have been caused by someone trying to open the .mdb file from a newer version of Access and it may have corrupted the MDB. How can this problem be solved? ...

Copy text from website.

So, I've been saving a .txt file from a website and using... My.Computer.FileSystem.ReadAllText() To put it into a string. But I figured it'd be more efficient to just grab it directly. How do I go about this? Thank you. ...

Black Line appears after adding second form to a VB .NET page!?

I have a page created from a master page. the master page has a form tag which contains the contents on the body tag and then i have a form on the page created from the master to handle uploading a file: Master: <form id="form1" runat="server"> page content here <asp:contentplaceholder id="ContentPlaceHolder1" runat="server"> </asp...

C# COM objects with VB6/asp error

I'm trying to expose a C# class library via COM so that I can use it in a classic asp web site. I've used sn - k, regasm and gacutil. About all I can do now though is echo back strings. Methods which take Class variables as input are not working for me. ie my test method EchoPerson(Person p) which returns a string of the first and la...