hi,
I have the following windows service file:
Imports System.ServiceProcess
Imports System.IO
Public Class fswService
Dim fsw As FileSystemWatcher
Dim lf As StreamWriter
Protected Overrides Sub OnStart(ByVal args As String())
' Add code here to start your service. This method should set things
' in motion so your service can do its…
Private Sub setTextBox()
Dim num As Integer
Dim pos As Integer
num = Len(word)
temp = String.Copy(word)
Dim intcount As Integer
remove()
GuessBox.Visible = True
letters.Visible = True
pos = 0
'To create the dynamic text box and add the controls
For…
while the application is running i'm using FileSystemWatcher to monitor the folder. But what if there are changes to the folder when the application is not running, how can I check for these changes when the application starts.
(similar to how windows media player, for example, monitors your music folder. Even when you add songs to that folder…
Hi there,
I have a form with 3 textboxes and 1 button.
textbox1 has tab index 0, and it's text = 1
textbox2 has tab index 1, and it's text = 2
textbox3 has tab index 2, and it's text = 3
I want to iterate thru the textboxes and place their values into cells so that...
range("A1").value = txtbox1.text (ie: A1 = "1")
range("A2").value =…
I'm working on implementing the equality operator = for a custom class of mine. The class has one property, Value, which is itself a List(Of OtherClass), where OtherClass is yet another custom class in my project.
I've already implemented the IComparer, IComparable, IEqualityComparer, and IEquatable interfaces, the operators =, <>,…
Hi all !
My doubt is about OR and ORELSE. There is any situation where OR is better to use than ORELSE ? And if not, why they don't just "upgrade" de internal code ?
Cheers !!
Well I have browsed through Application events in Excel 2007 however I can't find any event generated on a cell click.
I can't use a double click event at the moment due to application constraints.
Is there a way I can create a custom click event and attach it to a sheet for generating a cell click event.
I just made an interesting mistake in my code:
Dim endColumn As Integer = startColumn + endColumn - 1
The code was actually supposed to be:
Dim endColumn As Integer = startColumn + numColumns - 1
The interesting thing is, I would think that this code should be recursive and loop indefinitely, as the initialization of endColumn sort…
I am building a website to capture data. I have many spreadsheets that are used for data entry or capture. Now I want to mimic these complex spreadsheets on the web forms but I am unsure of the correct control to use.
Data entry must be allowed and live calculations also need to be made similar to formulas on normal excel spreadsheets.…
if i have mssql database with record displayed below :
Id Serv-code Value
1 100 3
2 100 4
3 100 3
4 100 3
5 101 5
6 101 5
the logic i want when i search for the…
I have a class which has the following methods:
Public Function rumusbuffer () As Decimal
buffer = (ukuranblok - pntrblok) / (ukrnrecord + pntrblok)
Return buffer
End Function
Public Function rumusW () As Decimal
interblock = pntrblok + ((pntrblok + intrblok) / buffer)
Return interblock
End Function
how can I make…
I have 2 modules. Each contains a Sub with the same name. See below:
Module moduleA
Public Sub f(ByVal arg1 As myType)
Console.WriteLine("module A")
End Sub
End Module
Module moduleB
Public Sub f(ByVal arg1 As myType, ByVal arg2 As Boolean)
Console.WriteLine("module B")
End Sub
End Module
But the…
I have a program that contains .dbml files. I created this file with Server Explorer.
I want to execute this program on other computers but I seem to be having issues with dependencies because I use LINQ.
How can I fix this?
I want to check the workgroup computers registry in vb.net code,
work group computers are group of vista and xp systems.i can access the xp registry,but vista registry are not able to access.
how to access vista registry in xp system using vb code?
Please help me
The title is my question.
Basically, I have heard people speak of it before, I understand it to have something to do with vb6, and I know it lets the user code for the application, but I am unable to determine if it is a separate library or built into vb, and I cannot find documentation for it anywhere.
Thanks for the help!
Hi again all, I'm getting the error below for this SQL statement in VB.Net
'Fill in the datagrid with the info needed from the accdb file
'to make it simple to access the db
connstring = "Provider=Microsoft.ACE.OLEDB.12.0;Data "
connstring += "Source=" & Application.StartupPath & "\AuctioneerSystem.accdb"
…
Whenever I add a certain table to a DBML file via LINQ to SQL, I get 102 errors in my VB NET project.
Some of the errors:
Error 1 Attribute 'TableAttribute' cannot be applied multiple times. C:\Documents and Settings\zchoy\My Documents\Virtual EMS Deployment\Life And Death\Life And Death\ShearwaterEMS.designer.vb 74 2 …
Hi all,
This is hopefully a softball syntax question: I need to call a method with an empty Object array for evaluation and set initial state. In C# I would just do this:
func(new Object[]{});
In VB.NET I am forced to do this:
Dim ctrls() As Control = {}
func(ctrls)
Is there a way to shorthand the call in VB.NET and have…
I have the following VB script , I want to remove the "NET ID" element from name list
but after running the VB script the "NET ID" element still exist in the XML doc?
Something wrong in the VB?
Yael
Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
objXMLDoc.async = False
objXMLDoc.load("\dir\d.xml")
Set objRoot =…