Listbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kerfunkle3@gmail.com

    #1

    Listbox

    When i create a listbox and run the program the text options that i
    entered as strings are not visible but i can still click on the
    options as if they were there... what exactly is going on?

  • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

    #2
    RE: Listbox

    kerfunkle3,

    Three questions:

    Have you set the listbox's ForeColor the same as the BackColor?
    What version of Visual Basic?
    Are you running a McAfee virus checker?

    Kerry Moorman


    "kerfunkle3@gma il.com" wrote:
    When i create a listbox and run the program the text options that i
    entered as strings are not visible but i can still click on the
    options as if they were there... what exactly is going on?
    >
    >

    Comment

    • kerfunkle3@gmail.com

      #3
      Re: Listbox

      On Apr 18, 12:14 pm, Kerry Moorman
      <KerryMoor...@d iscussions.micr osoft.comwrote:
      kerfunkle3,
      >
      Three questions:
      >
      Have you set the listbox's ForeColor the same as the BackColor?
      What version of Visual Basic?
      Are you running a McAfee virus checker?
      >
      Kerry Moorman
      >
      "kerfunk...@gma il.com" wrote:
      When i create a listbox and run the program the text options that i
      entered as strings are not visible but i can still click on the
      options as if they were there... what exactly is going on?
      no, i'm not sure at the moment, yes i am

      Comment

      • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

        #4
        Re: Listbox

        kerfunkle3,

        If you are running McAfee(R) VirusScan(R) EnterpriseVersi on 8.0i, then this
        is a known bug.

        McAfee has a patch at their site, but I don't have any of the details. I
        know that Patch 9 fixed the problem for me a couple of years ago.

        Kerry Moorman


        "kerfunkle3@gma il.com" wrote:
        On Apr 18, 12:14 pm, Kerry Moorman
        <KerryMoor...@d iscussions.micr osoft.comwrote:
        kerfunkle3,

        Three questions:

        Have you set the listbox's ForeColor the same as the BackColor?
        What version of Visual Basic?
        Are you running a McAfee virus checker?

        Kerry Moorman

        "kerfunk...@gma il.com" wrote:
        When i create a listbox and run the program the text options that i
        entered as strings are not visible but i can still click on the
        options as if they were there... what exactly is going on?
        >
        no, i'm not sure at the moment, yes i am
        >
        >

        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: Listbox

          <kerfunkle3@gma il.comschrieb:
          When i create a listbox and run the program the text options that i
          entered as strings are not visible but i can still click on the
          options as if they were there... what exactly is going on?
          Fixing the problem of missing text in controls and message boxes
          <URL:http://dotnet.mvps.org/dotnet/faqs/?id=controlsmis singtextbug&lan g=en>

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

          Comment

          • neeraja.ec@gmail.com

            #6
            ASP Pgm pls help me out.....

            hi i'm neeraja
            i'm new to Dotnet subject nd i'm getting one exception while running
            one ASP Pgm
            pls rectify the problem and what actually is.... help me out
            here is my pgm:


            using System;
            using System.Collecti ons;
            using System.Componen tModel;
            using System.Data;
            using System.Drawing;
            using System.Web;
            using System.Web.Sess ionState;
            using System.Web.UI;
            using System.Web.UI.W ebControls;
            using System.Web.UI.H tmlControls;
            using System.Data.Sql Client;
            namespace WebApplication2
            {
            /// <summary>
            /// Summary description for WebForm1.
            /// </summary>
            public class WebForm1 : System.Web.UI.P age
            {
            protected System.Web.UI.W ebControls.Text Box TextBox1;
            protected System.Web.UI.W ebControls.Text Box TextBox2;
            protected System.Web.UI.W ebControls.Butt on Button1;

            private void Page_Load(objec t sender, System.EventArg s e)
            {
            // Put user code to initialize the page here
            }

            #region Web Form Designer generated code
            override protected void OnInit(EventArg s e)
            {
            //
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.
            //
            InitializeCompo nent();
            base.OnInit(e);
            }

            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeCompo nent()
            {
            this.Button1.Cl ick += new System.EventHan dler(this.Butto n1_Click);
            this.Load += new System.EventHan dler(this.Page_ Load);

            }
            #endregion

            private void Button1_Click(o bject sender, System.EventArg s e)
            {
            SqlConnection conn=new SqlConnection(" uid=sa; pwd=;database=p ubs");
            SqlCommand comm;
            SqlDataReader dr;
            comm=new SqlCommand(Text Box1.Text,conn) ;
            conn.Open();
            dr=comm.Execute Reader();
            while(dr.Read() )
            {
            for(int i=0; i<dr.FieldCount ;i++)
            {
            TextBox2.Text+= dr[i].ToString();
            }
            TextBox2.Text+= "\n";
            }
            dr.Close();
            conn.Close();

            }
            }
            }

            after running this one when i click the button then i'm getting this
            error page:........


            Server Error in '/WebApplication2 ' Application.
            --------------------------------------------------------------------------------

            ExecuteReader: CommandText property has not been initialized
            Description: An unhandled exception occurred during the execution of
            the current web request. Please review the stack trace for more
            information about the error and where it originated in the code.

            Exception Details: System.InvalidO perationExcepti on: ExecuteReader:
            CommandText property has not been initialized

            Source Error:

            An unhandled exception was generated during the execution of the
            current web request. Information regarding the origin and location of
            the exception can be identified using the exception stack trace
            below.

            Stack Trace:


            [InvalidOperatio nException: ExecuteReader: CommandText property has
            not been initialized]
            System.Data.Sql Client.SqlComma nd.ValidateComm and(String method,
            Boolean executing)
            System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
            cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
            System.Data.Sql Client.SqlComma nd.ExecuteReade r()
            WebApplication2 .WebForm1.Butto n1_Click(Object sender, EventArgs e)
            System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e)

            System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
            eventArgument)
            System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
            sourceControl, String eventArgument)
            System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
            System.Web.UI.P age.ProcessRequ estMain()




            --------------------------------------------------------------------------------
            Version Information: Microsoft .NET Framework Version:1.1.432 2.573;
            ASP.NET Version:1.1.432 2.573

            Comment

            Working...