Answer Questions
Deler Strange error when trying to create a new project.
I recently opened a project that I had already created and edited it. After saving and closing, I went to create a new project, and now I get this error: Access to the path 'C:\...' is denied. I don't understand what is going on, just a few minutes ago I could create new projects. Also, when I try to open an already existing solution or project file, I get an error saying: Unable to read the project file 'example.vbproj'. The p ...Show All
Mr. Furious datatable of SQL 2005 express can't be saved
In the tutorial of msdn for record sets, I followed all steps but I cannot save any data to my datatable when I press save button in vb 2005 form. Furthermore the code for saving record doest not work as well. Following code is not working: Me.AddressesBindingSource.EndEdit() Me.AddressesTableAdapter.Update(Me.FirstDatabaseDataSet.Addresses) The problem was the database file. by default the "Copy to Dir ...Show All
DagAnderson Problem with classes & objects???
This has happened on 2 PC's (work & home) with both VB Express & C# Express. I'll use C# as the example. When you create a form you automatically get "using Foo;" created at the top. I'll use System.Data as an example. Since it's already "using System.Data", I expand that and add OleDB to the end of that. No intellisense but no worries, it works. I create the connection object as such: OleDBConnection conn = new OleDBConnection(); T ...Show All
Juan Esteban Giraldo RSS Reader Exit Problem
When I exit my RSS Reader I get the following strange error message: System.Data.SyntaxErrorException was unhandled Message="Syntax error: Missing operand after '=' operator." Also the following line in my code is highlighted: Me .ChannelBindingSource.Filter = "FolderID = " & FolderComboBox.SelectedValue This corresponds to line 506 on Snapshot 9 of the downloadable project: Me .ChannelBindingSource.Filter ...Show All
Greg Baxter Need help with for and pictureboxes
I'm making a map editor to make maps Every tile is a picurebox. In the menu there is a command "New" wich will load all the default pics into the picturebozes, so you can make a new map i created this for statement dim i as integer For i = 0 To 391 PictureBox(i).image = My.Resources.Image_default Next i But this doesn't work. There is something wrong with the PictureBox(i).image Please help me. I'm using vb2005 Thanks in advance, Radexxio ...Show All
Dexter Lo My.Settings Values Read Only
Hello All, I have a bit of a problem here and I can't seem to figure it out. My project is a Class Library. This Class Library is one project which is part of a larger solution. I have several application settings which are set up as part of the project. Within the Class Library's root class, Application, there are two methods. GetSettings and SaveSettings. GetSettings retreives the My.Settings values and sets them as various property values ...Show All
Spider-X Scan using WIA?
Hey, I have searched the forum a bit about WIA, but really didn't get any useful answers. What I want to do, is scan an image from my old HP OfficeJet G85 scanner. I'm not sure it supports WIA, and TWAIN really seems like a pain in the neck. Can anyone provide some really simple VB code to use WIA I already got: Dim Item As WIA.Item Dim Dialog As New WIA.CommonDialog Dim Device As WIA.Device = Dialog.ShowAcquireImage ...Show All
Mike55 Setting page size in code HELP PLEASE
Hi, Can anyone help with this please I am trying to set the paper size for the print page method in code, however, It fails to change I have tried many properties and ways of setting it but it fails Basically I have a app that saves the page size to a xml file as an interger value that represents the paper size. Eg 8 = A3. I cannot seem to change the default value of the PoPrintPage_Printpage method from the value of 9 (A4) ...Show All
teyc NC messages oddity UPDATE
I'm using VC++ Express to create a DLL for a global hook system I'm writing. The unusual thing is that as I'm trying to catch the non-client messages I can't seem to get the to trigger properly. For example I'm trying to catch the WM_NCRBUTTONUP message anywhere on the non-client area and it doesn't trigger unless I click the tiny little border around the non-client buttons. If I click directly on the minimize button ... nothing happens except f ...Show All
ECS a few questions...TextBox and changing an Image
Actually one more question to that list. I just ran the application and got an error. I'm working with a node list and it says my node list variable doesn't have a value. I'll show a section of the code, and let me know if you need to see more. I realize now by looking at it that I declared the variable, but never set it. How do you set a node list variable Dim xmlCCNodes As System.Xml.XmlNodeList Dim xmlCCNode As System.Xml.XmlNo ...Show All
Gooddaddy How to Format date from 01/01/06 to 01, Jan 2006 in VB 2005
I am having a problem. I just installed the new version of VB 2005, and I don't know how to format the date. For example in VB 6.0 I do as fallow: CODE: Me.panelDate.Caption = Format(panelDate, "dddd"", ""dd MMMM"", ""yyyy") DISPLAY: Sunday, 01 January 2006 If I do similar using the VB 2005 CODE: Me .LabelDate.Text = Format(LabelDate.Text, "dddd"", ""dd MMMM"", ""yyyy" ) DISPLAY ...Show All
Toddap_MS Random Letters
How do I get a Random Letter I think I need to first get a Random number, then have the number = a Letter i.e A=1, B=2 etc but how do I do this Any letter Will any English CAPITAL letter do Dim letter As String 'for any CAPITAL letter in English Randomize() ' Generate random value between 1 and 26 Dim rndLetter As Integer = CInt (Int((26 * Rnd()) + 1)) letter = ChrW(rndLet ...Show All
Brian_Russell I do not want SP2. I do not want SP2.
Hi. I run on Windows XP Professional SP1 and I really need Visual Basic .NET Express edition, as SharpDevelop2 is very buggy (atm). The thing is: I do not want SP2. Please do not flood me with comments such as "BUT OMFG SP2 PWNZZZ SP1 ! !" but tell me one good reason why to update into it. Not "security", not "more stable", but something real. Incase it comes with some updates needed by the Visual Studio's, why not ...Show All
mhams VC++ Express 2005 - Missing User Created Control project template
Under VC++ 2003 one could create a new custom control by using one of the standard supplied templates (i.e windows control library .net template) However, this project template is not provided as an option for the VC++ 2005 Express edition - this is a real shame. Has any one manged a suitable workaround Thanks for the posts. The methods describe do indeed work. Is it possib ...Show All
Gary McAllister nothing after if statement works
I have made a blank windows form and added a timer with this code " private : System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) { if (y==1) MessageBoxA(hWnd, "hi" , "cool" ,MB_OK); y=y+1; } " I declared static int y earlier and I just keep getting never-ending messageboxes why doesn't my compiler process the y=y+1 Where is y set to 1 ...Show All
