Click here to Skip to main content
16,005,162 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Spacing Pin
Colin Angus Mackay28-Jul-07 7:36
Colin Angus Mackay28-Jul-07 7:36 
QuestionCreate the text file and copy content to it Pin
sweehin1828-Jul-07 3:54
sweehin1828-Jul-07 3:54 
AnswerRe: Create the text file and copy content to it Pin
ne0h28-Jul-07 4:43
ne0h28-Jul-07 4:43 
GeneralRe: Create the text file and copy content to it Pin
sweehin1828-Jul-07 6:36
sweehin1828-Jul-07 6:36 
GeneralRe: Create the text file and copy content to it Pin
Paul Conrad28-Jul-07 6:45
professionalPaul Conrad28-Jul-07 6:45 
GeneralRe: Create the text file and copy content to it Pin
sweehin1828-Jul-07 6:50
sweehin1828-Jul-07 6:50 
GeneralRe: Create the text file and copy content to it Pin
Paul Conrad28-Jul-07 6:51
professionalPaul Conrad28-Jul-07 6:51 
QuestionDataset not saving Pin
plankmonkey28-Jul-07 1:45
plankmonkey28-Jul-07 1:45 
Hi,

I have a dataset bound to a textbox. I'm using my own stored procs for the dataadapter. The data loads into the textbox, I can edit it and the changes show in the dataset. I am faced with 2 problems:

1. The dataset.haschanges = false. Even though I can see the changes when I access the dataset field in the immediate window.
2. The updatecommand parameter values in the dataadapter are null.

There are no errors. Everything runs, it just doesn't commit the changes to the database.

I can verify that the stored procs work fine. In fact if I put a DataGridView on the form and bind to that everything saves just fine, using the exact same code (apart from binding obviously) and stored procs.

Some code:
Table name: tblScripts
Column name: Script_Desc

Binding the textbox:
TextBox1.DataBindings.Add(New Binding("Text", m_ds, "tblScripts.Script_Desc"))

Update code:
If m_ds.HasChanges() Then
'if i skip into here there are no errors
'but changes do not commit to database
m_da.Update(m_ds, "tblScripts")
End If

Is there something special I need to do when binding a textbox to a dataset which was filled by a dataadapter which uses stored procs?

I'm using Vista with the Visual Studio 2005 Vista patch, is there a known bug by any chance?

Please help, I'm at my wits end!


AnswerRe: Dataset not saving Pin
Naji El Kotob28-Jul-07 2:59
Naji El Kotob28-Jul-07 2:59 
GeneralRe: Dataset not saving Pin
plankmonkey28-Jul-07 5:47
plankmonkey28-Jul-07 5:47 
Questionhow we can embed vc++ code in vb.net Pin
cnu_sree28-Jul-07 0:16
cnu_sree28-Jul-07 0:16 
AnswerRe: how we can embed vc++ code in vb.net Pin
Paul Conrad28-Jul-07 5:47
professionalPaul Conrad28-Jul-07 5:47 
QuestionWhy VS designer doesn't work with sub classes ? Pin
Ky Nam27-Jul-07 21:38
Ky Nam27-Jul-07 21:38 
AnswerRe: Why VS designer doesn't work with sub classes ? Pin
Christian Graus27-Jul-07 21:42
protectorChristian Graus27-Jul-07 21:42 
GeneralRe: Why VS designer doesn't work with sub classes ? Pin
Ky Nam27-Jul-07 21:53
Ky Nam27-Jul-07 21:53 
GeneralRe: Why VS designer doesn't work with sub classes ? Pin
Dave Kreskowiak28-Jul-07 8:44
mveDave Kreskowiak28-Jul-07 8:44 
GeneralRe: Why VS designer doesn't work with sub classes ? Pin
Ky Nam28-Jul-07 14:22
Ky Nam28-Jul-07 14:22 
Questionhow to convert c# code into vb.net 2005 code Pin
eyes200727-Jul-07 21:35
eyes200727-Jul-07 21:35 
AnswerRe: how to convert c# code into vb.net 2005 code Pin
Christian Graus27-Jul-07 21:36
protectorChristian Graus27-Jul-07 21:36 
GeneralRe: how to convert c# code into vb.net 2005 code Pin
Paul Conrad28-Jul-07 13:36
professionalPaul Conrad28-Jul-07 13:36 
GeneralRe: how to convert c# code into vb.net 2005 code Pin
Dave Doknjas28-Jul-07 13:50
Dave Doknjas28-Jul-07 13:50 
GeneralRe: how to convert c# code into vb.net 2005 code Pin
Paul Conrad28-Jul-07 13:59
professionalPaul Conrad28-Jul-07 13:59 
AnswerRe: how to convert c# code into vb.net 2005 code Pin
Ky Nam27-Jul-07 21:41
Ky Nam27-Jul-07 21:41 
AnswerRe: how to convert c# code into vb.net 2005 code Pin
Kevin McFarlane28-Jul-07 0:49
Kevin McFarlane28-Jul-07 0:49 
AnswerRe: how to convert c# code into vb.net 2005 code Pin
Dave Doknjas28-Jul-07 12:47
Dave Doknjas28-Jul-07 12:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.