Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to call different namespace Pin
Colin Angus Mackay14-Mar-07 9:03
Colin Angus Mackay14-Mar-07 9:03 
Questionxml question Pin
groundzero11114-Mar-07 6:43
groundzero11114-Mar-07 6:43 
AnswerRe: xml question Pin
ThisIsMyUserName214-Mar-07 7:23
ThisIsMyUserName214-Mar-07 7:23 
GeneralRe: xml question Pin
groundzero11114-Mar-07 8:48
groundzero11114-Mar-07 8:48 
GeneralRe: xml question Pin
Stefan Troschuetz14-Mar-07 12:10
Stefan Troschuetz14-Mar-07 12:10 
Questionpaging in DataGrid using C# and windows forms Pin
OmarLodhi14-Mar-07 5:54
OmarLodhi14-Mar-07 5:54 
QuestionCreating a tiny SQL Windows XP "Registry Cleaner" Application Pin
td0014-Mar-07 5:48
td0014-Mar-07 5:48 
AnswerRe: Creating a tiny SQL Windows XP "Registry Cleaner" Application Pin
Judah Gabriel Himango14-Mar-07 6:26
sponsorJudah Gabriel Himango14-Mar-07 6:26 
The classes you'll be interested in is Microsoft.Win32.Registry and Microsoft.Win32.RegistryKey. Those classes have methods on them for retrieving different keys, subkeys, and values in the registry.

You can compare strings by using the various methods on the System.String class:

string someKey = "helloSql!";
if(someKey.Contains("Sql"))
{
   ...
}


You can also do some culture-specific and case-specific string operations:

int indexOfSqlInString = someKey.IndexOf("SQL", StringComparison.InvariantCultureIgnoreCase); // matches SQL, sql, Sql, etc.
if(indexOfSqlInString != -1)
{
   ...
}


If you're really brave, you can try out regular expressions found in System.Text.RegularExpressions.



Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Rabbi Kadouri Meets Messiah?
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


AnswerRe: Creating a tiny SQL Windows XP "Registry Cleaner" Application Pin
led mike14-Mar-07 6:29
led mike14-Mar-07 6:29 
QuestionNew Programmer Help Please! Pin
lee.hallows14-Mar-07 5:33
lee.hallows14-Mar-07 5:33 
AnswerRe: New Programmer Help Please! Pin
PlayByTheRules14-Mar-07 5:40
PlayByTheRules14-Mar-07 5:40 
GeneralRe: New Programmer Help Please! Pin
lee.hallows14-Mar-07 6:27
lee.hallows14-Mar-07 6:27 
GeneralRe: New Programmer Help Please! Pin
PlayByTheRules14-Mar-07 6:34
PlayByTheRules14-Mar-07 6:34 
GeneralRe: New Programmer Help Please! Pin
led mike14-Mar-07 7:10
led mike14-Mar-07 7:10 
GeneralRe: New Programmer Help Please! Pin
led mike14-Mar-07 6:30
led mike14-Mar-07 6:30 
AnswerRe: New Programmer Help Please! Pin
Colin Angus Mackay14-Mar-07 5:47
Colin Angus Mackay14-Mar-07 5:47 
AnswerRe: New Programmer Help Please! Pin
PrimeCoder14-Mar-07 7:46
PrimeCoder14-Mar-07 7:46 
Questionhow to copy dataset OleDbDataAdapter to SqlDataAdapter Pin
savagerider14-Mar-07 5:07
savagerider14-Mar-07 5:07 
AnswerRe: how to copy dataset OleDbDataAdapter to SqlDataAdapter Pin
Colin Angus Mackay14-Mar-07 5:36
Colin Angus Mackay14-Mar-07 5:36 
QuestionRe: how to copy dataset OleDbDataAdapter to SqlDataAdapter Pin
savagerider15-Mar-07 2:58
savagerider15-Mar-07 2:58 
Questionwriting to xml Pin
pashitech14-Mar-07 4:36
pashitech14-Mar-07 4:36 
AnswerRe: writing to xml Pin
led mike14-Mar-07 4:45
led mike14-Mar-07 4:45 
QuestionWPF Usercontrol question Pin
pole_cat14-Mar-07 4:30
pole_cat14-Mar-07 4:30 
Questionhow to set a static company name? Pin
sharpiesharpie14-Mar-07 4:22
sharpiesharpie14-Mar-07 4:22 
AnswerRe: how to set a static company name? Pin
Judah Gabriel Himango14-Mar-07 4:40
sponsorJudah Gabriel Himango14-Mar-07 4:40 

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.