vb

Creating development and production environments?

Hi everyone, currently all my application that is released is always release in production. However I would like that changed and also have a development side (For testing). I've tried searching for steps on how to create a development server however I cannot seem to find a tutorial. In the past I've seen someone release their applicat...

Worksheets(ws.Name).Range("A" & i & ":G" & i).Copy _ Destination:=Worksheets("Sheet1").Range("A" & emptyCell)

I have this Excel VB code, and everytime after it executes this line, it pauses for half a second: Worksheets(ws.Name).Range("A" & i & ":G" & i).Copy _ Destination:=Worksheets("Sheet1").Range("A" & emptyCell) Can someone tell me what it is doing, and how I can prevent it from taking so long? I have Microsoft Excel 2007 on Windows XP ...

Compressing a database to a single file?

Hi all. In my contact manager program I have been storing information by reading and writing comma delimited files for each individual contact, and storing notes in a file for each note, and I'm wondering how I could go about shrinking them all into one file effectively. I have attempted using data entry tools in the visual studio toolbo...

Runtime Error 424 Object Required

Hey so I get this error in this code: Private Sub Request_Stuff_button_Click() Call Main.createObjects Call My_Control.requestStuff End Sub at the 'Call My_Control.requestStuff' line. The 'Main' module looks like this: Public My_Control As ControlObject Public Sub createObjects() If My_Control Is Nothing Then S...

Display a result in VB

My question is simple yet difficult to find an answer for. I declared a variable which is the sum of two other variables. I simply want to display that result on the screen. I think a msgbox is what I need to use but I'm not sure. ...

Visual Basic and C++

Hello there, I was reading a little into Visual Basic and it seemed a rather simple way to implement some GUI...So I was looking for a way to interface my C++ code to a Visual Basic snippet of code. For example, receive input from a Visual Basic app and send it over to C++ code to continue the logic of the program based on the input of t...

Winforms WebBrowser tell when done Refreshing

I have a page that refreshes every 20 seconds and I need to know when it is done refreshing, the DocumentCompleted event does not fire when you refresh for some reason. Any ideas? ...

How to take the result from message box

in visual basic in studio if this is used for giving a message MsgBox("hello", 4, "status") how to manipulate the result yes or no from the msgbox like this should happen if the user gives no and this should happen if no ...

VB to c++ or c#?

I am trying to translate this code but I don't understand how to use the GET / PUT part of the code in another language like c++ or c#. This is the code : Private Sub cmd_Click() Dim i As Integer, a As Integer a = 10 For i = 1 To a Dim file As String Open "txt" For Binary As #1 file = Space(LOF(1)) Get #1, , file Cl...

Syntax to change the value of a cached object property

In an ASP.NET 3.5 VB web app, I successfully manage to cache an object containing several personal details such as name, address, etc. One of the items is CreditNum which I'd like to change in the cache on the fly. Is there a way to access this directly in the cache or do I have to destroy and rebuild the whole object just to change th...

form redirection

I'm building a test web application ASP.NET VB from a tutorial see it at http://www.latinosnetwork.net/aspnetsystem/Login.aspx after successful log-in using user name jose and password abad the formsauthentication.redirectfromloginpage method redirect the application to a default.aspx at the root directory where it do not exist also the ...

Kill explorer.exe with windows title

Hello, I'm new with programing and my question is now, how i can close some specific explorer.exe windows. My Problem is, i have a program that call some windows: Option Explicit Dim shell, expl1, expl2, expl3, Terminate Dim uprgExplorer set shell = WScript.CreateObject("WScript.Shell") set expl1 = shell.exec("C:\WINDOWS\explore...

Array help needed for unit conversion application

I have a project to do in Visual Basic. My problem is that the outcome is always wrong (ex. instead of 2011 it gives 2000). And i cannot set as Desired unit the Inch(1) or feet(3), it gives the Infinity error. And if i put as Original and Desired unit the inch(1), the outcome is "Not a Number". Here's the code i made so far. The projec...

VB2008 Resolution-based resizing

Hi, Usually I am a web developer so this is probably a very novice question. I recently made an app in VB2008, but I developed it in a huge reso (1920x1200). The person that will be using it still uses 800x600 reso. Is there any simple way I can resize the entire interface to fit any resolution? I didn't really think about it at all whi...

Why is activeX failing to create an object from a Labview executable?

Here is my scenario. I am using Quicktest Pro (VB) to create an ActiveX object from a Labview VI that I built into an executable. In the build specs of the VI I have enabled ActiveX server option (ActiveX server name: "MyLabviewProgram") and in the VI Tools>Options>VI Server: Configuration the ActiveX box is checked. So in QTP my code...

XML + DOM + replace text in element

from XML <NET ID="10.10.10.10, 255.255.255.0" /> I need to replace the text 10.10.10.10, 255.255.255.0 with 192.9.1.1, 255.0.0.0 by VB + DOM script so the final line in the XML should be <NET ID="192.9.1.1, 255.0.0.0" /> THX ...

mybase.showdialog event fired without apparent reason

Hi, i'm new to vb .net and oop although i have learned the basics. I'm working in VB and .NET CF 3.5 and i'm trying to pass and received a value with showdialog. The issue here is when i'm done with a procedure in Load, for some reason MyBase.Showdialog (line 3) gives an error of "NullReferenceException was unhandled", but the same proc...

ways to convert current screen into array of bytes in silverlight3

Hi, I would like to know if there is any other way than using WriteableBitmap to convert the current screen into array of bytes. Because I am trying to get a screenshot of Esri map, but I am getting "pixel access not allowed" error. Please help. Thanks, ...

VBScript Regular Expressions to check IP address validity with some adtional characters

How to create VB script Irregular expression syntax to check the VPparam (IP address validity) When the last octatat of the IP address is a range between ip's (x-y) and between each IP we can put the "," separator in order to add another IP example of VBparam VBparam=172.17.202.1-20 VBparam=172.17.202.1-10,192.9.200.1-100 VBparam=172...

Error "(10025) Array has different number of indexes" when running a pre-made STATISTICA Matrix library function

In Visual Basic within STATISTICA (a stats program), I am trying to run "LOWESS," an existing STATISTICA Matrix Library Function. I have defined my arrays based on the number of rows and columns I either know or expect they should have. Unfortunately, my macro gets an error of "(10025) Array has different number of indexes" when runnin...