User Profile

Collapse

Profile Sidebar

Collapse
ahmadbaseet
ahmadbaseet
Last Activity: Mar 28 '08, 09:37 AM
Joined: Aug 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Dynamically Created Eventhandler and passing the textbox value

    Hello all
    I am new to VB.NET. I am trying to create dynamically objects and giving them the event handles. Something like this

    Code:
    Dim NewTab As New TabPage
    Dim NewTextBox As New TextBox
    Dim NewTab2 As New TabPage
    Dim b As New Button
    
    AddHandler b.Click, AddressOf b1
    
    Me.TabControl1.Controls.Add(NewTab)
    
    NewTab.Controls.Add(NewTextBox)
    NewTab.Controls.Add(b)
    
    Private
    ...
    See more | Go to post
    Last edited by acoder; Apr 2 '12, 10:54 AM.

  • Hallo,

    May be you havent undestood my question. Actually i am making on pressing F4
    key a new tabpage, and on that page i have a button and a text box. I call a button:
    Dim b as new Button and box as Dim t as new Textbox

    Now I added a handler for click.

    Now How can I pass the text box value to a handler function? i.e. how can I see the text box value after clciking the button.
    ...
    See more | Go to post

    Leave a comment:


  • Dynamically Created Eventhandler and passing the textbox value

    Hello all
    I am new to VB.NET. I am trying to create dynamically objects and giving them the event handles. Something like this
    [code=vbnet]
    Dim NewTab As New TabPage
    Dim NewTextBox As New TextBox
    Dim NewTab2 As New TabPage
    Dim b As New Button

    AddHandler b.Click, AddressOf b1

    Me.TabControl1. Controls.Add(Ne wTab)

    ...
    See more | Go to post
    Last edited by Frinavale; Mar 10 '08, 03:45 AM. Reason: Added [code] Tags

  • ahmadbaseet
    replied to Copy and add the data into the table
    please help me. it is urgent
    See more | Go to post

    Leave a comment:


  • ahmadbaseet
    started a topic Copy and add the data into the table

    Copy and add the data into the table

    Hello, I have problem. I want to copy the data from the table and add it to another table. This is simple, But the problem is that the I want to copy as well as add the data from variables into table. i.e.
    strSQL2 = "INSERT INTO SubProj (Project, SubProject, Stundensatz ) SELECT SubProjectName, Kosten FROM Mustertabelle WHERE Check = -1 "

    In SubProj, I want to add in Project field not from the other table but from...
    See more | Go to post

  • I will try this, but if u have any other idea plz write that also. Thanks a lot....
    See more | Go to post

    Leave a comment:


  • How to get more records from table and getting them with DAO?

    Hello,
    How can I get more records with DAO.
    I write
    Dim rs As DAO.Recordset
    'selecting data through SQL then
    with "rs("Fieldname" )"
    I can get the data if only 1 row is back from SQL query. How can I write if I get more than 1 row from table. is it like this
    with rs(0,"Fieldname ")
    please reeply as soon as possible, Thnaks in advance
    See more | Go to post

  • ahmadbaseet
    replied to Key violation in Access tables
    No I am not entring Auto numbers field
    See more | Go to post

    Leave a comment:


  • ahmadbaseet
    replied to Compiler not recognizing DAO object
    One more problem, I have two table which are connected thru one to many relationship. I am entering data in the main table with sql command. But getting Error Kay voilation error. I set one field as a primary key. Why am I getting KEY VOILATION error. Thanx
    See more | Go to post

    Leave a comment:


  • ahmadbaseet
    replied to Compiler not recognizing DAO object
    Ahhh.. ok.....Very very thanks.... Sorry about my English..
    See more | Go to post

    Leave a comment:


  • ahmadbaseet
    started a topic Key violation in Access tables

    Key violation in Access tables

    Hello every one. In Access database, I have two tables which are connected by One-to-Many relationship. like:. 1 is Projects, 2 is subprojects. I am tryin to enter the data bay sql statement, But i am getting the Key voilation Error. Can anybody tell me what could be the problem. Thanx
    See more | Go to post

  • ahmadbaseet
    replied to Compiler not recognizing DAO object
    Actually I am doing something like that

    Dim rst as DAO.recordset

    set rst = currentdb.openr ecordset("SELEC T Atty_TK,Client, Matter,Descript ion FROM qry_LastJob")

    if not rst.bof and not rst.eof then

    Me.cmbo_atty = rst("Atty_TK")
    Me.cmbo_Client = rst("Client")
    Me.cmbo_matter = rst("Matter")
    Me.Description = rst("Descriptio n")...
    See more | Go to post

    Leave a comment:


  • ahmadbaseet
    replied to Compiler not recognizing DAO object
    Hello, Can u please tell me how to set it?.Actually Whan I write Dim rs As, and then press space, the list comes in which all the classes are their, for example, String etc. But DAO is not their. I saw on my friends computer. it was their in Access 2003. As said I am new to Access. Thanks. Plz explain it if u can.. Very thanks in advance
    See more | Go to post

    Leave a comment:


  • ahmadbaseet
    started a topic Compiler not recognizing DAO object

    Compiler not recognizing DAO object

    Hello every one. I am new to MS Access. I am using data SQL command SELECT to fetch some data from Access tables. I want to use DAO.Recordset object to get the data, but somehow my compiler is not recognizing the DAO object. I am using Access 2003. Can somebody help me. I cannot declare Dim rs As DAO. Thanks in advance
    See more | Go to post

  • ahmadbaseet
    replied to Select TOP x number of records
    Hello every one. I am new to MS Access. I am using data SQL command SELECT to fetch some data from Access tables. I want to use DAO.Recordset object to get the data, but somehow my compiler is not recognizing the DAO object. I am using Access 2003. Can somebody help me. I cannot declare Dim rs As DAO. Thanks in advance
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...