Click here to Skip to main content
15,898,588 members
Home / Discussions / C#
   

C#

 
AnswerRe: Enable Tabpage in Tabcontrol Pin
Robert Rohde23-Apr-06 19:50
Robert Rohde23-Apr-06 19:50 
AnswerRe: Enable Tabpage in Tabcontrol Pin
HimaBindu Vejella23-Apr-06 23:28
HimaBindu Vejella23-Apr-06 23:28 
QuestionChanging the location of database in a CrystalReport Pin
neliocc23-Apr-06 17:00
neliocc23-Apr-06 17:00 
QuestionBinding Textbox Issue Pin
myNameIsRon23-Apr-06 15:14
myNameIsRon23-Apr-06 15:14 
QuestionCombo Box Pin
KORCARI23-Apr-06 12:56
KORCARI23-Apr-06 12:56 
QuestionMessage Removed Pin
23-Apr-06 12:29
Mohamed Fadl23-Apr-06 12:29 
AnswerRe: insert date in access Pin
velayudhan_raj23-Apr-06 18:02
velayudhan_raj23-Apr-06 18:02 
AnswerRe: insert date in access Pin
Zakaria Bin Abdur Rouf25-Apr-06 3:40
Zakaria Bin Abdur Rouf25-Apr-06 3:40 
Questiondetect screen updates Pin
Razi Al-Sayed23-Apr-06 9:51
Razi Al-Sayed23-Apr-06 9:51 
QuestionLabel in C# Pin
bybete23-Apr-06 8:41
bybete23-Apr-06 8:41 
AnswerRe: Label in C# Pin
Colin Angus Mackay23-Apr-06 11:18
Colin Angus Mackay23-Apr-06 11:18 
Questioncomponent property Pin
valiovalio23-Apr-06 8:26
valiovalio23-Apr-06 8:26 
AnswerRe: component property Pin
alexey N23-Apr-06 17:46
alexey N23-Apr-06 17:46 
GeneralRe: component property Pin
valiovalio23-Apr-06 19:55
valiovalio23-Apr-06 19:55 
GeneralRe: component property Pin
valiovalio23-Apr-06 20:00
valiovalio23-Apr-06 20:00 
Questionmsil and clr Pin
pankajgarg1223-Apr-06 7:43
pankajgarg1223-Apr-06 7:43 
AnswerRe: msil and clr Pin
Dave Kreskowiak23-Apr-06 9:36
mveDave Kreskowiak23-Apr-06 9:36 
Questionmove data from excel file to access database !!! Pin
mrkeivan23-Apr-06 7:39
mrkeivan23-Apr-06 7:39 
AnswerRe: move data from excel file to access database !!! Pin
Shajeel23-Apr-06 22:32
Shajeel23-Apr-06 22:32 
QuestionDate as a Regular Expression Pin
Tyler4523-Apr-06 7:20
Tyler4523-Apr-06 7:20 
AnswerRe: Date as a Regular Expression Pin
Judah Gabriel Himango23-Apr-06 7:52
sponsorJudah Gabriel Himango23-Apr-06 7:52 
QuestionDate in DataBinding Pin
alee15.10.8823-Apr-06 5:48
alee15.10.8823-Apr-06 5:48 
AnswerRe: Date in DataBinding Pin
Robert Rohde24-Apr-06 1:37
Robert Rohde24-Apr-06 1:37 
GeneralRe: Date in DataBinding Pin
alee15.10.8824-Apr-06 1:51
alee15.10.8824-Apr-06 1:51 
GeneralRe: Date in DataBinding Pin
Robert Rohde24-Apr-06 2:59
Robert Rohde24-Apr-06 2:59 
Something like this (not tested):
Binding binding = this.txtDOB.DataBindings.Add("Text", DBHandler.DS, "UserLogInsteacher.DateOfBirth");
binding.Format += new ConvertEventHandler(binding_Format);

and
private void binding_Format(object sender, ConvertEventArgs e)
{
   DateTime dt = (DateTime)e.Value;
   e.Value = dt.ToShortDateString();
}

Some error handling etc should be added (like checking for DbNull etc.)

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.