16,006,382 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by stella bloom (Top 25 by date)
stella bloom
1-Oct-17 15:07pm
View
Deleted
hello.. sorry to bother you again but i got a problem in that code which is nt going even i have debug and applied solutions .. i was using this code and the exception pops up i have mentioned down there
stella bloom
1-Oct-17 15:04pm
View
Deleted
hello there ... this answer helped me alot .. but couple of days ago i got exception over where i am loadig question in text box over difflevel index changed that there is no row at position 4.5.6 etc .. i have done debugging.. viuslizer has rows .. count is set its saying there are 10 rows but exception is there also it displaying same rows again and again
i am using the above code which was working fine so far .. i have applied all solutions but problem is there ....
stella bloom
20-Jun-17 11:32am
View
thanx
stella bloom
31-May-17 6:21am
View
thnx
stella bloom
30-May-17 12:44pm
View
Deleted
thanks .. i have teacher table subjects and question table . but not a paper table .. how will i relate paper and question table can u plz explain a bit ..
stella bloom
28-May-17 7:16am
View
thankyou so very much .. u always help
stella bloom
27-May-17 8:03am
View
it works for top 5 or top 10 but stuck on user input in textbox or even if i select the input from combobox whether 10 quest 20 30 etc ..
stella bloom
26-May-17 8:35am
View
i said it above that i used parametrized thing
stella bloom
26-May-17 7:59am
View
i just says 0 rows present when there r rows then index outa range when index is completly in range but when i remove text box everything works smoothly when i type value eg 4 5 etc in textbox it gives error like "error ner value 3" etc idk whats going on its so messsed up
stella bloom
26-May-17 7:57am
View
i just want it to display 10 questions of physics if i type 10 in textbox.. tell me whats wrong with that
stella bloom
26-May-17 7:52am
View
i did but it didnt so i paste the first code thought maybe it will work but nope
stella bloom
21-May-17 13:55pm
View
my ACTUAL QUESTION has been answered
stella bloom
21-May-17 13:45pm
View
thanx that explained alot
stella bloom
21-May-17 13:45pm
View
what i wanted to know the fella down there explained it thoroughly thanx to him
stella bloom
12-May-17 6:49am
View
Deleted
private void PopulateAnswerListView()
{
this.listView1.Items.Clear();
ListViewItem item;
foreach(DataRow row in quest_.Rows)
{
item = this.listView1.Items.Add(row["Question"].ToString());
item.SubItems.Add(row["Answer"].ToString());
}
}
this.listView1.Columns.Add("Questions",100);
this.listView1.Columns.Add("Answers",100);
have tried this ....
stella bloom
12-May-17 6:34am
View
sorrry but its just doin nothin on when i click next now its even not givin the any answer :) would u just help to understand where should i alter my code ?
stella bloom
12-May-17 5:56am
View
well can u help me to understand there what is going wrong in my methods that i used above
stella bloom
27-Apr-17 8:15am
View
Deleted
okay.... i tried working with lists and learning to use them but still not good at it ...
stella bloom
27-Apr-17 7:20am
View
thnx for solution ....
stella bloom
27-Apr-17 7:20am
View
ofcourse i m fixin the prob myself... but u used a method i am new to ... so m tryin to figure it out cux all i was using were arrays ...
stella bloom
26-Apr-17 15:09pm
View
Deleted
its throwing exception ...object refrence not set to an instance .. over int q;
if (!int.TryParse(textBox1.Tag.ToString(), out q))
q = -1;
PopulateQuestion(q + 1);
}here
stella bloom
26-Apr-17 15:07pm
View
Deleted
i applied that .. thankyou ,, but questions are nowhere on form .... thanx xo /// what can i do
stella bloom
26-Apr-17 14:13pm
View
Deleted
string cmdText = "SELECT Question,Opt1,Opt2,Opt3,Opt4 from Questions where SubName='" + cmb.Text + "' AND DiffLevel='" + DiffLevel.Text + "'";
SqlConnection conn = new SqlConnection();
SqlDataAdapter da = new SqlDataAdapter (cmdText, conn);
conn.ConnectionString = constring;
DataTable dt = new DataTable();
SqlCommand cmd = new SqlCommand(cmdText, conn);
try
{
DataSet dst = new DataSet();
// da.Fill(dst, "Question");
conn.Open();
SqlDataReader rd = cmd.ExecuteReader();
{
while (rd.Read()) ;
{
quest[index] = (rd["Question"].ToString());
option1[index] = rd["opt4"].ToString();
option2[index] = rd["opt1"].ToString();
option3[index] = rd["opt2"].ToString();
option4[index] = rd["opt3"].ToString();
index++;
OR
textBox1.Text = quest[index];
radioButton1.Text = option1[index];
radioButton2.Text = option2[index];
radioButton3.Text = option3[index];
radioButton4.Text = option4[index];
index++;
}
}
}
}
catch (Exception exp)
{
MessageBox.Show(exp.ToString());
}
finally
{
conn.Close();
}
}
i have used arrays ,,, but i cant navigate to next ,,, it just display question recently aded ,not all the rows with same diff lvel .... sorry if i messed up ......
stella bloom
26-Apr-17 14:09pm
View
doesn't work mean i am not able to display all questions when i click next it just display the most recent one added
stella bloom
26-Apr-17 14:07pm
View
well i want to navigate through but db displays most recent question added , sorry about any errors its my ist yr with this stuff si idk much ...
Show More