Answer Questions
Fartlek Problem with Databindings
Does anybody know what the exception error report "child list for field address cannot be created" that has appeared in a programme that has previously worked fine. I have no idea what change I made that has caused the eror to appear There is nothing in the MSDN list remotely halpful. regard Colin Reid Colin Reid, I am sorry for the delay. How about your problems now Actually I don't know what cause the problems after you change some certain code in the project, however, I suggest you to look at the following sample code on the Add method and hope the can help you to correct your code: Private Sub BindTextBoxProperties() ' Clear the collection before adding new Binding ...Show All
R.Tutus save file on another have the same name :"overwrite"
hi : how can i save file overwrite on the another have the same name I threw in the conversion as a little extra You can save the bitmap to the same format if you leave out the format-specification, or use the same format as the original file. thanks nogchoco .. but the problem is : after open file i try to delete file but i cannot access the file , because the file is used When you are directly pointing the panel's backgroundimage to a file, then you are creating a connection between the two so when you then try to overwrite that file, you get an error because the panel is still using the file as b ...Show All
Stark77 Problem with foreign key update
Hello everyone, I am having trouble with a table I am trying to update. The table contains information about a client's cases, so it has a foreign key to the CLIENT.CLIENTID column. However, when a new record is created, the CASE.CLIENTID column is always blank. Note: I am using databound textboxes to show this information. I certainly don't want a databound textbox where the user has to manually enter the CLIENTID value for this particular case. So there must be a way to, before the commiting the new row to the list, setting this columns value, manually. After trying various ways to reference the new row's CLIENTID column, including using the BindingSource.AddingNew event, and trying to set the value manually into Bindingsource.Cu ...Show All
brenzy Data Sources Window Is Inactive and Data Sources Disappear
Can someone please help... I have been working on a project in Visual Studio 2005. After changing some of my data sources in the Data Access Layer, all data sources disappeared in the Windows UI layer. This was all working fine until I changed data sources in the DAL and built the DAL project. This is the third time this has happened. I have rebuilt my laptop from scratch, reinstalled Visual Studio 2005 clean and tried all kinds of other things including scraping my whole project and starting over. Everything seems to work for a while until I start making changes to the schemas in the data layer. I have seen a lot of older blogs and posts on this issues but none recently for the production version of Visual Studio 2005. I am using ...Show All
Shane Fatzinger Evaluate a string expression
Say a textbox's text is (3*4) / 2 How could I evaluate that Or evaluate whatever is entered in the box If possible I want the result to be of type Decimal Thank you. To do this you need to write a parser. All that huh So I would have to write my own string parser Is there a link with a tad bit more information When you 'parse' through something, in this case a string, you will be taking each character/word/line and doing something with each recognised value. So, you create a routine which splits the line into characters and you walk through the characters doing something with each one. This often results in a loop, a lot of case statements, and If/Then statements. This is a parser. Google has a lot of links ...Show All
ndroe Slow picturebox hover
I'm rather new at Visual Basic and a problem has accrued. The problem I got is that the change of image in the picturebox is slow, to slow to be acceptable. I've added the pictures to the resources and the event code looks like this: Private Sub menuplay_hover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menuplay.MouseHover menuplay.Image = Snake.My.Resources.menuplay_hover End Sub Private Sub menuplay_hoveroff(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menuplay.MouseLeave menuplay.Image = Snake.My.Resources.menuplay End Sub The original image that is assigned to the picturebox is called "menuplay". When you hover over the picturebox it takes somewhat long to load the image ...Show All
Techquest Stop Debugging Now Please
Ever since i installed vb 2005 some of my applications will not run!!! My Mcaffee programs are stopped from running by Just in time debugging finding a "32 bit exception error" this must be disabled how do I do that I dont mind the debugger running with the programs I create but not the ones already on my desktop!!!!!!!!!!!!!!! How do I keep my "terminal Services" on by default so when I start the computer they will be on Now I must always manually reset them Thanks Mitch I would suggest a few things. Tell as the actual exception that is occuring as this may identify what is going on. Tell us which versions of mcafee products your using as there ar ...Show All
Noorul Ahmed How to set the install path for application
I noticed that my app doesn't install to the Program Files directory as VB6 does it. Instead, the wizard creates a jumbled multi level directory and sticks your app in there. How can we change that Thanks. Right click on your setup project in the solution explorer window and choose view/file system, Good luck, Hobb.. Setup project. The applicaton and Setup program appear as two separate programs. I am unable to compile them into one. The app does publish and instill installs to a random directory. In the setup program, the output dir is listed as: [Program FilesFolder][ProductName]. I think the problem is the Setup1 Deploym ...Show All
yanivpinhas Startup Items? & Hiding / showing forms?
Basicly I'am requesting this: How does one create a 2 forms that you can move back and forth from though each form your NOT using will hide, on top of this, how do I dispose of one form and then come back to the form as a new instance. My theory was that i use 3 classess two as forms and one as a main class, the main class controls the instances on what is shown and what is not, though im unable to adchieve this. Has anyone got some sample code that can help me out .... Please keep things simple and straight forwards im repeat im currently a rook at this language. Thank you. not sure I follow. if you have say 2 forms, and the first form calls second form, when the second form is closed you simple Close() that form, it wi ...Show All
MattFletcher Creating an Error Log
Hello again, I have never done this but I thought it was a good ideal unless you can tell me differentlly. How do you create an error log. I know I will have to create a table for this, but I dont know how to catch the errors and put them in a file for observance at a later time. If someone can point me in a direction,code, article,etc. it would be appreciated Davids Learning do you mean to put it at the begining of the class dont forget i am still learning But you should seriously look into what exception handling each method contains. what do you mean Davids Learning If I use a db file what do i need as far as tables\columns. when you us ...Show All
Mikx generating textbox at runtime.....
Hi, i need to generate some text box at runtime and also during the form load... it gets a number from previous form is got and generates that number of textboxs... i tryed this code in form load... it's not showing any exception or error.. and its also not showing the textboxes. Dim stext As Integer Dim i As Integer CustomizeForm.Show() stext = CustomizeForm.ComboBoxSText.SelectedItem For i = 0 To i = stext Dim txtName As New TextBox txtName.Name = "TextBoxST" + i.ToString Me .Controls.Add(txtName) Next thanks Jane Your problem is For i = 0 To i >= stext This should be something like For i = 0 To C ...Show All
Kikkoz Strongly Named DataSet
How Can I Creat Strongly Name Dataset using the .xsd file Please explain me step by step because i don't have any idea how to create it But i want to use it in my project. SPPatel, Please take a look at this article with its link below: How to create and use a typed DataSet by using Visual Basic .NET or Visual Basic 2005 http://support.microsoft.com/kb/315678/ This article shows how to create and use a typed DataSet in a small Web application. Typed DataSets, which inherit from the DataSet class, create first-class members of a DataSet's DataTables and DataColumns, yielding the many benefits that come with the use of strong typing. ...Show All
inspired_one Multiple windows in TaskBar
I have a VB.Net app that can open multiple windows. When a few windows get open, they collapse on the task bar with my application Icon, the number of open forms, and the title (WindowsApplication1). Is there a way I can change the title to be my application title Thanks Hank Hi, I like having the windows in the taskbar. i just want to change the name of the title of the block in the taskbasr from 'WindowsApplication1' Thanks Hank I don't think its possible - instead you could just have each title bar of each form, the same textual description as the original form/title bar Hmm... Ok, I'd have thought it was picking it up from the exe nam ...Show All
admkca Where is the Fill() method?
I am trying to add new rows to MyDataBase.mdb with the below code. My problem is that it does not identify the columns. It fails with the error message “Name1 does not belong to Customers”. But it does so do Name2. I think it’s locating the database and table as I can retrieve data with the open code using SQL Select. Can anyone help Please hemo Dim connection As New OleDbConnection() Dim myadapter As OleDbDataAdapter Dim myDataSet As New DataSet Dim newrow As DataRow Dim MyTable As DataTable &nb ...Show All
BobishKindaGuy Settings Page in Project Designer
How can I add a setting in the Settings Page of the Project Designer of type MyCustomType Where MyCustomType is declared in the current project. The code below will add a single user scoped setting: Namespace My 'This class allows you to handle specific events on the settings class: ' The SettingChanging event is raised before a setting's value is changed. ' The PropertyChanged event is raised after a setting's value is changed. ' The SettingsLoaded event is raised after the setting values are loaded. ' The SettingsSaving event is raised before the setting values are saved. Partial Friend NotInheritable Class MySettings <System.Configuration.UserScopedSetting()> _ Publ ...Show All
