-
- Creating .DLL Modules
by mcmathys04
- 3 Replies
- Last post
by spotty
- I am writing an application and I would like to have each section (client information, point of sales, etc.) of it as a seperate DLL file so I can customize sales to clients. How would I go about importing DLL files into an application
-
- My file read function will not work???
by kcdclan
- 8 Replies
- Last post
by ahmedilyas
- It will return The file could not be read: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex
Function read( ByVal file As String )
Dim i As Integer = 0
Try
' Create an instance of StreamReader to read from a file.
Using sr As StreamReader = New StreamReader(file)
Dim line As String
'
-
- VBA Syntax Error - Excel - Please help (easy one)
by Kevin554465
- 3 Replies
- Last post
by Aw Ali
- Hi Everyone,
I am pretty new to this VBA stuff and am trying my best to work this out myself. But I am stuck.
I am working up a program that will eventually find data in cells, set them as variables, go to another sheet, look for the cell with the same contents as the variable, go x number of cells to the right and paste something. I have got it as far as searching and finding the ce
-
- data column values to variables
by Angusl
- 1 Replies
- Last post
by APMadsen
- I am pulling data from a named Excel range with a SELECT * Range WHERE XXX = YYY, etc. This gets a one row table, all I need. Now how do I access the column values and stuff them into variables
Do that make sense
-
- Correct byte usage
by Murrawhip
- 9 Replies
- Last post
by Derek Smyth
- Recently in a high-school IPT exam, we were supposed to declare a few variables, based on the scenerios.
For one segment, I was to declare a variable to hold data for the number of seats that a car has.
I used the 'Byte' data type.
This was marked wrong by the teacher, and when I asked him about it, he seemed to be rather unsure about the Byte data type altogether. Firstly, he said th
-
- how to make the function in visual basic 6
by gralei
- 2 Replies
- Last post
by gralei
- //the function code of javascript is to upload the file to internet server throw the web.
//But i want to know how to do with visual basic 6 .
//keywords :visual basic ,xml, file_upload.
//Waitting online. Thank you.
<SCRIPT LANGUAGE=JavaScript>
var ado_stream = new ActiveXObject("ADODB.Stream"); var xml_dom = new ActiveXObject("MSXML2.DOMDocument"); xm
-
- CallByName doesnt return right values!!!
by Antinsh
- 3 Replies
- Last post
by Antinsh
- Hi!
So I have this cod:
Return = CallByName(fx_class, fx_name, CallType.Get)
the method by the name fx_name works just fine, it returns what its supposed to but the return value of function that has the line above for some reason is True The fx_name function returns string like the size of my disk which is something like 421332134214 or something but the return value of the f
-
- get rgb code to string
by -ande-
- 10 Replies
- Last post
by -ande-
- how to get the rgb color code from a textbox.backcolor
like:
textbox1.text = textbox2.backcolor.torgb.tostring
then textbox1.text = for exempel "10;10;10"
-
- Impersonating another User
by Chris128
- 8 Replies
- Last post
by Chris128
- Hi All,
I have searched these forums and google for a while looking for an easy way to connect to another computer and start/stop services and make registry edits using a username and password supplied by the user but I cannot find any straight forward instructions on how to go about doing this.
I believe what I am looking to do is called Impersonating, could anyone give me a quick examp
-
- Creating remote direcoty on an FTP server.
by adoroxin
- 1 Replies
- Last post
by Derek Smyth
- How would I code to create a directory on a remote server
-
- My.Computer.Network.Ping
by LBCT
- 5 Replies
- Last post
by ScubaSteve20001
- I have simple code to list the computers on my network. Once i start the code, if i click anywhere on the form or move to another form the app stops responding... Any help.
Imports Microsoft.VisualBasic
Imports System.Net
Imports System.Text
Public Class Form1
Public Tmp As Boolean
Private Sub Button1_Click( ByVal sender As System.Object, ByVal e
-
- How to refine/format a particular column content in a table using VB.NET?
by kareshi
- 2 Replies
- Last post
by kareshi
- Hi,
I am retreiving data from an SQL DB and exporting the data to the csv file. One date column has the content of
2005/04/01 0:00:00 . How can i format it programatically such that the data that will be transferred to the text file will be
2005/04/01 without the time part How can I also trim the text contents of another column such that to eliminate the leading and trailing space ch
-
- SSRS Subscriptions Status
by Brad Corbett
- 1 Replies
- Last post
by Bruno Yu - MSFT
- I'm running a DataDriven SubScription from VB.net. The SQL I'm using to call the Subscription is as follows:
Code Snippet
exec ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='XXXX-XXXXX-XXXX-XXXX-XXXXXXXXXXX'
That works fine for me. I now need to know when it is finished running.
This SQL just triggers the Subscription, it returns Output almos
-
- Empty User.Config file causes exception
by naxtell
- 8 Replies
- Last post
by naxtell
- Somehow the User.Config file was corrupted for an instance of my VB .NET app. When access one of my user level config property (My.Settings.MyProp) I get the a ConfigurationErrorsException with the message "Configuration system failed to initialize." I looked at the User.Config file and found that it is empty, it can be opened but there is no XML text contained within. I would like to pr
-
- Stupid NotifyIcon problem
by meaton
- 2 Replies
- Last post
by Tall Dude
- This is really bothering me since it is one simple line of code. I am unable to show a balloon tip on either my Vista machine or my xp box. I have created a new program to simplify things. It has a form, one button and a notifyicon. On the click event, i have the following:
notifyicon1 . ShowBalloonTip (3000, "Test" , "Is it working" , ToolTipIcon . Info )
I see the noti
-
- Cross-thread operation not valid
by Johngeh
- 14 Replies
- Last post
by blomm
- Please tell me that you are going to fix this before the official release!! I am using VB not C++. I really shouldn't have to care that my code is not running in the same thread as the one that created the form that contains the control that I am trying to update. Please fix this or at least have some real examples that show how to update a control on a form. The examples that I found
-
- Update gauge from BackgroundWorker?
by Av8orfliboy
- 3 Replies
- Last post
by Andrej Tozon
- I have a background worker that I want to perform some calculations and update a gauge everytime it executes a loop. As it stands I cannot update the gauge directly from the background worker. I can update the gauge from anywhere else in the program, but I need a continuous loop to provide the gauge with a continuous update. What is the best way to do this Is there a way to have a gauge continuou
-
- Problem Adding Record to Access Database
by blabus
- 1 Replies
- Last post
by Bruno Yu - MSFT
- I have the following code to add a new row to a Microsoft Access 2003 database:
Code Snippet
con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = " & selectedkeyroot & "PASS\ld.mdb"
con.Open()
Dim ds As New DataSet
Dim da As OleDb.OleDbDataAdapter
Dim sql As String = "SELECT * FROM ldtable"
-
- Could not load file or assembly 'stdole, Version=7.0.3300.0'
by ScottBaker
- 8 Replies
- Last post
by M0onLight
- Could not load file or assembly 'stdole, Version=7.0.3300.0'
After installing program written in vb.net 2005 and using stdole.stdpicture in the code I receive the above error on client computers. stdole.tlb is on the client computer.
-
- Static Variable Does Not Retain Value. Do this instead.>>
by TBing
- 14 Replies
- Last post
by DMan1
- I am working with VB 2005 Express Edition.
Coming from VBA, I have used static variables before with success. However, today I included Static declarations in a private non-shared event handler sub and had to discover that the static variable values were reset every time the sub was invoked. The class that contains the event handler is instantiated only once.
I read the online help (ms-help:
-
- Datetimepicker question
by newbieneedshelp
- 2 Replies
- Last post
by Dick Donny
- I have a DateTimePicker and I would like on Form1_Load the date in that datetimepicker to equal 30 days before todays date. Thanks DTPstart.Value = Date.Today - 30days
-
- How to tell if I've broken binary compatibility on a .NET dll
by lizzyBennet
- 2 Replies
- Last post
by lizzyBennet
- I'm accessing a vb.net dll from a vb6 dll.
If I make changes to the .net dll and re-compile it, it will sometimes carry on working with the vb6 dll and sometimes it won't.
Sometimes, some functions will carry on working and some will give memory access or registration errors.
I'm assuming that when I break compatibility in the .net dll, I am getting these errors.
Is the
-
- Error: String or binary data would be truncated? That does that mean?
by nyqa
- 2 Replies
- Last post
by nyqa
- I get the following error in this code:
Code Snippet
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PhotoTableAdapter.Insert(SaveToAlbumID, OpenFileDialog1.FileName, PhotoDescription.Text, "PhotoTaken", "Added", 5, 0, "Viewed", "2007", "Mars", "25", "11:
-
- USB Port programming
by abhimohpra
- 2 Replies
- Last post
by abhimohpra
- Hi all,
I am planning to access USB port where my webcam is connected with.
I would like to access it through Visual Basic.
can anyone help me out
-prasad
-
- VB.Net "Orcas" Samples
by Lennie De Villiers DG
- 2 Replies
- Last post
by spotty
- Hi, I'm looking for examples on how latest VB.Net compare to its C# syntax related to the new features in "Orcas" like extended methods etc. Anyone know where I can find such examples Kind Regards, Lennie De Villiers