User Profile

Collapse

Profile Sidebar

Collapse
kumsay
kumsay
Last Activity: Mar 18 '13, 12:50 AM
Joined: Jan 6 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • add item from textbox to listbox during runtime

    Hi, I have a combobox, textbox, listbox, and a save button. Combobox is filled with illness names stored from database. Every illness that will be selected from the combobox, its symptoms will be listed in the listbox. When a symptom is typed in the textbox and save button is clicked, the selected value from the combobox and the new symptom typed from the textbox will be saved in the database and the newly typed symptom should be added in the listbox..but...
    See more | Go to post

  • how to have tooltip appear under mouse cursor when you hover over item in list box?

    hi, I just want to ask how to have a tooltip appear under the mouse cursor when you hover over an item in a listbox?..the listbox is populated with values from the database, and if the whole text of an item in the listbox can't be seen and mouse hover on that item, the whole text can be seen. Like this: http://www.flickr.com/photos/9292572...in/photostream. Thanks in advance.
    See more | Go to post

  • Thanks for the advise sir, i'll take a look at it. Anyway my problem is solved now, I reviewed all my code on the class and realized I placed the code I gave above in the wrong event. I placed it on the lstSymp_Selecte dIndexChanged event instead of putting it on the cmbRecord_Selec tedIndexChanged event. The code above is working properly. Sorry for bothering ^_^v
    See more | Go to post

    Leave a comment:


  • get selected combobox item to display its values to listbox

    hello, I need some some help regarding my project. I have a form with a combobox, and listbox. The combobox is populated with illnesses stored in the database. Now, when user select an illness in the combobox, the symptoms should be listed in the listbox. Here's how my table looks like:
    f_id | illness | symptoms
    1 | fever | dizziness
    2 | fever | cold
    3 | fever | hot temperature
    4 | asthma | dizziness...
    See more | Go to post

  • kumsay
    replied to vb 2008 get listbox items
    I know what is SQL sir, its just that I'm just beginning to learn this things..I'm really sorry. I found the site where I got that code: http://stackoverflow.com/questions/1...95822#14695822. I added another listbox which is the lstSelected and made some modifications in the code. I thought its okay to do that, but obviously I was wrong and I don't know what...
    See more | Go to post

    Leave a comment:


  • kumsay
    replied to vb 2008 get listbox items
    I'm sorry sir I don't get you (not familiar with the terms), do you mean the result?
    What I'm trying to do there is when diagnose button is clicked it will list in the lstIllness the illnesses that has a symptom present in the lstSelected. My table looks like this:
    f_id | illness | symptoms
    1 | fever | fever
    2 | fever | cold
    3 | fever | hot temperature
    4 | fever | headache...
    See more | Go to post

    Leave a comment:


  • kumsay
    started a topic vb 2008 get listbox items

    vb 2008 get listbox items

    hello, I am having a problem with getting items from a listbox. I have a form with 3 listboxes and a button. lstSymptoms is populated with symptoms from the database. When a symptom is selected, it is then listed in lstSelected. Now when diagnose button is clicked, it should get the symptoms from lstSelected and diagnose from the database table the illness where this symptoms is present, then display the result to lstIllness. My database table's...
    See more | Go to post

  • ok I'm getting closer..I can add a row in the database now but only 1. Say I entered cold as new illness then filled the 2 textboxes with symptoms, it only stores the symptom on the first textbox. So it only add 1 row with 1 symptom on the table. Also, I still get the "Parameter 'ill' has already been defined". Anybody have an idea?
    See more | Go to post

    Leave a comment:


  • insert and update database table rows using textboxes

    Hi there, I'm having a problem with updating and/or inserting rows in a table in my database. I have a form with a combobox, 10 textboxes, and save button. Here, the combobox if filled with illnesses from the diagnose table in my database. Diagnose table's structure is: f_id, illness, symptoms, so an illness can have many symptoms. If an item is selected from the combobox, the symptoms will be displayed on the textboxes. I already got this working....
    See more | Go to post

  • get values of selected listbox items to another listbox

    hello, I have a form with 2 listboxes. Listbox1 is populated with symptoms. If a symptom is selected, listbox2 will show the related illnesses having that symptom. Here's my working code:
    Code:
    Call Connect()
            With Me
                Dim dt As New DataTable
                STRSQL = "select illness from diagnose where symptom_name = '" & lstSymptoms.SelectedItem & "'"
                Try
    ...
    See more | Go to post

  • I already got it working, here's my working code:
    Code:
    Call Connect()
            With Me
                STRSQL = "select vLocation from movie where vName = '" & lstName.SelectedItem & "'"
                Try
                    myCmd.Connection = myConn
                    myCmd.CommandText = STRSQL
                    myReader = myCmd.ExecuteReader
    
                    If myReader.Read Then
    ...
    See more | Go to post

    Leave a comment:


  • oops!! I already found these 3 in the components' control list: COMCTL32.OCX is the Microsoft Windows Common Controls 5.0 (SP 2), the COMDLG32.OCX is the Microsoft Common Dialog Control 6.0 (SP 3), and the TABCTL32.OCX is the Microsoft Tabbed Dialog Control 6.0. I didn't know these are the right names for these ActiveX controls. Sorry for bothering ^_^v
    See more | Go to post

    Leave a comment:


  • I browse and found a forum in the internet that \ should not be used because within MySQL string values the backslash is interpreted as an escape character and suggested to alter the path values to contain the "\" sequence to actually store a backslash. So I stored the file path as D:\\VBProject\\ videos\\sample. flv but still failed :(
    See more | Go to post

    Leave a comment:


  • how to store file path in mysql database retrieve it using vb.net

    hello, I have form with a listbox and a windows media player. The lisbox is populated with filename from the database. If the user select one item from listbox a video clip should play on the WMP. In the mysql database, I have a table VideoClips with fields vName(varchar), vLocation(varch ar). In vLocation I saved the file path of the picture (D:\VBProject\v ideos\video.flv ).
    Code:
    Call Connect()
            With Me
                STRSQL
    ...
    See more | Go to post

  • problem adding COMCTL32.OCX, COMDLG32.OCX and TABCTL32.OCX

    hello, I want to ask if I could add Comctl32.ocx, Comdlg32.ocx and Tabctl32.ocx in my vb6 project using a code. I know I could just load that 3 ActiveX controls in my project by selecting project > components > then select these 3, one by one, from C:\Windows\Syst em32, since these 3 is not present on the checklistbox provided in the controls tab. But when I select one, it takes so much time before it finish loading, then my project became unresponsive....
    See more | Go to post

  • hi renebi,
    I know it's kinda late to answer your question but I'll still answer it. I've also encountered that problem. You deleted the code for the form that's why the designer for the form changed. You have to type the code for the form so that the designer will be back. Just copy this code:
    Code:
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
    See more | Go to post

    Leave a comment:


  • I've already checked the word_id in the database and it really is the problem ^_^v ..gosh!, I'm sorry for bothering. Thank you very much, it's now working :)

    I still have another problem regarding one of my projects about using checklistbox in vb.net but nobody seemed to know the answer..I've already posted it a week ago :(
    I would be very greatful if anybody could answer it.
    Anyway, thanks again :)
    See more | Go to post

    Leave a comment:


  • this is how I populated my listbox with values:
    Code:
    Dim myCmd As New MySqlCommand
            Dim myReader As MySqlDataReader
            Dim myAdptr As New MySqlDataAdapter
            Dim myDataTable As New DataTable
            Call Connect()
            With Me
                STRSQL = "Select word from glossary"
                Try
                    myCmd.Connection = myConn
                    myCmd.CommandText
    ...
    See more | Go to post

    Leave a comment:


  • thanks Anas Mosaad, I already changed the line 13 but about your first question..maybe that's what I couldn't figure out ^_^v
    @Rabbit
    sorry I have a mistake..the word_id above starts at 0 and not 1. Can you show me sir how to do it?,thanks
    See more | Go to post

    Leave a comment:


  • display value of selected item in listbox to textbox

    hello,I have a simple problem with regards to my project. I'm doing a simple glossary. In my form, I have a textbox to search a word from the listbox, of course a listbox(lstWord ) populated with words stored in the database, and another textbox(txtDefi ne) to display the meaning of the selected word from the listbox. My problem is that when I select a word/item from the listbox it only displays the value of the second item onward and nothing displays...
    See more | Go to post
No activity results to display
Show More
Working...