473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

C sharp gurus needed! data+combo+selected

ZZZ
int dummy=Convert.ToInt32(das.Tables[0].Rows[0].ItemArray[0].ToString());

MessageBox.Show(dummy.ToString());

this.combo_opNaam.SelectedValue=dummy;

MessageBox.Show(this.combo_opNaam.SelectedValue.To String());
first messagebox : 16,

second: "object reference is not set to an instance of an oject"
Nov 16 '05 #1
1 1278
The error is likely because

this.combo_opNaam

is null.

Christian

---

"ZZZ" <no@spam.com> wrote in message
news:ed**************@TK2MSFTNGP12.phx.gbl...
int dummy=Convert.ToInt32(das.Tables[0].Rows[0].ItemArray[0].ToString());

MessageBox.Show(dummy.ToString());

this.combo_opNaam.SelectedValue=dummy;

MessageBox.Show(this.combo_opNaam.SelectedValue.To String());
first messagebox : 16,

second: "object reference is not set to an instance of an oject"

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Geoff Stein | last post by:
We are looking for several sharp T-SQL people. Folks with experience in tranportation/trucking will be given preference. The job will primarily involve writing and optimising stored...
0
by: Sanjog | last post by:
Guys, Just wanted to share an opportunity with C Sharp gurus. There is an opportunity in IOWA for candidates interested in full time employment. Please note that we could only consider US...
4
by: Baskar RajaSekharan | last post by:
Hi, Please let me know is ther any way to pass some default parameters to a Method in C-Sharp without overloading the Method. In VB we can done the above with the help of optional parameter . ...
4
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got...
1
by: VegaGucci | last post by:
Hi there, I am trying to get the value of an SQL bit field, to link it to an groupbox with 2 radiobuttons. but for some reason..the value of the bit field is NEVER 1/true code: if...
7
by: Chris Thunell | last post by:
I'm looking to find in a long string an instance of 4 numbers in a row, and pull out those numbers. For instance: string = "0104 PBR", i'd like to get the 0104. string="PBR XT 0105 TD", i'd like...
2
by: hilz | last post by:
Hi group, I am starting with C Sharp, and want to build a desktop application. I come from the Java world, where there are Rich Client Platforms that make life easier by providing most of the...
0
by: Silly Milly | last post by:
Calling ALL SSIS GURUS I am trying to import identical MDBs (Access Database) columns into SQL Server 2005 using foreach loop in SSIS. The data and file name of the MDBs are not the same; however...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.