Click here to Skip to main content
15,890,579 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to hide the parent property in UserControl? Pin
popalzai12-Feb-09 1:44
popalzai12-Feb-09 1:44 
AnswerRe: How to hide the parent property in UserControl? Pin
Rob Smiley12-Feb-09 2:23
Rob Smiley12-Feb-09 2:23 
GeneralRe: How to hide the parent property in UserControl? Pin
popalzai12-Feb-09 19:31
popalzai12-Feb-09 19:31 
GeneralRe: How to hide the parent property in UserControl? Pin
popalzai12-Feb-09 19:39
popalzai12-Feb-09 19:39 
GeneralRe: How to hide the parent property in UserControl? Pin
Rob Smiley13-Feb-09 8:50
Rob Smiley13-Feb-09 8:50 
QuestionGet Last ID from a Table Pin
Muhammad Fahim Baloch12-Feb-09 1:15
Muhammad Fahim Baloch12-Feb-09 1:15 
AnswerRe: Get Last ID from a Table Pin
Dave Kreskowiak12-Feb-09 1:48
mveDave Kreskowiak12-Feb-09 1:48 
GeneralRe: Get Last ID from a Table [modified] Pin
Samir Ibrahim13-Feb-09 1:27
Samir Ibrahim13-Feb-09 1:27 
Although you have 3 remarkable haphazard in your example, but they are acceptable Smile | :)

Every table should have unique key (PK), that key is usually an Autoinc field type, when insert new record, the table will automatically generate the next ID to be used for the next client.

But very often, you need to make your own sequence number need to be written in the table, and you can usually do that by creating a table (numbering) which store in it the next ID for (let say new invoice) and you can luck this record and prevent any one from accessing this record and the user get his ID and unlock the row.

My point is, you will not let the database generate new ID for you in every situation.

Samir R. Ibrahim

modified on Friday, February 13, 2009 7:50 AM

GeneralRe: Get Last ID from a Table Pin
Dave Kreskowiak13-Feb-09 2:22
mveDave Kreskowiak13-Feb-09 2:22 
GeneralRe: Get Last ID from a Table Pin
Samir Ibrahim13-Feb-09 8:04
Samir Ibrahim13-Feb-09 8:04 
AnswerRe: Get Last ID from a Table Pin
Smithers-Jones13-Feb-09 0:03
Smithers-Jones13-Feb-09 0:03 
Questionpassing parameter in system.threading.timer Pin
sohaib_a12-Feb-09 0:40
sohaib_a12-Feb-09 0:40 
AnswerRe: passing parameter in system.threading.timer Pin
Alan N12-Feb-09 0:52
Alan N12-Feb-09 0:52 
GeneralRe: passing parameter in system.threading.timer Pin
sohaib_a12-Feb-09 1:36
sohaib_a12-Feb-09 1:36 
GeneralRe: passing parameter in system.threading.timer Pin
Alan N12-Feb-09 1:44
Alan N12-Feb-09 1:44 
GeneralRe: passing parameter in system.threading.timer Pin
sohaib_a12-Feb-09 2:03
sohaib_a12-Feb-09 2:03 
GeneralRe: passing parameter in system.threading.timer Pin
Gideon Engelberth12-Feb-09 3:14
Gideon Engelberth12-Feb-09 3:14 
GeneralRe: passing parameter in system.threading.timer Pin
Alan N12-Feb-09 3:24
Alan N12-Feb-09 3:24 
QuestionHow to Enable and Disable Serial Port-Please give me the Code. Deep Request Pin
Noufe11-Feb-09 22:47
Noufe11-Feb-09 22:47 
AnswerRe: How to Enable and Disable Serial Port-Please give me the Code. Deep Request Pin
Alan N12-Feb-09 1:00
Alan N12-Feb-09 1:00 
AnswerRe: How to Enable and Disable Serial Port-Please give me the Code. Deep Request Pin
Dave Kreskowiak12-Feb-09 1:46
mveDave Kreskowiak12-Feb-09 1:46 
QuestionHow to Pass Parameter in .Net Reporting Pin
Chetan Patel11-Feb-09 22:29
Chetan Patel11-Feb-09 22:29 
AnswerRe: How to Pass Parameter in .Net Reporting Pin
Chetan Patel11-Feb-09 22:41
Chetan Patel11-Feb-09 22:41 
QuestionVariables Naming Pin
Samir Ibrahim11-Feb-09 20:28
Samir Ibrahim11-Feb-09 20:28 
AnswerRe: Variables Naming Pin
Chetan Patel11-Feb-09 22:27
Chetan Patel11-Feb-09 22:27 

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.