just simeply you can get the selected description
and make a
query="select catergorycode from table where description="+ listBox1.SelectedItem.ToString();
;
then execute the command ; then after that :
while(dr.read()){
richtextbox.text=dr[0].tostring();
}