Click here to Skip to main content
16,011,647 members
Home / Discussions / C#
   

C#

 
AnswerRe: saving images in C# Pin
OriginalGriff16-Jan-10 21:35
mveOriginalGriff16-Jan-10 21:35 
QuestionSetWindowPos, MoveWindow and GetWindowRect screen handling issues Pin
Electric Eddy16-Jan-10 17:17
Electric Eddy16-Jan-10 17:17 
AnswerRe: SetWindowPos, MoveWindow and GetWindowRect screen handling issues Pin
#realJSOP17-Jan-10 3:27
professional#realJSOP17-Jan-10 3:27 
GeneralRe: SetWindowPos, MoveWindow and GetWindowRect screen handling issues Pin
Electric Eddy17-Jan-10 6:45
Electric Eddy17-Jan-10 6:45 
Questionadding data to combo box from menu item Pin
johnnysmith116-Jan-10 15:35
johnnysmith116-Jan-10 15:35 
AnswerRe: adding data to combo box from menu item Pin
DaveyM6916-Jan-10 16:15
professionalDaveyM6916-Jan-10 16:15 
GeneralRe: adding data to combo box from menu item Pin
johnnysmith116-Jan-10 16:19
johnnysmith116-Jan-10 16:19 
QuestionRetreiving next autonumber value Pin
tonyonlinux16-Jan-10 14:31
tonyonlinux16-Jan-10 14:31 
I have written a program that uses the ID field in an access database. If the user removes an item the autonumber still increments by one. That is fine but my question is this.

How does one retrieve the value of the next autonumber when the add new item button is pressed on the bindingnavigation bar?

I originally was doing
int rowcount = this.bookdbDataSet.Tables[0].Rows.Count +1;


this works but it shows me the true value of records in the table. I don't want that I want to know what the next autonumber ID would be.

Example: I have filtered using a search for say cat
I get 2 records back the navigation bar says 1 of 2. And that listings Item ID: 1. I then discover that I wish to add another record so I hit the add button. I would to autofile the Item ID box with the next autonumber in the IDcolumn of the database.

I hope I'm not confusing anyone. Your help is greatly appreciated.
AnswerRe: Retreiving next autonumber value Pin
Luc Pattyn16-Jan-10 14:38
sitebuilderLuc Pattyn16-Jan-10 14:38 
GeneralRe: Retreiving next autonumber value Pin
tonyonlinux16-Jan-10 14:48
tonyonlinux16-Jan-10 14:48 
GeneralRe: Retreiving next autonumber value Pin
Dave Kreskowiak16-Jan-10 15:13
mveDave Kreskowiak16-Jan-10 15:13 
GeneralRe: Retreiving next autonumber value Pin
tonyonlinux16-Jan-10 15:34
tonyonlinux16-Jan-10 15:34 
GeneralRe: Retreiving next autonumber value Pin
Luc Pattyn16-Jan-10 15:16
sitebuilderLuc Pattyn16-Jan-10 15:16 
GeneralRe: Retreiving next autonumber value Pin
tonyonlinux16-Jan-10 15:41
tonyonlinux16-Jan-10 15:41 
GeneralRe: Retreiving next autonumber value Pin
Dave Kreskowiak16-Jan-10 19:33
mveDave Kreskowiak16-Jan-10 19:33 
GeneralRe: Retreiving next autonumber value Pin
tonyonlinux17-Jan-10 8:29
tonyonlinux17-Jan-10 8:29 
GeneralRe: Retreiving next autonumber value Pin
Dave Kreskowiak17-Jan-10 8:55
mveDave Kreskowiak17-Jan-10 8:55 
GeneralRe: Retreiving next autonumber value Pin
tonyonlinux17-Jan-10 9:19
tonyonlinux17-Jan-10 9:19 
GeneralRe: Retreiving next autonumber value Pin
Dave Kreskowiak17-Jan-10 15:05
mveDave Kreskowiak17-Jan-10 15:05 
GeneralRe: Retreiving next autonumber value Pin
tonyonlinux17-Jan-10 18:39
tonyonlinux17-Jan-10 18:39 
AnswerRe: Retreiving next autonumber value Pin
PIEBALDconsult17-Jan-10 5:13
mvePIEBALDconsult17-Jan-10 5:13 
QuestionHelp with PictureBox.image updating from Webcam capture Pin
shutupsquare16-Jan-10 9:49
shutupsquare16-Jan-10 9:49 
AnswerRe: Help with PictureBox.image updating from Webcam capture Pin
Luc Pattyn16-Jan-10 10:03
sitebuilderLuc Pattyn16-Jan-10 10:03 
GeneralRe: Help with PictureBox.image updating from Webcam capture Pin
shutupsquare16-Jan-10 10:17
shutupsquare16-Jan-10 10:17 
AnswerRe: Help with PictureBox.image updating from Webcam capture Pin
shutupsquare16-Jan-10 10:08
shutupsquare16-Jan-10 10:08 

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.