The BindingNavigator control will disable the Move Next button under the following run-time circumstances: the BindingSource property is a null reference (Nothing in Visual Basic) or the Position property is greater than or equal to the Count property.
I was referring to the above.
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
While I was waiting on your response I did another little experiment.
I went and added two test records into the dataset.
I type in the first record and pressed the Add Record Button on the BindingNavigator control. The current position indicator how says 1 of 1 and the Delete Button on the Navigator is active. No navigation buttons are active.
I added a second record and the current position reads 1 of 2. The record I added above was not recorded into the dataset. The Next and Goto Last Navigation records are now active.
At this point I click the Goto Last Button. I am reading the data for the second record, but it has the ID# of 1 not 2. I click on the Goto First record and the ID# is 0 and only one field contains data.
It looks like the dataset didn't record the data correctly for the first record. I'm going to check the AutoIncrement field in the table on the SQL Server database and see in the seed number is wrong.
I am writing a couple of windows forms in vs 2005 (vb).
These forms have quite a few controls on them and the users are going to want an "options" panel where they can , for example , select the background color of a set of buttons (I am simplefying here - bare with me) that appear on the forms.
If this was ASPnet then no problem i could just apply a CSS Style.
Does anyone have any experiance (or code - says he smiling hopefully !) which can apply a dynamic "Style" to a range of windows forms controls (Phew!)
I have heard of visual styles which take precreated XP Themes and apply them but this wont help in this case because I am developing this for people with windows pro 2000 and also I need it to be dynamic.
thanks in advance
Life is a bowl of cherries - go on have a byte
I thought there was an example of skinning an app here on CP. Basically, what you want to do is write code that sets colors and so on of all your controls, based on a config file.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Does anyone know how to start the default mail client and paste an image that is in the clipboard to the message body . I have tried SendKey using 3 tabs and control-v but they don't make it to the client. I was hoping to stay away from the API.
I m having a class counter in it a function count.in my form load
i inilized my class and start threads for counting now i want to write it threads values (counter values) in text box if console it is working fine.
This is a question better asked in the ASP.NET forum.
I think you're going to have to provide a link to a page that does the export, which you have to write the code for, then this page should return the export as a normal text file, just like if you were sending back an Excel or Word file. I don't know the specifics myself. That's why I said this question is more appropriate for the ASP.NET forum.
hi actually i am trying to call a thread
while creating thread object i want to give the address of that function but it shows error so i tried to create like that.
please tell me how i have to pass addressof funtion name on thread pls give some code examples and functions with parameter for the thread
Hi! I would like to; "really" know how to get the current text line number where the caret is at.
(not the "line number" just the "text line number":
when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.)
a = Rtb.GetLineFromCharIndex(rtb.SelectionStart)
So can anyone tell me a way to get the real line number of the selected text.
thanks in advance
(pls don't tell me to explain again!
Last Visit: 31-Dec-99 18:00 Last Update: 21-Sep-23 0:19