Answer Questions
Venkata Prasad K How to compare grapical (bitmap) data?
I'm making this program for printable binary data. (that desn't matter now) But what does is how to compare that graphical data from a existing data base. This might give you the idea. You have seen how CSIs get a fingerprint, scan it(make it a piture) and then search AFIS, or another crime database That is what I'm trying to acheave. Please Dont let me down, on this! Or simply put, I'm trying to make a binary (bitmap)data comparing program. Of course after that data has been pocessed ( deleted all colors that would interrupt search, just the fingerprint color is there, nothing else). You could probably write something like this Dim b1 As Bitmap = new Bitmap(PictureBox1.Image) Dim b2 As Bitmap = new Bitmap(PictureBox2.Image) ...Show All
Ignatius V Ignatius Error in Using API functions... help
When i use a API function, it raises an error regarding protected memory.... Need help... Im new to vb.Net programming. Thanks... Additionally, the reason you are probably getting your error is because you haven't declared enough space in the return (out) string. As mattias said, the pinvoke web site is a good place to start; they also have a VB example of using the GetPrivateProfileString() API. I'd recommend creating a class wrapper to wrap your API calls: if you are using the INI retrieval functions, I'm sure you will be using them more than once (I believe fxCop recommends a specific class name, but I usially create a WINAPI class and shove all the calls in there with nice wrapper functions). what API functio ...Show All
stlaural how to work with dll's
Hi there, I'd like to ask how i can create a custom DLL with bitmaps in it and after then how can i get those bitmaps in my application and i'd like to do the same with strings. I'm using vb.net 2005. thnx for the replies. Creating a New "Class Library Project" will compile to a dll. You can store your strings in a collection or as a resource....you can store the bitmaps in a resource file or in an imagelist....You can also use your local project resource files to do this.... if i would like to store them as a resource how could i do that and after that how can i use them in any of my applications ...Show All
Dustin_H Newbie needs guidance on the next step past GUI--Importing Stock Data into App
I'm taking a VB class for financial analysts, and we're tasked with constructing a progrm we can use on the job. What I'm trying to do is build a VB program that will take Stock and Company information from certain sites on the Internet and extracting that information into the program to do some research on a company before investing. I have some grand plans, but based upon what I have read/heard I'm starting by taking stock information from two websites (Yahoo Finance and Reuters) and populate several different tabs in this program I'm making (exporting to an Access database and Excel are also in the works, but I'm taking baby steps). I built the GUI with 4 different tabs that will house Earnings data, Trading Information, Company News, ...Show All
Jorryt IntelliSense for members inside a Sub or a Function?
Hello, when i type me. i get a list of available class members. But i must type all the names of the variables which are defined inside a procedure. It would be nice if microsoft give us something similar to me which is for inside a procedure. For example p. and shows all avaiable procedure members. This would reduce typing. Regards Markus The IntelliSense is quite nice when looking at members of a class. The dot (.) operator is only used to denote classes that belong to namespaces and members that belong to classes, so using the dot again for private members of a method wouldn't work. Hopefully your methods are compact and not too "busy" so you don't have tons of stuf ...Show All
martona WebBrowser will not work with Flash. ANYBODY HAVE A FIX
I have created a web browser and after like 2 clicks on any flash enabled web page it disables and i cannot click any type of flash anything it doesnt work. Does anyone know a fix to this I looked in Tools>Choose Toolbox Items. Although there's many choices, none seem to be obvious. Is there a specific item I should be looking for <script language= "VBScript" > sub fs_fscommand( ByVal command, ByVal args) Call fs_doFSCommand(command, agrs) End Sub </script> Brun, A fuller explanation and description of this would be helpful. Bruno Yu I am really new to VB.Net can you please ...Show All
Richard Berg MSFT n00b - Compiling Code
Hi there, I am a newbie to VB.NET. And have just started learning from a book. I've gotten part way through the book, when I realised that I can no longer run code that I have saved and closed out of. I can't even get back into the designer. Also, how do I compile code that I have written so that it can be run on someone else's computer without having to have VB.NET Express Edition installed and only the VB.NET runtime All help much appreciated. To compile a project without IDE you will have to use the command line compiler VBC. You should find it somewhere on your system when you installed .Net Framework porperly. Greetings What have you done to "close ou ...Show All
mstrecman SQL Server Express 2005 Edition SP2
a question about the movie collection starter kits I am running Vista RC1 (Build 5600) and vb express 2005 I downloaded and install SQL Server Express 2005 Edition SP2 - Since SQL Server Express 2005 Edition SP1 does not work with Vista But when I try to run the collection app or if I try to download and install the Amazon version I get the following error message: There was a problem loading data: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be cause by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) ...Show All
kats What's the deal with Generics
Hi, I have the following Function Public Function EnterOrder( ByVal custCollection As Generic.List( Of CustomerDTO), ByVal OrderDTO As OrderDTO) As Boolean Dim customerBOCollection As New Generic.List( Of CustomerBO)(custCollection) ...............Do stuff End Function I get an error when I run the program basically saying unable to convert CustomerDTO to CustomerBO. What other way around this do I have CustomerDTO is my serialized object and CustomerBO (name speaks for itself) is the one with the rules etc. With one customer it works like this Dim customerBO as new CustomerBO(CustomerDTO) I now need to pass a collection of customers and I was turning to Generics for assistance. Any ideas ...Show All
Euclidez Static Variable Does Not Retain Value
I am working with VB 2005 Express Edition. Coming from VBA, I have used static variables before with success. However, today I included Static declarations in a private non-shared event handler sub and had to discover that the static variable values were reset every time the sub was invoked. The class that contains the event handler is instantiated only once. I read the online help (ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_vbalr/html/19013910-4658-47b6-a22e-1744b527979e.htm), but to no avail. It may help to point out that the event handler sub is responding to the SelectedIndexChanged event of the CheckedListBox . I also noticed that whenever I click on any of the checkboxes that the event handler is invoked twice, w ...Show All
VizCoder Trouble Including Image Files with a Program Distribution through the Resources folder
I'm having some trouble including three image files I need via the Resources folder. In my Resources view, the only 'Persistence' options are 'Linked at compile time' and 'Embedded in .resx' - trying either one, I get a System.ArgumentException when I try to load the images from "Resources\image.gif" - I have three other images that load perfectly find from "Resources\otherimage.gif" - what am I doing wrong Hi, Try putting all other files in the BIN folder of your project/solution as i've been told by my lecturer, that is the 1st place the Visual Studio IDE-compiler looks for files. Try also ( if you wish ), files in the main folder of your project/solution. You wou ...Show All
Dawa Tsering Not allowed to pick directory for a new windows application project
When I am using Visual Studio 2005 professional doing VB programming I am not able to specify what directory I want the solution to be created in when I create a new windows application. I had the express edition installed previously. Anyone have any idea why I am not allowed to specify a directory for the solution Thanks in advance. If you look in Tools -> Options -> Project and Solutions Tab -> Visual Studio Project Locations. This is the root directory for all your projects (which you can change) When you create a new project the name of the project will be the name of the folder under this Project Location root folder above. You should be able to, what ...Show All
Dietz if suspendlayout doesn't work, what else should I consider.
on application startup I want the form to all be a consistent dark grey control color until all the controls appear at once. Even though I have used suspendlayout for all controls associated witht the tabcontrol, including the panels it resides on, the startup of the app shows the light outline of the tab control, and when all the controls have been painted, the tabs are filled in where the light outline existed. Is there anyway to prevent that from happening Thank you, -greg good ideas James. Thank you. -Greg Hi Greg, This is not a best practice; and probably far from it. The first thing that comes to my mind is at the start of the coding change the Enab ...Show All
AndyPham Write specific error to a text file?
I have a vb.NET program that sends out emails, and I need it to write to a log file when it can't send emails to certain addresses. I need it to tell me what day/time, and what email address. I'm pretty new and I have never captured errors before. So far, I have the following error block: If _mailCounter.Text < MaxMessages Then 'DONT OVERLOAD MAIL SERVER Try System.Web.Mail.SmtpMail.Send(MM) Catch ex As Exception Err.Clear() End Try End If Any help is appreciated!!! Thanks! Tory Try adding the following into your catch block. You'll need to replace emailAddr with the actual email address and update the path to the log file that you want to us ...Show All
Ahsan Ali posting unbound DataGridView values into SQL database
Imagine a PO application that has a DataGridView with Columns: Qty | Object | Description | Price on the form. The DataGridView will be used to enter data. I have a Products_Table that I need those values to be posted into. What is the best way to do this Hi Azimuth There are many ways to skin a cat so the following is only one way which may or may not prove suitable for your project. The first thing to do is determine what data has changed, been added by the user. There are many ways that you could do this, so I won't pretend to understand your requirements well enough to prescribe 'the' method, but suffice to say, if you have your data stored in a data table, then its GetChanges method may prove ...Show All
