Click here to Skip to main content
15,742,566 members
Home / Discussions / C#
   

C#

 
Questionclearing table or dataGrid and make the table selected fit in my dataGrid Pin
spawn_ro198526-May-07 6:16
spawn_ro198526-May-07 6:16 
QuestionDirectoryInfo Problem Pin
Mohammed Elkholy26-May-07 5:20
Mohammed Elkholy26-May-07 5:20 
AnswerRe: DirectoryInfo Problem Pin
kubben26-May-07 7:14
kubben26-May-07 7:14 
AnswerRe: DirectoryInfo Problem Pin
Luc Pattyn26-May-07 8:28
sitebuilderLuc Pattyn26-May-07 8:28 
Questionexport from grid to excel,word Pin
praveenanand26-May-07 3:18
praveenanand26-May-07 3:18 
AnswerRe: export from grid to excel,word Pin
Manoj Kumar Rai26-May-07 7:02
professionalManoj Kumar Rai26-May-07 7:02 
QuestionOpen File Dialog again Pin
mihksoft26-May-07 3:02
mihksoft26-May-07 3:02 
QuestionHashtable Pin
pranu_1326-May-07 2:55
pranu_1326-May-07 2:55 
I added elements to hashtable but they are not in the order in which i added. The code is below:

Hashtable table = new Hashtable(4);
table[new Regex(@"^(-?)(\d*?)\.?(\d{0,1})?$")] = "$1$2.$3";
table[new Regex(@"^(\d*?)\.?(\d{0,1})?(-?)$")] = "$3$1.$2";
table[new Regex(@"^(-?)(\d{1,3}?)((?:,\d{3})*)\.?(\d{0,1})?$")] = "$1$2$3.$4";
table[new Regex(@"^(\d{1,3}?)((?:,\d{3})*)\.?(\d{0,1})?(-?)$")] = "$4$1$2.$3";

I want these elements in the same order. Some times it takes the same order and some times it does not. I know hashtable does not take elements in same order.

But is there a way for this?
AnswerRe: Hashtable Pin
Dave Herren26-May-07 5:00
Dave Herren26-May-07 5:00 
AnswerRe: Hashtable Pin
Kevin McFarlane26-May-07 5:25
Kevin McFarlane26-May-07 5:25 
AnswerRe: Hashtable Pin
Kevin McFarlane26-May-07 5:30
Kevin McFarlane26-May-07 5:30 
QuestionPicture box and drawing Pin
Anka_Ame26-May-07 0:44
Anka_Ame26-May-07 0:44 
QuestionGet "current playing" movie/song in WMP Pin
mulybenj26-May-07 0:22
mulybenj26-May-07 0:22 
AnswerRe: Get "current playing" movie/song in WMP Pin
henur26-May-07 21:38
henur26-May-07 21:38 
GeneralRe: Get "current playing" movie/song in WMP Pin
mulybenj27-May-07 1:09
mulybenj27-May-07 1:09 
GeneralRe: Get "current playing" movie/song in WMP Pin
henur27-May-07 4:54
henur27-May-07 4:54 
QuestionExecuting an exe file from a Windows Service Pin
M. J. Jaya Chitra25-May-07 23:10
M. J. Jaya Chitra25-May-07 23:10 
AnswerRe: Executing an exe file from a Windows Service Pin
kubben26-May-07 3:11
kubben26-May-07 3:11 
GeneralRe: Executing an exe file from a Windows Service Pin
mav.northwind26-May-07 23:00
mav.northwind26-May-07 23:00 
GeneralRe: Executing an exe file from a Windows Service Pin
kubben28-May-07 1:59
kubben28-May-07 1:59 
GeneralRe: Executing an exe file from a Windows Service Pin
M. J. Jaya Chitra27-May-07 16:57
M. J. Jaya Chitra27-May-07 16:57 
GeneralRe: Executing an exe file from a Windows Service Pin
kubben28-May-07 1:59
kubben28-May-07 1:59 
Questionweird problem with ComboBox - DataSource contains data, but the Items collection stays empty Pin
Marek Grzenkowicz25-May-07 23:02
Marek Grzenkowicz25-May-07 23:02 
AnswerRe: weird problem with ComboBox - DataSource contains data, but the Items collection stays empty Pin
Marek Grzenkowicz27-May-07 21:41
Marek Grzenkowicz27-May-07 21:41 
QuestionC# Control for volume Pin
henur25-May-07 22:54
henur25-May-07 22:54 

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.