पृष्ठभूमि मेरे पास निम्न आइटम के साथ एक Windows प्रपत्र है:
< Li> कॉम्बो बॉक्स
textbox
दो बटन
: आगे और पीछे < Li> एक वर्ग - आइटम
जिसमें एक स्ट्रिंग
int
और डबल
सदस्य हैं यदि (कॉम्बो बॉक्स 1। चुने गए इंडेक्स == 2 और amp; amp; आइटम [इंडेक्स] .पीस & gt; 50.00) {txtManu.Text = आइटम [अनुक्रमणिका] .मैनू; TxtPrice.Text = कन्वर्ट। टॉस्ट्रिंग (आइटम [अनुक्रमणिका] .पीस); }
जब मैं फ़ॉर्म पर फ़ॉरवर्ड
बटन पर क्लिक करता हूं तो मुझे 50.00
पर 50.00
पर सभी मूल्यों की अपेक्षा txtPrice । पाठ
टेक्स्टबॉक्स लेकिन इसके बजाय सभी कीमतों को प्रदर्शित किया जा रहा है।
आगे बटन कोड स्निपेट:
else if (comboBox1.SelectedIndex == 2 & amp; amp; [सूचकांक] .पीस & gt; 50.00) {अनुक्रमणिका + = 1; यदि (सूचकांक == आइटम। लैंग) सूचकांक = 0; TxtManu.Text = आइटम [अनुक्रमणिका] .मैनू; }
सूचकांक [0]
और अनुक्रमणिका [1]
आइटम:
कॉम्बोबॉक्स 1। चयन किया गया इंडेक्स == 0
और कॉम्बोबॉक्स 1। चयन किया गया इंडेक्स == 1
।
आगे बटन में इंडेक्स 0 और इंडेक्स 1 आइटम भी हैं: if (comboBox1 । < और यदि (कॉम्बो बॉक्स 1। चुने गए इंडेक्स == 1) क्यों यदि विवरण निष्पादन नहीं कर रहा है? < / P> अपडेट उदाहरण के लिए यह बेहतर कोड है: आइटम [0] = नया आइटम ("कार", 30.00); आइटम [1] = नए आइटम ("बिल्ली", 55.00); आइटम [2] = नए आइटम ("कुकी", 59.00); कॉम्बो बॉक्स कोड स्निपेट यदि (कॉम्बो बॉक्स 1। चुने गए इंडेक्स == 0 और amp; आइटम [अनुक्रमणिका] .पीस & gt; 50.00) {txtPrice.Text = कन्वर्ट। टॉस्ट्रिंग (आइटम [अनुक्रमणिका] .पीस); } ### आगे बटन // एकल कोंबबोक्स अगर (कॉम्बो बॉक्स 1। चुने गए इंडेक्स == 2 और amp; amp; आइटम [इंडेक्स] .पीस & gt; 50.00) {अनुक्रमणिका + = 1; } यदि (अनुक्रमणिका == आइटम। लैंग) {index = 0; } TxtPrice.Text = कन्वर्ट.ToString (आइटम [अनुक्रमणिका] .Price); क्या आप डीबगर के साथ कदम से कदम देख रहे हैं? मुझे लगता है कि अगर एक इंडेक्स आउटबॉन्ड अपवाद हो तो इससे पहले हो रहा है। शायद मैं उस ब्लॉक पर एक प्रयास पकड़ता हूं और देखें कि क्या आपको कोई अपवाद मिल रहा है।
Posted by
Unknown
at
02:22
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Unknown
View my complete profile
Blog Archive
►
2015
(1583)
►
September
(174)
►
August
(172)
►
July
(180)
►
June
(160)
►
May
(201)
►
April
(172)
►
March
(173)
►
February
(183)
►
January
(168)
▼
2014
(1684)
►
September
(186)
►
August
(180)
►
July
(160)
►
June
(167)
►
May
(187)
►
April
(176)
►
March
(200)
►
February
(241)
▼
January
(187)
Free Adinkra Stencil: Osram Ne Nsoroma
1.#EANF#
Description:#EANF#
2.#EANF#
Descript...
1.#EANF#
Description:#EANF#
2.#EANF#
Descript...
Côte d'Ivoire -- A Very Short History of Côte d'Iv...
Pretoria Minute
Constitutional Monarchy -- What is a Constitutiona...
1.#EANF#
Description:#EANF#
2.#EANF#
Descript...
Free Adinkra Stencil: Osram Ne Nsoroma
1.#EANF#
Description:#EANF#
2.#EANF#
Descript...
subsonic3 - Subsonic Simple Repo for high volume s...
windows installer - Controlling Shortcut order in ...
Sed creates un-deleteable files in Windows -
SSH Public key denied on "git clone" command -
c# - how to fetch result from "for xml path"? -
Embedded app and wearing out flash disks -
File read by interrupt in java -
iphone - executing two methods parallely -
database - Oracle move column to the first position -
asp.net mvc - The string was not identified as a v...
How to create menu file in solaris -
c# - ASP.NET MVC debugging following VS2010 uninst...
c# - How to avoid .NET DLL files from being disass...
run windows service from asp.net web page -
Swapping addresses of pointers in C++ -
Creating Sequence in Sql Server -
Controling tabbing focus within popup javascript w...
organization - Several function file includes in P...
sql - SELECT statement -
php - Master / Slave switch in the Zend Framework ...
Is there ever a good reason to use eval()? -
python - Outgoing load balancer -
Question on converting decimal to binary to hex -
c++ - How can I access my class instance from a bo...
seo - Internationalization and Search Engine Optim...
sql server - Data Correlation in large Databases -
cocoa - Display data from NSArray in NSTableView -
Ranking Elements of multiple Lists by their count ...
ASP.NET MVC Ajax and the CKEditor -
c# - Why isn't this If Statement executing? -
opengl - iPhone, rotated + EAGLView, rotated = -
c++ - How do I free SQLServerCE's COM instance fro...
hibernate - Many-to-many on the same table with ad...
asp.net dynamic GridView with dropdownlist column -
I need the most efficient C# RSS reader possible -
c - long long int in ObjC -
Why is WinAPI so much different from "normal" C? -
python - Why can I return references to objects? -
internet explorer - IE 11 and JavaScript Error -
root - Running composer without using sudo -
CSS Animation Delay in Between Loop -
javascript - Is it possible to discover the typed ...
symfony - Customize form rendering {{ form(form)}}...
ios - PFImageView Memory Problems -
javascript - Google Map Places Auto-complete block...
oauth 2.0 - Spring Cloud OAuth2: Password grant ty...
Generating random date in specfic range in Groovy -
Php, array of objects, get all classname of objects -
ios - Modal Segue Causing Black Screen -
Cannot find JavaScript "Alignment" settings in Int...
How to get random 1 or -1 in canvas (javascript)? -
c++ - Copy subset of multimap into a new multimap -
javascript - How to restrict pasting text in an in...
apache - Phantom directories confusing mod_rewrite? -
for loop - How to increment a value in Javascript ...
database - I NEED HELP WRITING T SQL -
selenium - Comparing two strings in Java and seein...
pcspim - How to use floating point registers in MI...
php - Codeigniter set double config upload -
python - Flask Assets only looking for change in o...
php - Issue with routing on my Symfony2 project -
How can I detect if javascript files are being blo...
ASP.net vNext and Entity Framework 6 -
php - INNER JOIN unique column mysql -
How to replace instance of WordPress home_url hype...
ffmpeg - Set up a TV like RTMP channel -
Convert PDF to PCL using Ghostscript 9.15 -
include - c++, is that possible to have two unions...
python - Find / Slicing Method issue -
How do I add 2 unsigned 1 byte numbers in Intel as...
ajax does not send info from client to server side -
cmd - How to count characters in a text file using...
cordova - Sencha touch iOS run shows black screen ...
t to doSwi-Prolog I can't solve exercise -
javascript - In Minitest, can I trigger on-page JS...
sql - FOR UPDATE NOWAIT doesn't work -
c# - Group items by content of list -
Excel count between two array constants - only ret...
visual studio - Don't commit check-in if build sta...
numpy - Python Pandas: How can I search for a stri...
c - How would i make this program loop the main tw...
ruby on rails - Pry: "next" command don't work as ...
ios - Error Domain=com.alamofire.error.serializati...
Exclude jars from target folder in maven -
Android Studio simple Unit Test not working -
jquery - SVG scaling animation -
javascript - "npm start" gives error in ghost (nod...
python turtle fill alternate squares -
android - Calling a specific item onClick without ...
spring - Consuming given amount of messages from c...
fuelcms - FUEL CMS admin gives error 404 -
►
2013
(1486)
►
September
(169)
►
August
(163)
►
July
(161)
►
June
(162)
►
May
(156)
►
April
(170)
►
March
(174)
►
February
(164)
►
January
(167)
►
2012
(1541)
►
September
(176)
►
August
(160)
►
July
(163)
►
June
(179)
►
May
(169)
►
April
(158)
►
March
(201)
►
February
(168)
►
January
(167)
►
2011
(1528)
►
September
(167)
►
August
(176)
►
July
(169)
►
June
(184)
►
May
(157)
►
April
(182)
►
March
(166)
►
February
(171)
►
January
(156)
►
2010
(1540)
►
September
(147)
►
August
(182)
►
July
(168)
►
June
(162)
►
May
(188)
►
April
(169)
►
March
(194)
►
February
(164)
►
January
(166)
Simple theme. Powered by Blogger.