Click here to Skip to main content
15,905,781 members
Home / Discussions / C#
   

C#

 
Questionhow can i make a full row select in a datagrid Pin
-spy-20-Jun-07 1:52
-spy-20-Jun-07 1:52 
AnswerRe: how can i make a full row select in a datagrid Pin
Not Active20-Jun-07 2:24
mentorNot Active20-Jun-07 2:24 
AnswerRe: how can i make a full row select in a datagrid Pin
Stu Richardson20-Jun-07 3:35
Stu Richardson20-Jun-07 3:35 
QuestionProgramming processes in C# - concurrency [modified] Pin
Theghost20-Jun-07 1:22
Theghost20-Jun-07 1:22 
AnswerRe: Programming processes in C# - concurrency Pin
J4amieC20-Jun-07 3:01
J4amieC20-Jun-07 3:01 
QuestionKey Press event of textbox Pin
Sapan Roy20-Jun-07 1:10
Sapan Roy20-Jun-07 1:10 
AnswerRe: Key Press event of textbox Pin
Martin#20-Jun-07 1:16
Martin#20-Jun-07 1:16 
QuestionString Concatenation Issue Pin
Brendan Vogt20-Jun-07 0:44
Brendan Vogt20-Jun-07 0:44 
AnswerRe: String Concatenation Issue Pin
Martin#20-Jun-07 0:51
Martin#20-Jun-07 0:51 
AnswerRe: String Concatenation Issue Pin
Sandeep Akhare20-Jun-07 0:59
Sandeep Akhare20-Jun-07 0:59 
Questionfile server Pin
sureshprabhu20-Jun-07 0:33
sureshprabhu20-Jun-07 0:33 
QuestionSerializing the same object instance twice... Pin
Shy Agam20-Jun-07 0:10
Shy Agam20-Jun-07 0:10 
AnswerRe: Serializing the same object instance twice... [modified] Pin
Martin#20-Jun-07 0:20
Martin#20-Jun-07 0:20 
AnswerRe: Serializing the same object instance twice... Pin
welbers20-Jun-07 0:29
welbers20-Jun-07 0:29 
AnswerRe: Serializing the same object instance twice... Pin
Shy Agam20-Jun-07 0:38
Shy Agam20-Jun-07 0:38 
Questionflicker free fast moving images Pin
wolf70719-Jun-07 23:53
wolf70719-Jun-07 23:53 
AnswerRe: flicker free fast moving images Pin
Martin#20-Jun-07 0:03
Martin#20-Jun-07 0:03 
QuestionCustomizing the grid columns Pin
minkinin19-Jun-07 23:23
minkinin19-Jun-07 23:23 
QuestionUse of trignometric func.??-----------help urgent Pin
Raza568019-Jun-07 23:17
Raza568019-Jun-07 23:17 
AnswerRe: Use of trignometric func.??-----------help urgent Pin
Giorgi Dalakishvili19-Jun-07 23:28
mentorGiorgi Dalakishvili19-Jun-07 23:28 
QuestionZooming in C# using opengl Pin
a_david12319-Jun-07 22:48
a_david12319-Jun-07 22:48 
AnswerRe: Zooming in C# using opengl Pin
a_david12325-Jun-07 20:35
a_david12325-Jun-07 20:35 
Dear all
Regards

following is my code for zooming a triangle, but it is not working , i think some problem in GLlookAt();

----------------CODE----------------------
protected override void OnSizeChanged(EventArgs e)
{


base.OnSizeChanged(e);
System.Drawing.Size s = Size;
width = (double)s.Width;
height = (double)s.Height;
GL.glViewport(0,0,s.Width,s.Height);
GL.glMatrixMode(GL.GL_PROJECTION);
GL.glLoadIdentity();
GL.gluPerspective(60.0, (float)s.Width / (float)s.Height, 1.0, 50.0);
GL.glMatrixMode(GL.GL_MODELVIEW);
GL.glLoadIdentity();



}
public override void glDraw()
{

GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); // Clear Screen And Depth Buffer
GL.glLoadIdentity(); // Reset The Current Modelview Matrix
GL.gluLookAt(0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0);
GL.glLoadIdentity();
GL.glTranslatef(-1.5f, 0.0f, -6.0f); // Move Left 1.5 Units And Into The Screen 6.0
GL.glBegin(GL.GL_TRIANGLES); // Drawing Using Triangles
GL.glVertex3f(0.0f, 1.0f, 0.0f); // Top
GL.glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left
GL.glVertex3f(1.0f, -1.0f, 0.0f); // Bottom Right
GL.glEnd();


this.Refresh();
// GL.glFlush();
}
----------------------End----------------------------------------------------

kindly help me while zooming the above triangle.

waiting for your help

regards
davidCry | :((

david

QuestionSocket Progamming using UDP Pin
ramdil19-Jun-07 22:31
ramdil19-Jun-07 22:31 
Questionhelp ... Pin
B.A19-Jun-07 22:17
B.A19-Jun-07 22:17 
Questionwindows service scheduler Pin
arkiboys19-Jun-07 22:04
arkiboys19-Jun-07 22:04 

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.