Visual Basic
Recent update: 2008-3-21

scanned image with no extension

239 byte By neerav at 2008-3-8
i m scanning an image through HP 2400 thro' my VB application, when scanning is cmpleted, file is saved in its network path..but with no extension, therefor my application does not show any preview, it should be saved in .bmp extension

Printer compatability library source code ?

269 byte By drinkwater at 2008-3-7
Is the source code available somewhere ? I don't want to emulate the VB 6.0 printer object - I just want to avoid using the stupid event driven .Net PrintDocument - I want to control page breaks myself - like in the VB Printer model. Having the source code would help.

Updating Report Links in MS-Access database.

622 byte By AndyRogers at 2008-3-7
Hi, I am a new bee to .NET. I have a Ms-Acess Database which is protected by password. This table contains tables, queries and reports. One more database contains links(references to the first database). If any table structure is changed in the first table, in order to update links I need ...

Click once requires system to be updated to Crystal...ReportSource Version 10.2.3600.0

118 byte By PhillipPutzback at 2008-3-7
Should the click once publisher or the build project have built these references and included them in the build?

Just a few questions

1240 byte By Kedhri at 2008-3-7
Hello there,My name is Kedhrin, I'm new to VB and i've only been using it for one day now. I'm making a simple application in Visual Basic 2005 Express Edition that will let me edit XML Files... visually!They are only one specific XML file, and there is 9 fields where the values can change.I ...

Code Analysis / nested classes / what to do

735 byte By AlChristoph at 2008-3-7
I discovered by accident that if I took the stuff I'd normally put in a module and nested it in a class (usually as shared) I really uncluttered the autocompletion lists. (I'm a great one for always typing system.windows.forms.... So seeing less and typing more is in for me!)OTH Code Analysis ...

Textbox databinding with table

548 byte By guest at 2008-3-7
HiI am using Visual basic 6 with Sql Server 2000. I have an editable textbox in my windows Form, which gets the value of a percentage field, say Tax_Rate from database. So the data field property of textbox is set to Tax_Rate. So I want to display the value to user after multiplying by 100 (%) but w...

Printer Compatibility

793 byte By ChrisAkins at 2008-3-6
StepOptional.Keyword specifying that the starting point coordinates are relative to the current graphics position given by the CurrentX and CurrentY properties.Here is a sample line:Printer.Line (x * scaleW * curZoom, y * scaleH * curZoom)-Step(w * scaleW * curZoom, h * scaleH * curZoom), ...

Updating Report Links in MS-Access database.

637 byte By AndyRogers at 2008-3-6
Hi, I am a new bee to .NET. I have a Ms-Acess Database which is protected by password. This table contains tables, queries and reports. One more database contains links(references to the first database). If any table structure is changed in the first table, in order to update links I need to ...

VB2005 Icons for Binding Navigator

916 byte By LeeM at 2008-3-6
The new data features in VB2005 are great, but when you need to do more than just form fill, I have found it to be too restricting. For example, I need to find the next available ID and fill it in, along with uploading pictures etc. In the end, I gave up trying to do it the 'easy' way and ...

Saving XML Files - XML Editing PLEASE HELP

1240 byte By Kedhri at 2008-3-6
Hello there,My name is Kedhrin, I'm new to VB and i've only been using it for one day now. I'm making a simple application in Visual Basic 2005 Express Edition that will let me edit XML Files... visually!They are only one specific XML file, and there is 9 fields where the values can change.I ...

starting VB .NET

501 byte By bdonnelly at 2008-3-6
Hey everyone. I'm a 15 year old guy, and recently I've been getting interested in programming. I've been learning C for 2 months or so now, and this summer I will be starting VB .NET, using my Uncle's 2003 books and CD's. I was just wondering if you guys could just tell me anything you ...

Problem with Combo Box in Data Grid in 2003.

113 byte By PraveenRaj at 2008-3-5
Can any one send a sample for the datagrid with a combo box in it in C# Regards, Praveen Raj R

VB6 interop to .NET webservice client

775 byte By tpollard at 2008-3-5
I have generated a C# client .dll for a .NET webservice. I did this by adding a web reference in VS and edited the .cs file. I have added interfaces and attributes for COM interop. I have it registered on a Win2k machine and cannot access it with VB6. Of course VB6 Intellisense works fine (I'm ...

Building a Data Base inside VB from Scratch

174 byte By WilliamHerold at 2008-3-5
I am trying to build a database inside VB from scratch...........usally i have used vb6 where i had the tools.How do i do this same thing in VB Express Edition Bata Version.

Windows APIs

480 byte By VijaySena at 2008-3-5
Hi, I want to know what are APIs and if they can be used in my programs.I want my application to show the preview of the different color schemes like the appperance tab of display properties in windows.Should i use any dlls?If so can you please tell me which one and how.I also want to be able ...

Sendkeys during program startup

552 byte By AlChristoph at 2008-3-5
To make life easier, one of the things I provide in programs I write is a /Sendkeys= parameter for the command line. What is always yucky poo in any given program environment is figuring out what event in the startup sequence is 1) Unique so you don't do it again. 2) Always will occur3) Will ...

Printer Compatibility

792 byte By ChrisAkins at 2008-3-3
StepOptional.Keyword specifying that the starting point coordinates are relative to the current graphics position given by the CurrentX and CurrentY properties.Here is a sample line:Printer.Line (x * scaleW * curZoom, y * scaleH * curZoom)-Step(w * scaleW * curZoom, h * scaleH * curZoom), ...

BIG error

4745 byte By DarkAngel at 2008-3-3
OK, I'm gettin this error 44 and I don't know what to do.Error 44 The "ResolveComReference" task failed unexpectedly.System.SystemException: The type library importer encountered an error during type verification. Try importing without class members. > System.MissingMethodException: Method ...

Post Publication Problem -

834 byte By ReneeC at 2008-3-3
Oh Jeez,I've been working for weeks on a project.It's been stable and I published it. The deployment works absolutely fine.It installs and is beautiful!BUT.... after publishing... I can not develop. I can not activate the code in the debugger. I can't do anything. The code has binary ...

Screensavers in forms..

256 byte By VijaySena at 2008-3-3
Hi everyone, I want to know how to show screensavers in a windows form & also want to change the the windows color schemes and themes from my application.Please help me I need this (quickly) for my academic project. Thank you.

exe file

191 byte By safi_h80 at 2008-3-3
How can I create an exe file from VB.NET project that include a data base? note:: I want to run the exe file in a computer that have no sql server and no .NET framework thank you safi

Problem with Combo Box in Data Grid in 2003

113 byte By PraveenRaj at 2008-3-1
Can any one send a sample for the datagrid with a combo box in it in C# Regards, Praveen Raj R

"TrollKit 1.0" - Not quite "Patterns & Practice" Material

2731 byte By J.C. at 2008-3-1
I am sure the "Patterns & Practice" team @ MS are squirming about this InteropForms Toolkit 1.0. Honestly, I am a little disappointed in the emergence of this toolkit. Ideally MS should’ve created a migration path process and set of patterns to allow the developer to understand ...

Post Publication Problem - WIth Application serialization and the IDE

834 byte By ReneeC at 2008-3-1
Oh Jeez,I've been working for weeks on a project.It's been stable and I published it. The deployment works absolutely fine.It installs and is beautiful!BUT.... after publishing... I can not develop. I can not activate the code in the debugger. I can't do anything. The code has binary ...

Non-Local Data in VB2005Exp

522 byte By haleyweb2005 at 2008-3-1
I know that the ability to use non-local data in the Express versions has been removed, but i also know that it is possible to connect to a non-local database using code. is there anyone outthere that could help me, i cant figure out what that code is, i am trying to connect to my SQL2000 DB, ...

WindowsFormsParkingForm error

692 byte By Erin at 2008-3-1
I have been developing a VB.NET application, and have been trying this week to test deploy it to other machines here in the office and keep getting some sort of message like "WindowsFormsParkingForm" error, memory location cannot be written to. This error comes up after the "End Sub" in Sub ...

Find command

185 byte By ddoolit at 2008-2-28
I'm Trying to code a btnFind to search for a serial Number and retrieve the page that it was originaly on. If I could just get a generic example that would be great. David

Tried it , seems to work great for modal forms. but mdi forms ?

1294 byte By PaulYuk_MS at 2008-2-28
Hi VB Community Members,We wanted you to know about the release of the new Interop Forms Toolit 1.0. In a nutshell the toolkit makes it easy to create Windows Forms in VB.NET and then add them to an existing VB6 application. This makes it much easier to extend your VB6 app gradually and ...

Can't install Refactor

381 byte By TimFerguson at 2008-2-28
OS = Windows XP Pro SP2 Tablet PC edition. VS = Visual Basic 2005 Express Edition Beta 2 with default folder paths etc. VB is working fine. I downloaded Refactor 1040 and executed it with full Admin privileges, but the install stops almost immediately with the error message "Setup could not ...

2 questions about Sql Data Adapter

1142 byte By Gosovic at 2008-2-28
1. When we use Data Adapter Configuration Wizard to make Data Adapter, there is a checkbox option:"Refresh the dataset: Indicates whether you want the wizard to generate code that re-reads a record from the database after updating it. The Select statement is added to the corresponding command ...

Problems with ADO .NET

1220 byte By Sugoiram at 2008-2-28
Hi, I'm trying to pass a LongVarBinary data type parameter to a dynamic SQL, but it gives me a Syntax error.That is in order to insert a blob data type under Informix DataBase. The code that I'm using is the following:'******************************* dim intValReturn as integer = 0 dim ...

mscomm32.ocx : file is missing or invalid

379 byte By YimTaka at 2008-2-27
Hi when installing a visual basic 6 project in Vista 32/64, the process completes fine but when i try to execute the file after i get the error:"component 'mscomm32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid".I have made sure i have the ...

Can not register for COM Interop a dll vb 2005 application

984 byte By rtejada at 2008-2-27
Hi everybodyI migrated a VB 2003 project to VB 2005. It has as main output a dll library which I need to register for COM interop. The application builds fine until I check the compile options "Register for COM interop" .I get the following errorError 1 Cannot register assembly ...

Add New Data Source for My SQL doesn't work

183 byte By MichaelDyrnaes at 2008-2-27
I have tried also installing and using the ODBC driver version 3.51 and the My SQL driver 3.1.8. None of these work. What do I have to do to add a new MY SQL data source? Michael

Singleton Pattern - Shared/Synclock confusion...

8590 byte By BradHehe at 2008-2-27
Given the code below, I am trying to implement a "double-checked" constructor for a singleton pattern essentially....What has me confused is how I should handle my locking. In examples I found it often showed the simple "SyncLock Me" approach to lock a section of code. When I try to use this in ...

How to save and load user ordered columns in the datagridview-control?

796 byte By Macy-Mike at 2008-2-27
Hi NG!First, sorry for my bad English The datagridview-Control enables the user to order columns as he like. But how do I store the order of the columns and how do I set the column-order in the way the user want to?I searched for a sample about My.Settings in association with the datagridview ...

Any easy way to print a "large" form?

583 byte By jptrt at 2008-2-26
I've got a VB application that has a number of 1280x1024 forms. I'd like to be able to implement a "print screen" function.I tried the PrintForm Power Pack, (Form.Print), but I only get about 80% of the form, so the form must be too big for a single page (other threads say this is ...

Call a vb.net form from a vb6 mdi Container

716 byte By Steve1965 at 2008-2-26
Am i overlooking something ?I followed the instructions and created a . net interopForm project.Referenced everything in VB6A vb.net form expects the property MdiParent to be set ...This property is not available to set , will i get there by adjusting the interface of iiForm ?Any suggestions ...

IntelliSense code snippets FAQs

59108 byte By Lorenzom at 2008-2-26
Hi Everyone,IntelliSense code snippets are one of the coolest new VS features. One of the things that makes them so cool is that they're extremely easy to use. Here's a list of FAQs that should give you some more information on code snippets, including how to create your own.Should you have ...

replace listbox item

168 byte By garmhappy at 2008-2-26
Help, I can't figure out how to replace an item a listbox. I can delete the selected item and add the nw item but there has to be a better way Thanks

Why doesn't this declaration work in my forms

393 byte By dennist at 2008-2-26
Why doesn't this declaration work in my formsImports microsoft.VisualBasicImports System.DataImports System.Data.OleDbImports System.IOPublic Class ClassPrimary Friend s As String = ControlChars.CrLf Shared Sub main() Application.Run(New frmStartup) End Sub End ClassWhen I type s in a form it ...

adding new record with MS data form wizard? If you are dealing with a SQL database use INSER

697 byte By maqk at 2008-2-25
I have some problems with the data from wizard itemthe wizard asks for dataset, connection, tables, & in lst view, since i want the add, delete updata all buttons, i select the non grid view [individual records that is]Now i have been succesfull in updating any record MashaAllah, haven't ...

Why Not C#?

732 byte By LeonLangleyben at 2008-2-25
First of all thanks. It is a great toolkit. Well done.I have existing VB6 application and the toolkit will be very helpful. Bu I am prefer C# now. So why not expand Add-In to support C# code generation, and add some C# templates. I did some reverse engineering to achieve this. You can see ...

zip and unzip in setup project

852 byte By snowbear at 2008-2-25
Because there are huge number of data files in my project, I try to zip them together to a compressed file and then uncompress them back in the installation process.I used pkzip to compress all the files to a zip file and then convert it to a self-extract exe file, finally I add the exe file to ...

Solution

425 byte By Gosovic at 2008-2-25
How to find row position after table sort? Datagrid is binded to ds1.sometable. I have DataRow object or DataRowView from cm.Current and position before sort (cm.position or dg.CurrentRowIndex) but how to find where is its position to navigate DataGrid to select row after I re-sort datagrid? I ...

Visual Basic 2005 MenuStrip RadioCheck Properties

192 byte By lew26 at 2008-2-25
I can't seem to find the radiocheck properties for menustrip menu's it is in earlier visual studios version. does anyone here know anything about that? I would surely appreciate the help.

Find all PCs in a network. Try PING.

100 byte By PeterK123 at 2008-2-24
I am using VB 2005 How can I search all active PCs in a network in vb.net Regards

Just in: Interop Forms Toolkit 1.0 for gradual VB6 to VB.NET upgrades!

1294 byte By PaulYuk_MS at 2008-2-24
Hi VB Community Members,We wanted you to know about the release of the new Interop Forms Toolit 1.0. In a nutshell the toolkit makes it easy to create Windows Forms in VB.NET and then add them to an existing VB6 application. This makes it much easier to extend your VB6 app gradually and ...

Auto Indenting

328 byte By MSRaynsford at 2008-2-24
I'm currently coding some opengl in visual basic.net 2005 express edition. I have a lot of pushmatrix and popmatrix function calls and I am having trouble working out which start and ends connect. Is there some way that I can make the code between the two statements autoindent like it does ...