Answer Questions
AndySuwandy Visual Basic 2005 - mdf file not working correctly
HI. Ive been following the VB 2005 videos by Bob Tabor on the MSDN site and doing rather well, until I got to the lesson regarding databases. Ive had this problem before but thought that the video might address it and fix things. Basically in the project download there is an MDF file which is included in the project which I am then supposed to double click on to show details about the database. When I do this I am told that it cant d ...Show All
John230873 'Declaration expected' error
hi, here is my code, i receive strange error... Dim rptKadirReport As ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument() Dim reportPath As String = Application.StartupPath & "\.." & "\.." & "\" & "KadirReport.rpt" Private connStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=dental.mdb" Private conn As System.D ...Show All
Ken_H Issues with Express Registration and Activation
Now that Visual Basic 2005 and Visual Studio 2005 has shipped the final release, we have a new home for setup and registration issues for VB Express. Please direct all setup, install/uninstall, and registration issues to this forum: Installing and Registering Visual Studio Express Editions Thanks, Paul It would be great if you could send the following information to v ...Show All
Flatscher Markus code snippet to write text to file
In the visual basic now book, it shows a code snippet to save all inputed text to a file. on following the instructions and path insert snippet/drives, files.etc/writetexttofile it inserts a code snippet, but not what is described. Also, it will not save anything. Has anyone else had this problem if it's not something that looks like: My.Computer.FileSystem.WriteAllText("C:\Test.txt", "Text&q ...Show All
mchart Visual basic 2005 Express - DLL/package Question
Hi all, Apologies if this is in the wrong forum. I'm a first time user of VB Express, having decided to take advantage of the year long MS offer for hobbyists to learn the trade. As such, if I try the patience with questions the are potentially rudimentary to some of you, please bare with me. Here's my concern. A while ago I sent some sourcecode for an application that was written in VB6. These include the .vbw/.vbp and whatnot files. I don't ha ...Show All
J Quick Set Snippet ComboBox MaxDropDownItems?
Is there a place to increase the number of items displayed in the Code Snippet ComboBox I'm planning on creating many snips and having to scroll the control is annoying. Thanks! -Duke Very cool, thanks! Hi, Quoting a reply I got back from the owner of Snippet feature: " Actually if you hover the mouse in the bottom right hand corner you can drag the window size as expect ...Show All
Morgan Arvander Connecting to existing database with VB 2005 Express
When I select an existing SQL database and try to connect I receive the error: Failed to generate a user interface of SQL Server due to a failure in starting the process for the user instance. The Connection will be closed. Any Ideas I am using WinXP Home Edition, have installed SQL 2005 Express. Checked, It is running...the "instance" you refer to is the Process ID of 1308 ...Show All
Mark FMJ Drawing a line on a user control
Hi I'm trying to learn about the Graphics in VB by making my own simple Graph control. But i've hit a problem straight away which seems to be a VB bug i' wrote some code to draw a line across the bottom of the control with a margin of 40 from the bottom and a margin of 20 either side. it all works ok unless i make the form over 395 high or 400 wide. if its height >395 i cant see the bottom x axis at all if the width is over 400 then the x ax ...Show All
CodeKracker How to set-up relative paths in VB
Hi there, Hope this is a simple one. Its related to setting up an application and its associated support files for a ClickOnce deployment. Using the Solution Explorer I have added a folder to my project. So I have MyProject\Graphics I have then added the graphics file to this folder and set its properties to "copy always". So I have Myproject\Graphics\MyImage.jpg Then I have a included a picturebox1 on my wind ...Show All
Eric Burcham Looping a select case argument
Trying to loop a select case argument that will read the text properties of labels in a group box and then change the background colour of those labels. so far however i can only get the loop to read the first label and then change the colours of each label to that select case result. sample of current code. Any help appreciated! For Each lb as Label in GroupBox1.controls Select case Number case 1 to 9 lb.backcolor = "co ...Show All
IvanHB Using the same structure in multiple objects
I have the same structure of data (customer name, location, status, etc.) that I want to use in multiple objects within an application (one to read the data from a file, one to display it, one to create a new or updated version, and one to save it), and I'm not sure what's the "correct" way from an object oriented point of view of how to define the same structure across all of the objects. Currently, I've got the structure defined ...Show All
Matias Toro Photo Matching Database
User selects a picture and querys the database for a match. How do I write the Code for this SELECT id, image, description FROM pictures [database] WHERE image EQUALS picturebox1.image I am concerned that the "image" format stored in the db will not match picturebox1.image and that I probably will have to convert picturebox1 into a binary array to match the format already in the database. Furthe ...Show All
Vivek M running an activex document from a shared folder in a server
Hi everyone. I have created an activex document project and I deployed it to other computer (server) using the deployment wizard of VB6 to a shared folder(OTFORM). I did set the sharing & security of the OTFORM as 'full access'. I thought everything's fine. Because it runs well in my browser. But when I checked and used the other computer's browser, that's how my problem started. I always get a 'download dialogue box' asking me if I'm going ...Show All
Dave Abrahams Changing a cellback color of a defined msflexgrid cell??
Hi everybody, Think that, I have a MsFlexgrid control and a Command1 on my form .. When I click the button , I want to select a defined cell and give it a color....... I couldn't do it But I especially want to mention this ,I don't want to give color to all the cells in grid.. Only for given coordinates of a cell ... example like (4,2) row 4 and col 2 Below is my test MSFlexGrid1.CellBackColor = MSFlexGrid1.TextMatrix(4, 2) = vb ...Show All
Maplesoft Startup Programs
Ok i have a made a program but encounterd some problems. My Program is acutally a reminder program where it will show a msgbox the user when it is time. 1.) I want to make it a startup program and i know to do that i have to put the .exe file under C:\Documents and Settings\user\Start Menu\Programs\startup. But if i distrubute this program with an installer, lets say with clickonce publishing which is the default. How can i make the installe ...Show All
