Software Development Network Logo
  • Audio and Video
  • Game Technologies
  • Windows Vista
  • .NET Development
  • VS Team System
  • Smart Devicet
  • Visual C++
  • Visual Studio
  • Windows Forms
  • SQL Server
  • Visual Basic
  • IE Development
  • SharePoint Products
  • Visual FoxPro
  • Microsoft ISV

Software Development Network >> Visual Basic

Visual Basic

New Question

Visual Studio Is Busy?
Send datagrid to excel
printing a hard copy
datetime manipulation
VB.Net IDE Crashes Often...
OLE DB Session required
tab character!!
DataGridView Row Slection Question
What Language to Use
Activation of Help files in VB 2005

Top Answerers

leclerc9
thegooner
New-Bee
Yakov Melman
Thymen
acccollin
Alanu
Curtis the Analyst of Doom
seco
Thomas Ardal
Techquila
Only Title

Answer Questions

  • Matt A Failed to import ActiveX control

    I am using VB2005 express and VC#2005 express. With my old friend VS2003, whenever i needed to add flash to my WInforms, all i needed to do was to add the control as a com component and drag it on the stage from the toolbar. Now, when i did the same in new express version, althogh it is added in the toolbars and the references list, but still, whenever i try to drag a shockwave flash instance on my win form, i get the error: Failed to import ActiveX control, please ensure it is properly registered. does some one have any idea how to add flash comntrol as we used to do in earlier versions Please reply this ASAP. Thanks and regards. Syed Mazhar Hasan I have alwats the same problem , ...Show All

  • ajpharrington Problems to pass a form parameter from vb.net to vb6 com dll

    Hi! I have a dll component developed in vb6. It receives a form parameter type throught a method called initialize. I setted it type to Object because my vb dll is used from vb6, delphi, etc. Public Function initialize(form As Object) So, when I try to call the method initialize() from my vb.net app I'm having the following problem: System.InvalidCastException was unhandled by user code Message="Specified cast is not valid." Source="Interop.MyDLL" The vb.net app code: dim myDLL as new MyDLL 'ok dll.initialize(Me) 'error How can I call this method without problems Thanks. The problem is you're trying to pass a .NET WinForm to a VB6 DLL. VB6 Forms and .NET Forms are different types, so that's why ...Show All

  • msaradhi SQL parameter ? isn't working correctly in Visual Basic.

    I have a tutorial that I am following for my project, which says to use the following SQL statement: SELECT ID, last_name, first_name, phone_number, date_joined FROM members WHERE (last_name LIKE + '%') This is supposed to perform a wildcard search for a partial last name, using the following call: Me.MembersTableAdapter.Fill(Me.FindMemberNameDataSet.members, _txtLastName.Text) However, when I run the code and try the search, I get the following error: Incorrect syntax near ' '. (Sql exception was unhandled) I know how to handle the exception, but I definitely don't want an exception there. I'm not sure what is wrong with the syntax of my SQL statement or my VB code. Can someone help me out its i ...Show All

  • sniwas24x7 Parsing a non-delimited(space I imagine) text file

    I have a text file that has been exported from a Progress Database v8.23e (this is an old system, i know) . I need to parse the data to a dataset or XML or anything that has structure heh, any ideas Ive tried multiple threads here on parsing text files as well as searched MSDN/Codezone and they did not work. 0278XX'S XXXXXX PXXXXXX #49 101new multi unit 94919S & W WHOLESALE SAND ACCXXXXXX GRILLED CHICKEN SALAD 5.00EA428565-00 3.95 09/07/06 0278XX'S XXXXXX PXXXXXX #49 101new multi unit 94919S & W WHOLESALE SAND ACCXXXXXX CHICKEN SALAD ON CROISSANT 4.00EA428565-00 3.25 09/07/06 0278XX'S XXXXXX PXXXXXX #49 101new multi unit 94919S & W WHOLESALE SAND ACCXXXXXX CEASAR WRAP ...Show All

  • vec7or Referring form objects

    Hi all, I'm converting a VB 6 exe project to a VB 2005 project. One main functionality in VB 6 that gives errors in VB 2005 project is as follows: In VB6, i have a initial form called frmApplication that loads up. There are two other forms Form1 and Form2. Based on the user settings, frmApplication then loads either Form1 or Form2. Form1 and Form2 differs only by appearance. What i mean, all the controls in both the forms are same including the name except there position of the control on the respective forms. When frmApplication is loaded, it creates a object of Form1 or Form2 depends on the setting and assigns to frmObject. Now in VB6, i access the controls in Form1 or Form2 in runtime using frmObject.lblName.Caption = ...Show All

  • andradrr Visual Studio 2005 Pro - Academic Version

    I'm thinking about ordering VS Pro from school, but they can't give me details (it's not kept in stock)... does anyone have the academic version and does it require internet regsitration/activation Some people are saying yes, others are saying no. Thanks Any mention of off topic item was evidence and reasoning for this on-topic question. Firstly you are talking about a different product (Vista) Vista is a Beta (Which are intentionally set to expire to avoid having people using the product long after the actual product is released) - It is by your own definition a preview. If you look into the license agreement you'll see it is different from the actual version. If you are not ...Show All

  • ADub Login Form VB 2005

    Hi , i can’t make a loging form, checking a database users, i already have the users db, but how can i made th validation, a full step explanation it'll be great, please help me i already read a lot of books about vs2005, but i still with this trouble i'm usin Microsoft SQL server, thanks a lot!!! yes, but first i wanna made th connection to data set, and check te names on it, but this is the trouble i don't know how, this is my first time i use sql databases, i used the acces db with visual basic 6, so it's little hard when i click in ok the user must exist on the db if not then cancel the login to the main form, please help!!! hehehehe thnaks a lot pal! im sorry i dont follow :-) Do you mean tha ...Show All

  • Aleniko29139 Constant Mouse Input outside of form

    I am currently creating a program that I want to execute a string of code on every mouse click, but I want it to activate without the mouse click having to be on the form. Also, is there a way to make this program run constantly after the program has been activated just once For instance I would be able to run it once, and if I wanted a sound to be played, than even after i closed the program it would continue to activate on mouse click If i need to I suppose i could make it have an invisible main form and not show on taskbar etc and just have it continually running but i would prefer not to. Yes, search "Mouse Hook" on these forums and you will find your answer people are looking but so ...Show All

  • cgpl How to ADD a record in a MS access

    Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=H:\VB.net\addressbook\bin\AddressBook.mdb;Persist Security Info=True") Dim sql As String = String.Empty 'determine if we are adding a new record or editing an 'existing record based on the value of the _contactID 'Variable If _contactID = 0 Then 'Adding a new record 'Error is coming in the below insert statement sql = "insert into Contacts(Title,FirstName,LastName)" & "values(" '&txtTitle.text&'","'&txtFirstName.text&'","'&txtLastName.text&'")"" End If 'Open the connection to the databaes and execute the ...Show All

  • Guardian-ND Read VB6 variant from a binary file with .net

    I need read from my .net application a binary file written with VB6. I can get longs and string written with VB6  with .net BinaryReader class ut how can I read vb6 variants Do you know how variants are save in binarry file how much bytes do they take Thanks in advance Thanks a lot. It run sucessfull. But where do you learn this There is any documentation I suggest that you use ReadBytes(2) to skip the variant allocation then use ReadString, ReadBytes, ... etc when you enter a variant block Best Regards Thank you. Do you know where can I find any documentation about it I need know how it save in binary data a variant with a date too. I think you will have to code it your self, we wil ...Show All

  • fiaolle [OTP] Missing: ReportBuilderAddIn 1.0 Type Library

    Hello, Problem occurs within Excel 2003, whenever entering a formula I get "Can't find project or library" Under Tools - References I see I'm missing ReportBuilderAddIn 1.0 Type Library. I can't uncheck it and I'm not sure where to browse to find that Library. Can anyone help Kevin These forums are for VB.NET questions. The VB within Excel is Visual Basic for Application. VBA is a very different product from VB.NET and there are some other locations where youy will probably get a quicker and better response to your VBA questions. Y ou may find more assistance in following which specifically deals with VBA development. http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=7 ...Show All

  • tkroll How do I unzip a file at runtime?

    I'm making a game which has an animated 261 frame intro (entirely BMP images). I would like to be able to extract them from my project's resources at runtime and then import them into DirectDraw to draw them. The problem is, my computer simply doesn't have enough power to build a project with 261 800x600 bitmaps! Instead I would like to extract them from a ZIP file contained as a resource in my app, at runtime. How would I do this hi SJWhiteley , Let me know where such project is, because I don't see it. It doesn't What about the System.IO.Compression Namespace There's a sample in the 101Samples. Thanks for your help everyone, but I already gave up trying to use compression and just shoved all th ...Show All

  • PitbullPT The Code Did not work

    WHAT IS WRONG WITH THIS CODE: When I print using Button8 it prints a blank page only . I want to print the Text File on the C drive. Imports System.IO Imports System.Drawing.Printing Imports MathCalculation Imports System Imports System.Drawing Imports System.Windows.Forms Public Class MathCalculation 'Declare num1 and Num2 as variables Public Num1, Num2 As Double Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Assign text box values to variables Num1 = TextBox1.Text Num2 = TextBox2.Text 'Determine the checked button and calculate If RadioButton1.Ch ...Show All

  • Zamial FlowLayoutPanel Problems

    Hi I find that if buttons are added to a FlowLayoutPanel, the AutoAcroll (via mouse wheel)works. But if the added controls are pictureBox, then the autoScroll does not work. Does anyone know why The code I used is: Dim panel As New FlowLayoutPanel Dim control As New PictureBox 'Button ' panel.Width = 300 panel.Height = 500 panel.Location = New Point(10, 10) panel.FlowDirection = FlowDirection.TopDown panel.AutoScroll = True panel.BackColor = Color.AliceBlue Me .Controls.Add(panel) control.Width = 200 control.Height = 1300 control.BackColor = Color.Blue panel.Controls.Add(control) Thanks. Hi Although the similar description & ...Show All

  • Littletommy tab ASCII Character Code

    curious what the ASCII Character Code for "tab" would be, I have a text file that is a database table dump and every field is seperated by a tab and need to know what the ASCII character code for it is so I can write a little script to interpret the text file. Thanks in advance. Mitch if its split by a tab then why dont you read the entire row into a string() array, for example, splitting it at the tab (VbTab) 42 9 Not to get into any arguments but I'm sure its 9 http://www.ascii.cl/ http://www.cdrummond.qc.ca/cegep/informat/Professeurs/Alain/files/ascii.htm http://www.lookuptables.com/   All seem to point to a horizontal tab character as having a value ...Show All

303132333435363738394041424344454647

©2008 Software Development Network

powered by phorum