Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do I draw a ruler ? Pin
J. Dunlap29-May-03 7:55
J. Dunlap29-May-03 7:55 
QuestionHow to use MS DTC in dotnet? Pin
rexxxa29-May-03 0:26
rexxxa29-May-03 0:26 
AnswerRe: How to use MS DTC in dotnet? Pin
evr7629-May-03 5:41
evr7629-May-03 5:41 
AnswerRe: How to use MS DTC in dotnet? Pin
rexxxa29-May-03 15:44
rexxxa29-May-03 15:44 
GeneralSafeArray Pin
vikramlinux28-May-03 23:30
vikramlinux28-May-03 23:30 
GeneralRe: SafeArray Pin
apferreira29-May-03 0:11
apferreira29-May-03 0:11 
GeneralUnique numbers in SQL Pin
totig28-May-03 23:18
totig28-May-03 23:18 
GeneralRe: Unique numbers in SQL Pin
totig29-May-03 6:02
totig29-May-03 6:02 
Seems a bit odd replying to myself, but I found a solution, so this is for anyone who ever has a similar thing. This is if you want to create your own unique number. The code is:

int test1 = 0;
int test2 = 0;
for (int i = 0; i <= yourDataSet.yourTableName.Count - 1; i++)
{test1 = yourDataSet.yourTableName[i].theID;
if (test2 <= test1)
{test2 = test1 + 1;
}}

Sorry about how I compressed this. It counts the number the number of rows (in the format 1, 2, 3, etc, which is why you must - 1, else you will get an error). The last part just compares the numbers.
GeneralRe: Unique numbers in SQL Pin
leppie29-May-03 7:56
leppie29-May-03 7:56 
GeneralRe: Unique numbers in SQL Pin
Adam Turner29-May-03 15:07
Adam Turner29-May-03 15:07 
GeneralUp, Down, Left. Right in DataGrid can not be trapped Pin
sajecw28-May-03 20:08
sajecw28-May-03 20:08 
GeneralRe: Up, Down, Left. Right in DataGrid can not be trapped Pin
Rocky Moore28-May-03 22:03
Rocky Moore28-May-03 22:03 
QuestionHow do I know the Width &amp; Height of physical screen Pin
JeffSayHi28-May-03 16:45
JeffSayHi28-May-03 16:45 
AnswerRe: How do I know the Width &amp; Height of physical screen Pin
Mazdak28-May-03 19:09
Mazdak28-May-03 19:09 
GeneralRe: How do I know the Width &amp; Height of physical screen Pin
JeffSayHi28-May-03 20:30
JeffSayHi28-May-03 20:30 
GeneralRe: How do I know the Width &amp; Height of physical screen Pin
Nick Parker29-May-03 3:05
protectorNick Parker29-May-03 3:05 
GeneralConfig files Pin
Kant28-May-03 11:47
Kant28-May-03 11:47 
GeneralRe: Config files Pin
Ranjan Banerji29-May-03 3:54
Ranjan Banerji29-May-03 3:54 
GeneralRe: Config files Pin
Kant29-May-03 5:57
Kant29-May-03 5:57 
GeneralRe: Config files Pin
Ranjan Banerji29-May-03 7:59
Ranjan Banerji29-May-03 7:59 
GeneralRe: Config files Pin
Kant29-May-03 12:31
Kant29-May-03 12:31 
GeneralUML for C# Pin
Eric Astor28-May-03 11:05
Eric Astor28-May-03 11:05 
GeneralRe: UML for C# Pin
J. Dunlap28-May-03 11:15
J. Dunlap28-May-03 11:15 
GeneralRe: UML for C# Pin
Tomas Petricek28-May-03 13:15
Tomas Petricek28-May-03 13:15 
GeneralRe: UML for C# Pin
KingTermite29-May-03 7:42
KingTermite29-May-03 7:42 

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.