Click here to Skip to main content
15,920,956 members
Home / Discussions / C#
   

C#

 
GeneralRe: Still locked in first TextBox Pin
Anonymous15-Oct-05 9:16
Anonymous15-Oct-05 9:16 
GeneralRe: Still locked in first TextBox Pin
Anonymous15-Oct-05 11:33
Anonymous15-Oct-05 11:33 
AnswerRe: Still locked in first TextBox Pin
leppie15-Oct-05 21:30
leppie15-Oct-05 21:30 
GeneralRe: Still locked in first TextBox Pin
Guffa15-Oct-05 12:07
Guffa15-Oct-05 12:07 
GeneralRe: Still locked in first TextBox Pin
Anonymous15-Oct-05 12:20
Anonymous15-Oct-05 12:20 
GeneralRe: Still locked in first TextBox Pin
Guffa15-Oct-05 13:52
Guffa15-Oct-05 13:52 
GeneralRe: Still locked in first TextBox Pin
S. Senthil Kumar15-Oct-05 21:04
S. Senthil Kumar15-Oct-05 21:04 
QuestionThis problem again Pin
snouto15-Oct-05 5:16
snouto15-Oct-05 5:16 
AnswerRe: This problem again Pin
Daniel Grunwald15-Oct-05 5:29
Daniel Grunwald15-Oct-05 5:29 
GeneralRe: This problem again Pin
Guffa15-Oct-05 5:56
Guffa15-Oct-05 5:56 
QuestionControl with Wizard Pin
acastano15-Oct-05 5:09
acastano15-Oct-05 5:09 
QuestionCapture Mouse Event in a USERCONTROL at Design Time Pin
acastano15-Oct-05 4:58
acastano15-Oct-05 4:58 
Questionopening webpage with post data? Pin
Afief15-Oct-05 4:50
Afief15-Oct-05 4:50 
AnswerRe: opening webpage with post data? Pin
Rob Philpott15-Oct-05 11:39
Rob Philpott15-Oct-05 11:39 
QuestionKeep aspect ratio when drawing rectangle Pin
Gulfraz Khan15-Oct-05 3:52
Gulfraz Khan15-Oct-05 3:52 
AnswerRe: Keep aspect ratio when drawing rectangle Pin
Afief15-Oct-05 6:09
Afief15-Oct-05 6:09 
GeneralRe: Keep aspect ratio when drawing rectangle Pin
Gulfraz Khan17-Oct-05 4:28
Gulfraz Khan17-Oct-05 4:28 
QuestionRegex simple question Pin
matthias s.15-Oct-05 3:29
matthias s.15-Oct-05 3:29 
AnswerRe: Regex simple question Pin
Daniel Grunwald15-Oct-05 3:40
Daniel Grunwald15-Oct-05 3:40 
GeneralRe: Regex simple question Pin
matthias s.15-Oct-05 3:44
matthias s.15-Oct-05 3:44 
QuestionMake Skin For C# Form Pin
raed15-Oct-05 1:14
raed15-Oct-05 1:14 
QuestionControl for live video display on windows form Pin
varmag15-Oct-05 0:44
varmag15-Oct-05 0:44 
QuestionPlotting set of points on a windows form Pin
ilkeru8415-Oct-05 0:24
ilkeru8415-Oct-05 0:24 
AnswerRe: Plotting set of points on a windows form Pin
Guffa15-Oct-05 4:45
Guffa15-Oct-05 4:45 
Questionusing C1TrueDBGrid Pin
deep714-Oct-05 23:59
deep714-Oct-05 23:59 
hi,
i have a problem.i'm usin Component one TrueDbGrid. Also i have dragged a dateTimePicker on it..as per the samples which Component One had, i wrote the code for a particular column to be of type "dateTimpicker"..ther code comes in RowColChange event of the trueDbGrid...
private void c1TrueDBGrid1_RowColChange(object sender, C1.Win.C1TrueDBGrid.RowColChangeEventArgs e)
{
// position the datetime picker on the "BirthDate" column only
C1.Win.C1TrueDBGrid.C1DataColumn col = this.c1TrueDBGrid1.Splits[0].DisplayColumns[this.c1TrueDBGrid1.Col].DataColumn;
if( col.DataField == "BirthDate" )
{
// get the area of the cell
Rectangle r = this.c1TrueDBGrid1.Splits[0].GetCellBounds(this.c1TrueDBGrid1.Row, this.c1TrueDBGrid1.Col);
// change to screen coordiantes
r = this.c1TrueDBGrid1.RectangleToScreen(r);
// map the screen coordinates to the forms client coordinates
this.dateTimePicker1.Location = this.RectangleToClient(r).Location;
// size it to fit inside the cell
this.dateTimePicker1.Size = r.Size;
// default the dateTimePicker to the date in the cell
this._bIgnoreChange = true;
this.dateTimePicker1.Text = col.CellText(this.c1TrueDBGrid1.Row);
this._bIgnoreChange = false;
// display it
this.dateTimePicker1.Visible = true;
}
else
this.dateTimePicker1.Visible = false;
}

so here if the col == "BirthDate", then tat field where i've clicked, becomes of dateTimPicker...but my problem is the dateTimepicker is visible but it doesn't get the correct size and location...y this happens i dont understand...

plz..help me..m stuck...

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.