Click here to Skip to main content
15,914,221 members
Home / Discussions / C#
   

C#

 
QuestionHow to save application settings in .net C# CF? Pin
Aghosh Babu7-Mar-09 1:01
Aghosh Babu7-Mar-09 1:01 
AnswerRe: How to save application settings in .net C# CF? Pin
Natza Mitzi8-Mar-09 10:14
Natza Mitzi8-Mar-09 10:14 
GeneralRe: How to save application settings in .net C# CF? Pin
Aghosh Babu8-Mar-09 18:26
Aghosh Babu8-Mar-09 18:26 
GeneralRe: How to save application settings in .net C# CF? Pin
Natza Mitzi8-Mar-09 22:48
Natza Mitzi8-Mar-09 22:48 
Questionchange date format using c# Pin
Abdul Rahman Hamidy7-Mar-09 0:58
Abdul Rahman Hamidy7-Mar-09 0:58 
AnswerRe: change date format using c# Pin
Xmen Real 7-Mar-09 4:18
professional Xmen Real 7-Mar-09 4:18 
GeneralRe: change date format using c# Pin
Abdul Rahman Hamidy7-Mar-09 18:28
Abdul Rahman Hamidy7-Mar-09 18:28 
GeneralRe: change date format using c# [modified] Pin
Bishoy Rasmy17-Nov-09 23:25
Bishoy Rasmy17-Nov-09 23:25 
There is 2 ways to change your system date time in .Net
1st by changing the culture of the running thread
CultureInfo culture = (CultureInfo)CultureInfo.CurrentCulture.Clone(); 
            culture.DateTimeFormat.ShortDatePattern = "dd-MMM-yyyy"; 
            culture.DateTimeFormat.LongTimePattern = ""; 
            Thread.CurrentThread.CurrentCulture = culture; 


2nd change the computer format
Structure SYSTEMTIME
Public wYear As Short 
Public wMonth As Short 
Public wDayOfWeek As Short 
Public wDay As Short 
Public wHour As Short 
Public wMinute As Short 
Public wSecond As Short 
Public wMilliseconds As Short
End Structure 
‘’’import the user32.dll (import the System.Runtime.InteropServices namespace):
'<DllImport("kernel32.dll", setLastError:=True)>
public shared function SetSystemTime(byref theDateTime as SYSTEMTIME) as Boolean 
End Function 
Dim newDateTime as SystemTime()newDateTime.wDay = valueHereif SetSystemTime(newDateTme) then   'cool, we set it successfullyend if


modified on Wednesday, November 18, 2009 5:32 AM

QuestionHow to create a wrapper class in c#.net? Pin
sreenivasaraok7-Mar-09 0:35
sreenivasaraok7-Mar-09 0:35 
AnswerRe: How to create a wrapper class in c#.net? Pin
Calin Tatar7-Mar-09 0:43
Calin Tatar7-Mar-09 0:43 
AnswerRe: How to create a wrapper class in c#.net? Pin
Christian Graus2-Jun-10 20:30
protectorChristian Graus2-Jun-10 20:30 
QuestionHow can I install a db schema while installing a program? Pin
dejmjin6-Mar-09 22:59
dejmjin6-Mar-09 22:59 
AnswerRe: How can I install a db schema while installing a program? Pin
Calin Tatar6-Mar-09 23:55
Calin Tatar6-Mar-09 23:55 
GeneralRe: How can I install a db schema while installing a program? Pin
dejmjin7-Mar-09 0:04
dejmjin7-Mar-09 0:04 
QuestionConvert a pdf file to picture format with hight quality Pin
abbd6-Mar-09 22:57
abbd6-Mar-09 22:57 
AnswerRe: Convert a pdf file to picture format with hight quality Pin
Xmen Real 7-Mar-09 0:05
professional Xmen Real 7-Mar-09 0:05 
Questioncollect data about visitors from BHO Pin
Maverickcool6-Mar-09 22:24
Maverickcool6-Mar-09 22:24 
AnswerRe: collect data about visitors from BHO Pin
ABitSmart6-Mar-09 23:57
ABitSmart6-Mar-09 23:57 
QuestionAdd folder with classes into solution Pin
_c2h5oh_6-Mar-09 21:57
_c2h5oh_6-Mar-09 21:57 
AnswerRe: Add folder with classes into solution Pin
ABitSmart6-Mar-09 23:41
ABitSmart6-Mar-09 23:41 
QuestionDoubt, which to use Pin
Sajjad Leo6-Mar-09 20:57
Sajjad Leo6-Mar-09 20:57 
AnswerRe: Doubt, which to use Pin
dan!sh 6-Mar-09 21:22
professional dan!sh 6-Mar-09 21:22 
Question"hai friends" Pin
fraulin6-Mar-09 20:53
fraulin6-Mar-09 20:53 
AnswerRe: "hai friends" Pin
dan!sh 6-Mar-09 21:06
professional dan!sh 6-Mar-09 21:06 
AnswerRe: "hai friends" Pin
Vasudevan Deepak Kumar6-Mar-09 21:47
Vasudevan Deepak Kumar6-Mar-09 21:47 

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.