2,383 Posted Topics
Re: [QUOTE=dedenfk;1736320]hi friend how about using the listview in vb6! thank you[/QUOTE] How about make your own thread? | |
Re: Actually this section for VB 4/5/6, and your code is for [URL="http://www.daniweb.com/software-development/vbnet/58"]VB.Net Section.[/URL] For your question. I suggest to trap any character except "abcdefg" and "12345" when user type it on textbox. So user only can input "abcdefg" or "12345". | |
Re: [QUOTE]Each time I enter the text in the box after clicking the (Add button), it does not add it in the combobox. What's missing??[/QUOTE] You code never add text to combo box. [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim userMsg As String userMsg … | |
Re: Provides more information. Actually, how far you doing this. Post your code and we try to correct it. | |
Re: Just use looping. If you already manage to move single item, then use looping to move all items. | |
Re: try this following code to hide folder [code=vb]Private Sub Form_Load() Dim FileSys, FolderPath Set FileSys = CreateObject("Scripting.FileSystemObject") Set FolderPath = FileSys.GetFolder("D:\test") FolderPath.Attributes = -1 End Sub [/code] to unhide set attributes = 0 | |
Re: [CODE]me.dispose(false)[/CODE] | |
Re: populate each combobox with each table. use key to search data in every table. so your table must be connected each other. Now the question : [QUOTE]id description ap code seg code [/QUOTE] - it is your database and tables named is Id, Description, Ap Code, Seg Code (4 table) … | |
![]() | Re: as james said you should to using[URL="http://msdn2.microsoft.com/en-us/library/aa389273.aspx"] wmi (Windows Management Instrumentation)[/URL]. i have a simple prog to read motherboard model but i m do with vb.net. if you want, i'll post it for you. |
Re: you just check each of the value in registration form with data in your database, what the problems... if u can save and show data from database so its not difficult to validate registration from with database. | |
Re: you mean just show date in label? try this code : [CODE=vb]Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Label1.Text = System.DateTime.Today.ToLongDateString End Sub[/CODE] | |
Re: just rewrite it into vb6. i believe if u can write program in vb.net than it would easy to convert it into vb6. | |
Re: [B]COUNT[/B] function to count how much record in current column. [B]SUM[/B] function to added all value in current column. [B]AVG[/B] function to get average of all value in current column. etc... Well Great to solved your thread by your self. Happy coding friend :) | |
Re: see this attachment : [ATTACH]5331[/ATTACH] Hope this helps.. | |
Re: Make sure that you've been declared adoTransaction : [CODE]Set adoTransaction = New ADODB.Recordset[/CODE] | |
Re: 1. Go to Project->Project Properties, In General Tab make sure that your Project Type is Standard Exe. You can also change the Application Title, Icon, Version and Version Information in Make Tab. 2. If you sure to build it then go to File->Make Project.Exe, Save Dialog will appear to save … | |
Re: [QUOTE]I always receive Run-time error '70' "Permission denied"[/QUOTE] Your database currently used. Close All connection before copying it. | |
Re: I don't understand what the relevance about your question and your posting code, but i still to answer it. If you want to close all form and end the program then you can use [B]END[/B] . Unload Me just close the current form not the entire program. So any hidden … | |
Re: What the function of Str_T? Also your select case is wrong. Just fill Type_rs with user type information from db (With [B]Type_rs.Open ...[/B]) . [CODE] SELECT Case Type_rs.Field("User Type") Case "Administrator" mainfrm.toobar1.enable=true case "Operator" mainfrm.toolbar1.enable=False End SELECT[/CODE] | |
Re: Sometimes upgrade wizard is not working. So, just rewrite the codes in vb.net :) | |
Re: How far you doing this? post your code, so we can help you :) | |
Re: Or you can set it with code at form load: [CODE]TextBox1.MaxLength = 3[/CODE] | |
Re: [QUOTE]and when customer insert the notes into machine, the textbox appear the number of notes.[/QUOTE] Insert the notes from where? textbox? or other control? What the buttons function? you want when the user click the button the textbox show the result of balance? what the itotal function? | |
Re: Show your effort friend. post your code that you've been work. :) | |
Re: [URL="http://www.homeandlearn.co.uk/net/vbNet.html"]Visit this site[/URL]. You can learn much about vb.net there. Also there are good [URL="http://www.homeandlearn.co.uk/net/nets12p4.html"]Tutorial about database project[/URL]. | |
Re: Try This : [CODE] Private Sub ListView1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged Dim i As Integer If ListView1.SelectedItems.Count = 0 Then Exit Sub i = Val(ListView1.SelectedIndices.Item(0).ToString) MsgBox(ListView1.Items(i).SubItems(1).Text) End Sub [/CODE] You also can use this line of code to get selected index : [CODE]i = Val(ListView1.SelectedItems(0).Index) … | |
Re: [QUOTE]once one value has been selected, is there a way to disable it from being selected in the combo box or even delete the one value from the combobox but keep it in the database.[/QUOTE] This following code to remove selected combo box item. [CODE]Private Sub Combo1_Click() Combo1.RemoveItem Combo1.ListIndex End … | |
Re: [QUOTE]Please i need your help in writing pseudocodes on the who wants to be a millionaire game.[/QUOTE] You First. show your effort. | |
Re: See this [URL="http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/360613/1539783"]thread[/URL] | |
Re: Create a procedure to select data from table and display it to flexgrid. Then call this procedure after adding data or any at event that you want. | |
Re: is this code running well? i mean, this code can display data to combo box? [CODE]Combo1.AddItem !Office_Code '& vbTab & !Office_Title[/CODE] You use vbtab to separate data. is that working? I think VbTab not working to separate it. You can use space or commas (or other sign) . [CODE]Combo1.AddItem !Office_Code … | |
Re: Try This : [CODE] Function HasConnectivity() As Boolean Dim hostInfo As System.Net.IPHostEntry Try 'to look for the logon server Dim sServer As String = Environment.GetEnvironmentVariable("logonserver") hostInfo = System.Net.Dns.GetHostByName(sServer.Remove(0, 2)) Return True Catch 'theres no network connection Return False End Try End Function [/CODE] For Checking : [CODE] If HasConnectivity() = … | |
Re: [CODE]if (count<max) and (br.checked=true or am.checked=true) then 'code end if[/CODE] Yes, you can do this. | |
Re: [QUOTE]Ex: if I enter the core in 4, then the program will show the game with 4 core and below. [/QUOTE] Use Search Statement. Find for game with 4 core. | |
Re: Check your Timer Enable Properties. Make sure that is set to True, also check for Timer Interval is not 0. | |
Re: Try This : [CODE]Application.StartupPath[/CODE] | |
Re: Try This : Text1 is filled by any text or words Text2 is filled by char to find. [CODE] Private Sub Command1_Click() Dim CharCount, i As Integer CharCount = 0 For i = 0 To Len(Text1.Text) Text1.SetFocus Text1.SelStart = i Text1.SelLength = 1 If Text1.SelText = Text2.Text Then CharCount = … | |
Re: FileOpen is not available in vb6 but in vb.net I will ask moderator to move this thread to vb.net section. You will get more answer there from many gurus. | |
Re: This part code : [CODE]If displayText.Text > TextBox2.Text Then ' Line 8 amount = displayText.Text - TextBox2.Text ' Line 9 [/CODE] Your textbox2 value is String. you cannot subtract or compare it with a double value. You need to convert it to double. | |
Re: Or you can use Left() function to get it. | |
Re: See if this helps : Assuming that the ListView already have a header, so index i start from 1. If you don't have header then index start from 0. [CODE]Private Sub Command1_Click() Dim temp As Integer temp = 0 For i = 1 To ListView1.ListItems.Count 'temp = temp + Val(ListView1.ListItems.Item(i).Text) … | |
Re: [QUOTE=jemz;1547356]Hello, Please help me, how can i populate or display my newly added list in the listview, if i will click my addbutton.can you please help me. Thank you in advance and I am hoping for your positiver response.[/QUOTE] Hi, Are you can display data on listview? What database are … | |
The End.