-
- vb to c# Implements IComparer
by White Dove
- 3 Replies
- Last post
by White Dove
- Hi guys
I really need help
I converted a program from c# to vb
http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx
But I got some errors
This program used to read the xp firewall log
You can find it coded in c# at
http://www.hope.co.nz/
Both the vb & c# are available
At
plz-donotchang-pw@hotmail.com
pas
-
- Trouble with SQL (TSQL?)
by pcs_radiohead
- 4 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hi, I am learning SQL and I am having trouble connecting to my database. The code I am using is this:
Public Sub CreateNewDB(ByRef conn As String, ByRef dbpath As String) If conn = "" Then If dbpath = "" Then dbpath = Application.StartupPath + "\pathosPOS.mdf" End If conn = "Provider=SQLOLEDB;Initial Catalog=;Data
-
- Getting the About Box User Control linked to a Menu Strip
by Polarbear541
- 3 Replies
- Last post
by Polarbear541
- I have been creating an 'about boxes' & i don't know how to attach the about box link to a menu strip. Could you help me out with a portion of code please thanx.
-
- Is it Possible to have Regions with in a function
by Mamush
- 4 Replies
- Last post
by Stephen Weatherford MS
- Does any one know if it is possible to have Regions with in a function or a procedure in VB.Net. I know this is Possible in C# but i canĄ¯t do it in VB. 2005
If it is not possible is there any work around available with in Vb.Net 2005 that provides this feature
Thanx in advance
-
- Could someone point me in the right direction?
by Cammyr
- 12 Replies
- Last post
by Cammyr
- Not even sure where to start.
Need to subtract quantity from inventory table when quantity is added to invoice table.
Start with transaction stored procedure
Any guidance would be appreciated.
-
- Call AutoCad using Vb.net
by Biswajitghosh25
- 8 Replies
- Last post
by Biswajitghosh25
- Dear All,
Here is my code in VB6
Code Snippet
Dim AutoCad As AcadApplication
#If AUTOCAD2000 Then
Set AutoCad = GetObject(, "AutoCAD.Application.15") #If AUTOCAD2005 Then
Set AutoCadApp = GetObject(, "AutoCAD.Application.16") #End If
and Here is the same code in vb.net and th
-
- Queries related to imgscan.ocx
by Hanumant
- 4 Replies
- Last post
by Anoosha
- Hi,
Can any body tell me the latest version of imgscan.ocx
I am using the imgscan.ocx control in VB6 to scan the using the Hpscanjet2400 scanner. I am scanning thru VB 6 application but the problem is there is one option in HP Photo & Imaging software to select the output type as "Millions of colors","Black & white" etc. When I select the "Millions
-
- Removing characters from textbox.
by HitmanPL
- 6 Replies
- Last post
by HitmanPL
- I want to randomly choose and number from a text box, and after it has been chosen I want it removed. I has this so far. It isn't working though.
Code Snippet
Randomize()
Dim userinput As String () = TextBox1.Text.Split( New Char () { "," })
Dim randomnumber As New Random
Dim chosenuserinput = randomnumber.Next(0, userinput.Length)
'Dim positi
-
- How to properly exit a VB.Net application that invokes a msgbox ...
by lyassa
- 3 Replies
- Last post
by Rick
- Hi, I have a form with the following code in the form load event: .... dim found as boolean = checkForSomething() ' takes about 2 to 3 seconds to come back if found then msgbox("Found, ...") else msgbox("Not found, ...") end if ... ... Normally, the user would wait the 3 seconds until they see the message. However, if the user close the form before that, the applica
-
- how to hook on the form on the dll file?
by blackspider
- 1 Replies
- Last post
by nobugz
- Hi all,
I tried to call a form on a dll file but keep getting "Cross-thread operation not valid: Control 'FrmMain' accessed from a thread other than the thread it was created on. Can someone please show me how I can fix this problem thanks
Code Snippet
Dim target As Object = Nothing
Try
Dim assembly As Reflection.Assembly = Reflection.Assembly
-
- VB 2005 tableadapter error
by Manyara
- 1 Replies
- Last post
by MS Johan Stenberg
- VISUAL BASIC 2005 TABLEADAPTER ERROR
While doing the FirstDatabase Visual Basic Guided Tour example as given in Online Help , amendments made to the Dataset are not saved back to the Addresses table of the main Database.
THE CODE BELOW IS SUPPOSED TO UPDATE THE DATA:-
Me.AddressesBindingSource.EndEdit()
Me.AddressesTableAdapter.Update(Me.FirstDatabaseDataSet.Addresses)
How c
-
- how to change the color of the tab control in vb.net
by narasiman_jayachandran_2b5374
- 11 Replies
- Last post
by b3n
- can anybody say how change the color of the tab control in vb.net
-
- Can't kill Excel.Exe after using Excel component in vb.net
by Sam rezaii
- 14 Replies
- Last post
by Ganesh_shiv
- Hi ,
I'm using Excel.Application generating excel report via vb.net 2003 , the problem is excel.exe process reminds even after generated excel report closed . I have been using the followed code to close or dispose the process , but it does'nt work either.
thenks
Dim procList() As Process = Process.GetProcesses()
Dim k As Integer
For k = 0 To procList.GetUppe
-
- Network Server Issues
by BIrvin
- 12 Replies
- Last post
by BIrvin
- ok im trying to make a simple client and server application in which multiple clients can connect to the same server. I got most of this cose out of vb .net progrrammers cook book.
Imports System.Net
Imports System.Net.Sockets
Imports System.IO
Imports PulsNetMessages
Public Class Form1
Private SerIp As IPAddress = IPAddress.Parse( "127.0.0.1" )
P
-
- Vertical label
by Ayhan Yerli (TR-NL
- 7 Replies
- Last post
by rkimble
- I would like to add a vertica label on my from, is there somebody can help me with that
-
- My Read/Write AllText Exception
by Raws80
- 1 Replies
- Last post
by Spidermans_DarkSide - VSIP
- Hi,
I have an application which reads and writes to a text file residing in a shared folder using My.Computer.Filesystem.ReadAllText and My.Computer.Filesystem.WriteAllText.
I am using a Try,Catch block to catch all IO.IOExceptions. Recently a user has reported receiving a .Net Framework Unhandled exception message box, with the message: Access to path ... Is denied. As far as I can wo
-
- Crash upon exit of IDE for one project
by myoungbl
- 4 Replies
- Last post
by myoungbl
- Hi!
I have a project I've been working on that crashes whenever I close the project.
After loading the project, I've tried exiting directly out of the IDE, and I've tried closing the project and then exiting the IDE. In both cases I get a unhandled exception error.
If I open other projects the IDE exits fine.
I thought of creating a new project, and just adding the file
-
- Reference between projects
by wayliff
- 2 Replies
- Last post
by Bruno Yu - MSFT
- Hello
I have two projects within a solution, one is the main app and the other is a timer app with some routines to run.
The Timer app has a reference to the Main app and I am able to call anything from the Main App...however I also need to call from the Timer App to the Main App when time is up.
I am not able to make a reference because that would create a circular reference.
-
- Converting from Hex to Decimal automatically?
by joynerCN
- 2 Replies
- Last post
by joynerCN
- For a program I'm writing, there's a certan value that's entered by the user according to a certain Hex code. It's then relayed to another program, but the other program's expecting that code as an Integer value. What's the best way to convert the user's Hex input into an Integer value to relay
The Hex code entered has 12 digits, so too large for a standard Integer.
-
- Existing Item In a List
by Fred.F
- 3 Replies
- Last post
by Rykler
- I'm having trouble finding a way to check if an item already exists in a ListBox.
I've read many things but didn't come across a good "combinasion".
There's already a loop in my program, which checks for "new" devices and add them to the ListBox. So I need to filter if the device is already in the list, otherwise, it'll just keep on adding always the same devices. I thoug
-
- invalidoperationexception when using data adapter update
by Kelly R. Martin
- 5 Replies
- Last post
by Kelly R. Martin
- Hi Guys. Ive been working through an online howto on accessing data in an mdb file through code. All has been working great until now. When i try and do an update on any records i keep getting an invalidoperation exception. I have gone over the code many times and cant find the problem. here are some links. If anyone could help it would be much appreciated...
'this is the error i get
-
- How to set the install path for application
by zdrae
- 14 Replies
- Last post
by Hobb
- I noticed that my app doesn't install to the Program Files directory as VB6 does it. Instead, the wizard creates a jumbled multi level directory and sticks your app in there.
How can we change that
Thanks.
-
- VB6 Help
by Anonymous123456789876543
- 2 Replies
- Last post
by spotty
- Why doesnt this work How do you correct it
Private Sub goSearchBtng_Click( ByVal goSearchText As String , ByVal sender As System.Object, ByVal e As System.EventArgs) Handles goSearchBtng.Click
web.Navigate(goLink)
End Sub
Private Sub gobutton_Click( ByVal goLink As String , ByVal sender As System.Object, ByVal e As System.EventArgs) Handles g
-
- Object persistence
by Remi Szyndler
- 5 Replies
- Last post
by Remi Szyndler
- I am new to .NET though I have extensive experience in the old VB6 world.
I am baffled by the behavior of my test code. I have an .aspx codebehind class, which I figure has a lifetime equal to that of the calling page. Upon PageLoad event I populate a Private class variable ds with the dataset. When RowEditing handler is called the ds variable is NOTHING. How is that possible I though the varia
-
- Maximize my screen
by QWERTYtech
- 12 Replies
- Last post
by QWERTYtech
- On my small application that I am writing, I have turned the Maximize & Minimize buttons off and was wondering how I could set the Main Form to fit the entire screen whenever the Main_Load occurs. Can anyone help me here
Thanks,
QWERTYtech