|
Hi,
the link to NeHe works out for me. If it doesn't work, you might want to google it or visit gamedev.net, which links to NeHe.
As for the code you supplied, I don't see any trouble.
However, the problem might be caused by your update/resize methods. The question is: Under which circumstances do you redraw the screen? You have to do that whenever Windows tells you to do so, because it might have invalidated the screen. This can happen when resizing, minimizing, when another application draws in front of yours or even if a different control receives focus. The latter happens upon click, so make sure you redraw the scene for the events named above.
Chris
"Obstacles are those frightening things you see when you take your Eyes off your aim"
- Henry Ford
Articles
Blog
|
|
|
|
|
I have been looking at the NeHe lesson and they seem to be in C++, sorry if im being blind.
Also what is the best way to rotate text, i.e. having it writing at the angle or vertical.
Thanks
|
|
|
|
|
hi to all!
I m using raw socket class to capture network packets,It parse packet headers of TCP/IP and UDP/IP .I want to determine the packet size .
Is there any method to calculate or get packet size and also tell me how i can calulate the network traffic. if there is any soruce code link availble then send me . thanks
|
|
|
|
|
Hey guys,
I'm developing a jukebox kind of app with video support. Currently I support up to three 'rooms' which can play audio individually. The audio is handled by DirectX (9c) and then ported to sound device which handles the rest for you. Now in order to support multiple 'rooms' I need to insert more sound devices in the machine.
I want to use only one 5.1 sound device, and send the audio of multiple rooms, to different output ports on the sound device. Can anyone give me a hint?
Eduard
|
|
|
|
|
I want to execute multiple command on MS DOS using C SHARP is it possible ?
|
|
|
|
|
See here[^]
Courtesy of Google.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i have a datatable , i mean a temporary table , which has nothing to do with the sql server 2000 database.
now my question is , how can i filter the records from that temporary table , to filter the records.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
use Select() and write you filter, that will return DataRow[]
Code:
DataRow[] Dr = DT.Select("EmpId = 'E999'");
all rows, whose EmpId is equals to E999 will store in Dr
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
is there any need of type casting ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Select returns an array of DataRow . So type casting is not needed.
|
|
|
|
|
GridView inner = (GridView)e.Row.FindControl("inner");<br />
DataRowView dro = (DataRowView)e.Row.DataItem;<br />
if (Session["dt1"] != null)<br />
{<br />
if (inner != null)<br />
{<br />
DataTable dt = (DataTable)Session["dt1"];<br />
DataRowView drowv = (DataRowView)e.Row.DataItem;<br />
DataRow[] dr = (DataRow[])dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());<br />
inner.DataSource = dr;<br />
inner.DataBind();<br />
}<br />
}
Am i doing right to bind the data ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: (DataRow[])dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());
dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString()); I think casting is not needed
|
|
|
|
|
stll there is an error
DataBinding: 'System.Data.DataRow' does not contain a property with the name 'Itemno'.
this column name exist in the table.
Following is the code
<br />
GridView inner = (GridView)e.Row.FindControl("inner");<br />
DataRowView dro = (DataRowView)e.Row.DataItem;<br />
if (Session["dt1"] != null)<br />
{<br />
if (inner != null)<br />
{<br />
DataTable dt = (DataTable)Session["dt1"];<br />
DataRowView drowv = (DataRowView)e.Row.DataItem;<br />
DataRow[] dr = dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());<br />
inner.DataSource = dr;<br />
inner.DataBind();<br />
}<br />
}
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
You don't use a property called 'Itemno' in this code. Did you try using a debugger ? Do you know which line has the error ? I doubt it's one of these...
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
casting may require for columns, but for rows you wont need it
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hello Friends,
I am developing an Windows application in C#.NET and i have Panel controls on the form in this panel there are some other controls i want that when ever i click on copy button then the panel control will get copied along with it control and whenever i paste it on MS word document then it comes in image or clip format.
|
|
|
|
|
can you display the code?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
IDataObject iData = System.Windows.Forms.Clipboard.GetDataObject();
Clipboard.SetDataObject(panel1.Controls);
|
|
|
|
|
You can use the DrawToBitmap method on your panel, and then copy your bitmap into the clipboard. Copying a control into the clipboard, copies the control. Not a picture of it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi everybody
I have a combobox on a cell of datagrid
I want do a action flow:
After I chose a value for combobox, I press enter, the cursor have to jump to next cell.
Please help me soon,
Sorry if I write not exactly
If you can please write me a email to dungbt84@gmail.com
Thank you a lot,
|
|
|
|
|
use CellEndEdit or CellValueChanged event, and increase the column index
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
int Cindex = e.ColumnIndex + 1;
dataGridView1[Cindex, e.RowIndex].Selected = true;
}
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
modified on Tuesday, February 26, 2008 3:16 AM
|
|
|
|
|
thank you for your help but I can't use.
My problem flow:
I have to create a datagrid(for example 5 columns and 3 rows).
If my cursor is at [0,0].When I press enter my cursor jump to [3,0], press enter next it jump to [4,0].
(columns 4 include the comboboxs). After I chose value at combobox. I press enter, the curtor jumb immediate to [1,0].
I think it is so difficult, please help me!
Thank you again,
|
|
|
|
|
so you will need to code yourself, like
if (e.ColumnIndex == 0)
{
}
else if (e.ColumnIndex == 3)
{
}
.........
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I can't do as you said.
Please try to help me again.
|
|
|
|
|
well,
if (e.ColumnIndex == 0)
DGV[3, e.RowIndex].Selected = true;
else if (e.ColumnIndex == 3)
DGV[4, e.RowIndex].Selected = true;
else if (e.ColumnIndex == 4)
DGV[1, e.RowIndex].Selected = true;
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|