Answer Questions
Omen Calling a sub while reading an array?
I'm not the most sophisticated programmer, so you'll have to forgive me as I may be approaching this totally incorrectly. One of the programs I'm working on now deals with Morse Code and different methods to output data to the user in Morse Code...example, PC beeps or with wav files. The concept is this: User selects output method, user selects demonstration and clicks play. The demonstration directly corresponds to a specific file. ...Show All
Alan Pa When is DLL Main executed?
I am trying to load a dll and make it run code as soon as it is loaded without having anything called. Is dll main like a regular main where it starts running as soon as it is launched If not, how can I create that kind of effect When a dll is understood as a class library, there can be a constructor, that is a public routine that is executed when the class is instantiated. So that when you say dim a as New MyDll that construct ...Show All
gamer36 VB.NET 2003 Multiple Application Interface - Best Method?
Hello, I am creating an application in VB.NET 2.0 that I envision having an outlook style bar down the left hand side that shows icons, and a brief text description; then when the image is clicked, the appropriate application will launch (think of Multiple document interface kind of feel to the applications) to the right of the outlook style bar in a child window. What I am curious about, is what would be the best method for creating the main, ...Show All
Osamede Fundamentals - Use of Classes
Hi, I have used VB, and then VB.NET as my language of choice for a few years now, developing small-scale applications for various uses. I have a reasonably strong background in databases and data access, so I found the dataset and all it's friends easy enough to start using. My tendency to think in terms of databases however, is why I think I am having so much trouble with designing on my own classes. Now I understand the theory ...Show All
Eduardo Andrade Creating Tables with sql express
I know this deals with ms sql express more so than vb.net but it correlates b/c I want to edit the database with vb.net express. On to my question... I'm trying to learn how to use ms sql express using the SQL Express Manager. However, I can't seem to figure out how to create tables. I'm reading http://msdn.microsoft.com/SQL/2005/getstarted/default.aspx pull=/msdnmag/issues/04/09/expresseditions/toc.asp but it seems outdated and I can't re ...Show All
Justin_K Showing hidden forms
Here is what I am attempting to do. I have a combo box, that has the names of forms that have been hidden from view. When the user clicks on one of the names, that form reappears, and is then removed from the combo box. I cannot for the life of me figure out how to make the forms reappear after the user clicks the name. The forms are all derived from one form that can be loaded multiple times on the screen, thus I need to tell the difference bet ...Show All
bigkdogg End Processes?
If I wanted to make and app so that when its started it would end a certain process e.g msnmsgr.exe how would I do this And is it the same code for VB6 as it is for VB.net Thanks! But how do I specify if its aim.exe or somthing process.getprocessbyname("name") check this out in the documentation under the process class. Dim proc As Process proc = Process.GetProcessById(pid) &n ...Show All
Brad Jones Run-time error '429' ActiveX component can't create object
Hi! I get the error (Run-time error '429' ActiveX component can't create object) when I execute my VB 6.0 program on Windows server 2003 BUT not on Windows XP Professional. The code that causes error is: Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet) Is there anybody who experienced the same problem What should I do /Saki I have a tlb component for VB6 that I wrote in VS ...Show All
KelleyBryant Question about Interop.Excel.dll
Hello. I originally wrote an app in VB6. This application processes a text file, converts it to a *.csv file, and then loads the CSV file into Excel and formats it all nice and neat, etc. When in VB6, when I distributed my *.exe, I needed to distribute or ensure that the Excel.dll was available to the end user. I have now updated the application to VB2005. I currently need to Interop assemblies to execute the program : Intero ...Show All
drjohne Possible to create a Dll in the express addition?
Hi all is it possible to create a dll using the express version if yes is there any good example to look at Regards Soon Lee Hi, Yes it is possible to create a DLL using the Express Edition. You would need to select the Class Library project template when you start the project. You can then choose Build from the menu and the DLL would get generated. For tutorials check out ...Show All
Gabriele38 convert an access database to a single XML file
I have an MDB file with only a few tables. what is the best way to convert this MDB file to A single XML file using vb 2005 code Hi, You can put the data into a DataSet and write the information into a XML file. For more information read the next How To: Persist a DataSet as XML by Using VB.NET http://support.microsoft.com/support/kb/articles/q308/0/64.asp The article uses SqlDataAdapter to read from a SQL database ...Show All
RichardWu Base Class Events
Is there going to be support in 2005 for a MustOverride Event in VB.NET or maybe RaiseEvent MyBase.EventName As it is now, you cannot raise a base class event in the form of MyBase.EventName. I know the workaround is maybe to add a method in the base class that raises the event but that doesnt make too much sense to me. Especially when you have an abstract base class but you also have these non virtual/virtual methods thrown in there t ...Show All
Jim Tomasko generic error occured in GDI+ (drawline)
I've just converted my program from VB 6 to VB 2005. There is a lot of graphics involved, drawing lots of lines to make models. The lines were all formerly drawn with the Line command on the forms, but now that that is gone i have run into problems switching to the new commands. My program is fairly large with many forms and modules so I was unsure about some of the things i did. I declared all the graphics in one module as follows: "Public ...Show All
Gavin McKay Start Up program
how do i make my program a startup program Ok, dman my startup path is different My startup folder is at C:\Documents and Settings\Username\Start Menu\Programs\Startup Is it the same Is it the .exe file i need to put in the startup folder Also, how can i make my program , during installation, to put itself in the startup folder but i distrubute this program, so this program must install put a shortcut in the startup directory. Or ...Show All
Soul 2.0 VB.NET 2005: Windows Service That uses a Timer to read/write registry
Hi All! I have the following problem: Timer1: Timer1.Enabled = True Timer1.Interval = 1000 The OnStart event writes the value Blaat1 to "HKEY_LOCAL_MACHINE\SOFTWARE\Test" , "Test" But the Timer1 doesent write Blaat2 to "HKEY_LOCAL_MACHINE\SOFTWARE\Test" , "Test" Can some one help me with this problem I know it worked in VB.NET 2003 but why doesent it work in 2005 anymore THX! Public Class Service1 Protected Overrides ...Show All
