vb

vb2005 crystal reports : Name 'CrystalReportViewer1' is not declared error

I'm running through this tutorial found here: http://vb.net-informations.com/crystal-report/vb.net_crystal_report_from_multiple_tables.htm which teaches how to pass a parameter text field on a vb form to an embedded Crystal Report in visual studio. I've followed it all the way through however when I attempt to build, I received the ...

How to create excel add-in (excel 2003 or previous version) package with activeX dll?

Hi, guys, I am new to excel add-in prgramming and I am having a existing excel add-in project need to modify. The plug-in has 2 parts, one is programmed in VB and compiled into a ActiveX DLL file, the other part is inside the excel as an add-in. I already modified the source code of the DLL and recompiled a new DLL, but I don't know w...

Encrypting a file with RSA in Visual Basic .NET

I'm just getting started with Visual Basic .NET and I'm currently stuck on the following problem: how can I encrypt/decrypt a file with asymmetric encryption? Essentially, I'm trying to figure out how I can write the following pseudocode in VB: Function EncryptFile(path_to_file_to_encrypt, public_key) file = ReadFile(path_to_file_to_...

VB 2008 - Extracting data from website question

Having more problems coming up with some code for my hwk. All I've been able to do is create the form. We have to get information off of a website and load certain information back into the textboxes on our form. I need a push in the right direction if someone could help. Assignment 6 – Text Parsing Many applications require you to ex...

Good tutorial for Visual basic 6?

Hello I am C++ programmer and I need to make some changes to VB6 code. And I am looking for a good VB6 tutorial to get started. Thanks a lot . ...

How to call a Public Sub function of a window from another Window

I have A Wpf window with a Public Sub function(Window1). I need to execute that function from another window. Something like this: Private Sub Window2_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Window1.Loaded Dim Window1 As New Window 1 Window1.function() End Sub I'm very new to wpf. Ple...

Excel VBA 424 Object Required Runtime Error

As an exercise, I'm trying to set all the values in the range A1:V35 to "omg". The following code produces an error: Sub ktr() Dim colIndex As Integer Dim rowIndex As Integer Dim dataRange As Range Set dataRange = Range("A1:V35") Cells(1, 1) = dataRange.Columns.Count For colIndex = 1 To dataRange.Columns.Cou...

How can I get the current user's SID in VB6?

I have some old code that we have to maintain in VB6. We need to add the ability for it to look up the current user's SID. Can anyone point me to some code that shows how to do that? Thanks in advance for your help! ...

how to pass a null value to a rdoQuery.rdoParameter in VisualBasic 5

I have a visual basic 5 project, using Microsfot Remote Data Object 2.0 I have the following code: Set ps = grdoCon.CreateQuery("Resolucion_ValidaCorrelatividad", SQL) ps(0).Direction = rdParamReturnValue ps(1).Direction = rdParamInput ps.rdoParameters(1) = vbNull ps.Execute it gives me the following error: (40002) 22005: [Micr...

visusal studio embedded crystal report keeps prompting database login?

I'm using visual studio 2005 to develop a form with a combobox passing a value into the parameter of an embedded crystal report. I'm trying to figure out why it keeps prompting me for a database login every single time you try to run the report with a different combobox selection. Here is my code: private Sub Form1_load... ...

Youtube to MP3 Convert - Visual Basic 2008

Hello, I'm wondering if I can create an application that converts a youtube link to mp3 and save it on a desktop. Does anyone have any suggestions to do this? Any references of links? Best Regards, Kevin ...

how do you setup a db data source in a visual studio 2005 deployment

I'm working on deploying a visual studio 2005 windows application executable with an embedded crystal report using visual basic. It seems to install everything just fine, however, the system dsn isn't being setup. How do you configure a setup project to setup the system dsn during the installation? thanks in advance ...

MFC/C++ equivalent of VB's AppActivate

Hello, AppActivate seems to be what i need, I am fairly sure there must be an c++/mfc equivalent. Thanks. ...

Close a RecordSet in a form but still display the last data it contained (access 2003)

I'm working on a bit of Access 2003 VBA code that pulls data from a temporary table and shows it in a forms recordset, I then need to delete the temp table but I can't do this until I've disconnected from the Recordset, which removes the data. What can I call instead of Recordset.Close or RecordSource = "" which would keep the data on ...

KeyDown event not firing with .NET WinForms?

I already have KeyPreview set to true in the form properties I'm working on a small program, and I'm having a problem where it seems that some of the controls on it inside groupboxes are not triggering the KeyDown event on my form when I press and release any arrow key, just the KeyUp event. Is there something wrong with my code that m...

Textbox Hell - Delete 3 Lines, Skip 1, Repeat

I have a textbox that reads like so: Line 1 Line 2 Line 3 **Line 4** Line 1 Line 2 Line 3 **Line 4** (repeats...) How can I use VB to loop through the textbox, deleting Lines 1, 2, and 3, skipping the fourth, and repeat? Or, rather, record every fourth line into a new textarea? Thanks! I'm SO lost! ...

Supress pop-up with VB 2008 Express Edition

Hi The radio recently broke in our bedroom and as a result my missus now listen to various radio stations through her laptop. She moans that visiting various pages and clicking the 'listen' link is a bit of a pain. (Note to self: Must buy new radio!) In the meantime, I have made a 'radio player' in VB 2008 Express, which is nothing ...

Visual Basic 2008 Opacity Failure

Hey guys, I have a 2 files here. One is my main form, and the other is a dialog I made. Now I'm trying to get enter code here the dialog to gradually obtain its transparency from a timer which I have on the dialong form: If Me.Opacity = "100" Then Timer1.Stop() Timer1.Enabled = False Else Me....

Run Tools without DLL Files - Visual Basic 2008

Hello, I have a Windows Media Player with my application. And when I debug, it gives me someother dll files with the program, and it would be a pain in the butt to carry those files around with me. How would I get rid of these but keep my Windows Media Player implemeted to the program? Is their a way I can add this to the project files ...

XmlWriter Not Creating New Element in VB.net

I'm writing out an XML file using VB.net. When I try to create another element to be written past the first, it errors out saying: "Token StartElement in state EndRootElement would result in an invalid XML document. Make sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or ConformanceLevel.Auto if you want to...