js06

     I have spent many hours setting up my datagridview to look and work a certain way and after weeks of playing with code i now find that when i try to add or remove columns it freaks out.  (adds columns that i didn't select and won't let me change read only settings.)

I am using the desingner to edit columns (not programming)  and they are already in my database.   This is the second time this has happened to me.  So i found that there is a service pack for VB Express.  I installed it and that didn't help.

I am starting to get fed up with making progress and then having to erase and start over again.

One other thing is that i wrote a simple sub to add the amounts entered into a few textboxes and then when you tab out of each box it will show the sum in a total box.  The total will show up once (maybe) and then right after it won't.

If i get something to work once the next time it won't, then it will.

Does anyone have any suggestions on what could be causing this or is it just a bug

Is anyone else having the same problems

I appreciate the free software and i am using this as a stepping stone to purchase atleast the standard version but i am concerned of shelling out hard earned cash to find the same problems.

I first started programming with VB for applications in excel and never had any problems even close to this.

Any help or suggestion would greatly be appreciated.

 




Re: Visual Basic Express Edition VB Express bugs

anubisascends

Some sample code of what you are doing would help.

for the databases - what are you trying to do, if you are filling the data grid view with info from the database, you should need to design, it. If you are doing it the other way around, then ok, I can see why you would need to.

Adding the text boxes - what is the code for this, I have sued something like this in the past:

Dim total As Integer

Public Function sum_Total() As Integer
Dim intTotal As Integer = 0
For Each ctrl As Control In Me.Controls
If ctrl.Name.StartsWith("sum") Then
intTotal += ctrl.Text 'Integer.Parse(ctrl.Text)
End If
total = intTotal
Next
End Function

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
sum_Total()
totalTxt.Text = total
End Sub

This works out well, then I also don't have to change my code for any additional text boxes that I add.

I havn't had a real problem with VB Express and VS05 Professional far exceeded my expectations.





Re: Visual Basic Express Edition VB Express bugs

js06

I haven't had any problem with code per say. My code works. The problem is that my code works once and the next time it won't even without any changes to any code.

Where i seem to have bugs is with my datagridview. i have a form with a grid view and i can change anything i want to in it (columns and properties). i have another form with the same grid view and it won't let me make changes like add columns or remove columns without freaking out. It adds columns as it pleases.

If i try to change the read only property of certain columns it will show the change and then when check the properties again, the read only property does not reflect any changes.

The problem i had before this was similar and it seemed to go away after i removed these columns from my database and updated my dataset. I haven't tried that yet but i'm afraid that's what i have to do again.

There seems to be a problem with the database or the dataset. I don't understand how everything works but something is getting lost in the process.

Also the code that i am having trouble with working is on the same form as the grid view. So i don't know if these troubles are related since the textboxes are details views of the table that is also in my grid view.

I am pretty sure that something gets lost somewhere with the dataset. I think my only remedy is to remove the columns from my database and put them back in since that seemed to work with a similar problem.

After i try that later i will post if it works or not. Thank for the reply.






Re: Visual Basic Express Edition VB Express bugs

js06

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1211306&SiteID=1

This is where i posted the fix to my problem.

or you can search (newbies- get around bug in vb express)