Use VB 6's Module In VB Studio 2010?
Jul 22, 2011
I am working on developing control machine under Visual basic 6.Then we are going to setup new machine but it needs a new copy of VB6.I have a number of modules created by VB6.
1. Can I still order a new copy for Visual Basic 6 from MSDN or other place? VB6 might be already obsolete, so if I have to order newer version, such as Visual Studio 2010.
2.Am I still able to develop programs in VS2010 by using my previous VB6 module?
View 5 Replies
ADVERTISEMENT
Apr 27, 2012
I have a VB.Net interface that communicates with an Access 2k3 Database using this module:
Module MOD_ENGINE
'Declare Database connections controls
Dim con As New OleDb.OleDbConnection
Dim dbProvider, dbSource As String
[code]....
I want to call EngineConnect procedure from MOD_ENGINE module into popCboBox module so I can ignate the engine!
View 3 Replies
Oct 20, 2010
I have an Access 2007 database and and select data from it using and try to add the items to a combo box on a form.[code]...
View 1 Replies
Mar 8, 2011
How can i make and use dll module in vb2010
View 5 Replies
Jan 17, 2011
A new program I'm working on is testing my VB knowledge, which I admit is not all that vast. I'm running a timer that checks an 8 channel I/O USB module every 200 milliseconds. When checked it returns a decimal value that must be converted to an 8 bit string, which I then convert to an array for analysis. After analysis I might make a change and return a different value. Something like this:
[code]...
I'd like to use the bitarray class like this to keep things a little more compact:
[code]...
I'm not overly familiar with the bitarray and am concerned about using "New" so frequently. Is there another more efficient way to work with the bitarray class that doesn't require creating a new instance each time?
View 7 Replies
Jun 10, 2011
im making a game in vb 2010. but im new to 2010 so i dont know how it works (because i used 6.0 before).I have a form, where the graphics should be drawn on. "frmMainGame".I have a module where I want to put all Graphic things in.so I have in my module Graphics.vb [code].....
now I have a button what calls the sub "Call DrawPlayerCoordinates()".but now it gives an error because it don't know where to draw the string. So how do the code above know it should draw it on "frmMainGame" and not in a module what isn't possible?
View 5 Replies
Aug 18, 2011
I'm trying to write a sub that when sent a form (if its needed) will create a label on that form. This is because all of the forms will have the same title label. My problem is that, basically, I have no idea how to do this. I also can't get labels to create when the code is written into the form itself; I tried:
[Code]....
View 3 Replies
Feb 14, 2012
I'm trying to create an overloaded method in a module, but if I type Public Overloads Function GetData(ByVal sql As String) As String it tells me "Inappropriate use of 'Overloads' keyword in a module". Are overloaded methods not allowed in modules?
View 3 Replies
Jul 15, 2011
I'm ready to implement a server browser for my FPS.but instead of having a .exe running on the remote machine to handle the server list, i'd like to use simple HTML and server side scripting.what i need is some kind of a tutorial that can be used to show me how in my dedicated server program to (for example)
[URL]
and the client program to
[URL](and read the .txt file into string/data) i can handle the server browser side, but i need some help on the .exe of the dedicated server and the .exe of the client submitting/retrieving data from a http site from within their modules.
View 1 Replies
Aug 16, 2010
how we can declare a connectionstring in a module and call that module
View 1 Replies
Feb 26, 2012
I 'm a beginner and have a project that I'm using to turn lights on and off. I need to use separate forms for display on remote monitors. My problem is each form needs the same serial port open to work and the port won't open unless it's closed in the previous form. Using a module works for opening and closing the port, but only for one round. If I try to revisit a form I already accessed it doesn't work.
Public Sub sp1(byval SerialPort1)If Form2.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form3.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form1.SerialPort1.Open() end sub
Public Sub sp2(byval SerialPort1) If Form1.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form3.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form2.SerialPort1.Open() EndSub
Public Sub sp3(byval SerialPort1) If Form1.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form2.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form2.SerialPort1.Open() EndSub
end Module
View 2 Replies
Feb 24, 2012
I've got 4 projects all running very similar multi-threading HTTPListener stuff.I wanted to make these functions common - in some module - but I'm having a hard time getting the AddressOf the "callback" passed in.This was the code in one of the 4 projects
Private Sub StartRequests(ByVal prefixes() As String)
If Not System.Net.HttpListener.IsSupported Then
DisplayInfo( _
[code].....
View 1 Replies
Feb 17, 2010
Will i be able to successfully install 2010 beta 2 side by side 2008? because i want to test 2010 features and some development toolkits such as silverlight while i don't want to uninstall my visual studio 2008 professional.
View 2 Replies
Mar 13, 2011
I have to calculate y = a + Bx or y = mx + b in non engineering form. Anyways I have to calculate the y intercept first and am having trouble calling the function from a module. Here is the module and the second window will be the code from my main form
[code]...
View 8 Replies
Dec 1, 2010
So I have my main form (Form1) and I have a module called globalMod. On start up, Form1 loads, and globalMod contains functions and global variables (using Friend). I need to be able to have a function inside of globalMod edit a label/text box/etc in Form1. I tired Form1.object.Text = "content" and it doesn't do anything, even if I update / refresh the form.
View 1 Replies
Jan 5, 2011
At present I have wrote an application (in-house CRM, vb .net 2010) which allows me to send emails under the selected customer & I categorised these emails.As these are categorised I can return data to display email history in my program by using search criteria:
Dim oMail As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail)
Dim sSearch As String
sSearch = "[Categories] = '" + "[" + tAccount.Text.Trim + "]" + "(" + tShipTo.Text.Trim + ")'"
Dim oItems As Outlook.Items = oMail.Items.Restrict(sSearch)
However the limitation to the above is it only looks at sent items & no other folder.My ideal solution would be to display all email correspondence for a certain contact.
View 1 Replies
Jun 21, 2010
Well I used the Visual Studio 2010 installer to install my application and I want it to be able to change the version displayed in the in the Add/ Remove Programs (in the Control Panel). How can I do this without going through the install wizard again?
View 3 Replies
Jan 8, 2012
I'm new to visual basic, used it for a few months. My friend is addicted to using a program called Wpe Pro [URL].. and he wanted me to make it more advanced and able to do more stuff.if you no anything about this program please message me
View 5 Replies
Feb 14, 2011
I need to write from VS 2010 vb.net dataset into a newly created xlsx file.
View 2 Replies
Feb 22, 2012
I've got this code
Public Class Form1
Dim m_listener As HttpListener = Nothing
Dim m_asyncCount As Integer = 0
[code].....
View 8 Replies
Mar 29, 2012
I am having this strange thing happen where I have a Module that contains multiple classes in my project. In the Solution Explorer, the module shows up as a Windows Form and if I double click on it to open it, it tries to open the Form Designer. What could be causing VS to think that it is a Windows Form instead of a module?
[Code]...
View 3 Replies
Oct 25, 2010
I decided to to convert my excel macro in a exe file using visual studio 2010. In excel macro method find is present like this:
[Code]...
View 9 Replies
Jun 3, 2010
I'm working on a project started in VB9 (VS 2008) and now I've migrated to VS2010 (VB10) but on the production server the IDE is still VS 2008. On my developement enviroment the code compiles fine, but sometimes, - let's say - I forget an _ at the end of the line which causes the VB9 compiler to throw an error.So the question is, how could I build a project with the VS 2010 IDE but VB9 compiler? Or to force the VB10 compiler into VB9 mode?
View 2 Replies
Jan 16, 2011
Now I'm at the end of the first part of my project and now i need to print a voucher with few pre-printing words and 7 fields that comes from a dataset.I try to use *rdlc file on which i made all the necesary layout very good, and the link was very good as well But print NO I did something in *.xaml file very dificult to put controls and make the links.But lets say i will do it, for the moment i have a picture and a label with few words, and I'm trying to print it with the following lines
Dim myPrintDialog As PrintPreviewDialog = New PrintPreviewDialog
Dim myDocument As New PrintDocument
myPrintDialog.Document = myDocument
myPrintDialog.Document.DocumentName = "OrderVoucher.xaml"
myPrintDialog.ShowDialog()
But in the dialog I see only a blank page.Of course I have a mistake in my mentality of building my code but I don't know where is that.I also need to admit that is the first time in my life which I'm trying to print from Visual Studio 2010.Now Please I need the best assistance you can give me.For the moment i want to print in my default Laser printer.But in the final stage i will have to print in an Olivetti PR2 (Bank printer) which will be connected in the com: port.That will be the day if I succeed :)
View 1 Replies
Feb 14, 2011
After installing VS 2010 SP1 I noticed that ByVal keyword doesn't automatically appear after declaring Function or Sub parameters. Is it new feature or bug?
View 5 Replies
May 12, 2012
[Code]....
how to change that auto redraw in visual studio since there have an error???
View 1 Replies
Nov 11, 2011
My question is: How can I successfully download the Visual Basic 2010 or the whole studio in isoimage? have been trying to download the image, but it asks me to wait for 22 days!
[Code]...
View 4 Replies
Jun 8, 2010
I am using visual basic and when I try to hide Navigation bar, I am not able to, it is disabled.Ok I tried to turned it off going to "all languages", althought I unchecked the setting. It didnt dissapear.
I restarted visua studio, closed all open classes.Ps, It is just visual basic, when i try with c# i can hide and show it.i dont understand what is the difference. I have to remove it because it makes coding too slow
View 2 Replies
Nov 9, 2010
Each time i type codes in the Visual Basic 2010 IDE (Visual Studio 2010 Ultimate Edition) and compile it to run, i keep getting this nasty error report below
Error 1 The "GenerateResource" task failed unexpectedly.
System.DllNotFoundException: Unable to load DLL 'FileTracker.dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)
at Microsoft.Build.Shared.NativeMethodsShared.InprocTracking.StartTrackingContextWithRoot(String intermediateDirectory, String taskName, String rootMarker)
[code].....
View 1 Replies
Aug 1, 2011
I am about to publish my program and I need IIS for Visual Studio 2010 Ultimate, does anyone where to get it.
View 3 Replies