Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6679845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:24:22+00:00 2026-05-26T04:24:22+00:00

As you see, my code (it’s in myform_load ), when I run project, it

  • 0

As you see, my code (it’s in myform_load), when I run project, it continues to line 1. Just not run other lines after that. I got no error, but the code doesn’t run completely. After it come to line one, myform is shown. Where is the problem?

SqlDataAdapter userSharj_history;
private void myform_Load(object sender, EventArgs e)
{
    using (SqlConnection con = new SqlConnection(connectionString))
    {
         con.Open();
         using (userSharj_history = new SqlDataAdapter(String.Format("SELECT * FROM users_sharj WHERE user_id = {0} AND datetime BETWEEN '{1}%' AND '{2}%'", user_id, az_tarikh_globalizationDateTimePicker1.Text, ta_tarikh_globalizationDateTimePicker1.Text), con))
         {
1.           userSharj_history.Fill(nan_DataSet, "sharjes");
2.           gridControl1.DataSource = nan_DataSet.Tables["sharjes"];
         }
         con.Close();
    }
    view_btn.Focus();
}
  • The Query string is fine. I tested it in GUI Query Builder.
  • I use this dataset in my main form that call this form and there is no table in it with the name sharjes.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:24:22+00:00Added an answer on May 26, 2026 at 4:24 am

    Either check the Output window or enable reporting of all exceptions. Visual Studio will not inform you about many exceptions by default.

    Go to menu Debug –> Exceptions… and then tick Thrown for Common language runtime Exceptions and click OK. Run your code again and see if it throws an exception now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See code just bellow Our generic interface public interface Repository<INSTANCE_CLASS, INSTANCE_ID_CLASS> { void add(INSTANCE_CLASS
In my other question You can see code of my arr structure and PriorityQueue
I often see code like that which is shown here , ie where an
Please see code below: <?php require_once(initvars.php); require_once(config.php); if( !$auth->id ){ //NOT logged in header(location:
I'm reviewing a quite old project and see code like this for the second
I was just looking at the Guidelines for Overloading Equals() on msdn (see code
does EKEventEditViewController not support being pushed to a NavController? See code & error attached.
I have a range of animations (see code) that load on document load, i
On iOS/CocoaTouch I often see code that creates a new instance of NSAutoreleasePool within
I have an input element that's configured as a button (see code below). When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.