473,545 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C sharp gurus needed! data+combo+sele cted

ZZZ
int dummy=Convert.T oInt32(das.Tabl es[0].Rows[0].ItemArray[0].ToString());

MessageBox.Show (dummy.ToString ());

this.combo_opNa am.SelectedValu e=dummy;

MessageBox.Show (this.combo_opN aam.SelectedVal ue.ToString());
first messagebox : 16,

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

this.combo_opNa am

is null.

Christian

---

"ZZZ" <no@spam.com> wrote in message
news:ed******** ******@TK2MSFTN GP12.phx.gbl...
int dummy=Convert.T oInt32(das.Tabl es[0].Rows[0].ItemArray[0].ToString());

MessageBox.Show (dummy.ToString ());

this.combo_opNa am.SelectedValu e=dummy;

MessageBox.Show (this.combo_opN aam.SelectedVal ue.ToString());
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
1067
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 procedures hitting against terabytes of data. Please email your resume to plowman_1@yahoo.com.
0
931
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 Citizens for this position. - 1 DOTNET Architect with proven expertise and command over CSharp - 3-4 developers with proven experience and expertise...
4
1211
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 . What's the Equvelent in C-Sharp. Note : Without Method OverLoading. can you give me some sample.
4
2493
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 hard time to understand vb syntax. I don't know if anyone in here can point out which is the equivalent object used in c sharp. Translate these...
1
5210
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 sqlfield=true
7
3967
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 to get the 0105. The numbers will always be 4 digits together. (I'm using vb.net) Any help would be greatly appreciated! Chris...
2
8914
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 standard services needed by a desktop application. Examples are the NetBeans Platform, and the Eclipse RCP among others. Is there such a thing in the C...
0
1645
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 the structure (column) is. I do need to capture part of the file name and insert it into the destination column (i.e. Year). I've used the foreach...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7419
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7756
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5326
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1879
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
703
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.