2,383 Posted Topics
Re: there are none error, your code its fine. what the error that you found in it?? the bold code its right. | |
Re: why you must get startup path??what you want to do? | |
Re: answered by shouvik. try it friend. | |
Re: use this follwing code : needed two listbox named list1 and list2 [code=vb]Const TH32CS_SNAPHEAPLIST = &H1 Const TH32CS_SNAPPROCESS = &H2 Const TH32CS_SNAPTHREAD = &H4 Const TH32CS_SNAPMODULE = &H8 Const TH32CS_SNAPALL = (TH32CS_SNAPHEAPLIST Or TH32CS_SNAPPROCESS Or TH32CS_SNAPTHREAD Or TH32CS_SNAPMODULE) Const TH32CS_INHERIT = &H80000000 Const MAX_PATH As Integer = 260 Private Type … | |
Re: this following code to read name and serial number of HD : [code=vb]Private Type DRIVEINFO HDDModel As String HDDIType As String HDDSerialNum As String End Type Dim info As DRIVEINFO Public Function HDDSerialNumber() Dim objs As Object Dim obj As Object Dim WMI As Object Set WMI = GetObject("WinMgmts:") Set … | |
Re: i don't understand what the problem is... what you want to do with the labels?? if u copied them, that is to be certain they have a same properties with the parent. they just have a different name. | |
Re: use this following code : [code=vb]Private Const MAX_COMPUTERNAME_LENGTH As Long = 31 Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long Private Sub GetCompName() Dim dwLen As Long Dim strString As String 'Create a buffer dwLen = MAX_COMPUTERNAME_LENGTH + 1 strString = … | |
Re: [QUOTE=jwenting;521209]I've got a 2GB iPod Nano and it's enough.[/QUOTE] it's not enough?? wow, how many file you want to save in it... | |
Re: this code for move item from listleft to listright : [code=vb.net]Private Sub cmdRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRemove.Click If ListLeft.Items.Count > 0 Then ListRight.Items.Add(ListLeft.SelectedItem) ListLeft.Items.Remove(ListLeft.SelectedItem) End If End Sub[/code] this code to move all item on listleft to list right : [code=vb.net] Private Sub cmdAll_Click(ByVal sender … | |
Re: make calculator maybe a simple program to you. i do this project when i learned vb at first time. | |
Re: [code]SELECT * FROM TableName WHERE ColumnName like '%" & textBox1.Text & "%'[/code] | |
Re: there are not something wrong with _ syntax but the red one is forgotten part : [code] button = MessageBox.Show("Are you a wholesaler? ", [COLOR="Red"]" This is a Caption"[/COLOR], _ MessageBoxButtons.YesNo, _ MessageBoxIcon.Information, MessageBoxDefaultButton.Button2)[/code] PS : remember to enter after _ syntax. | |
| |
Re: Hi...Welcome to Daniweb Friend :) I hope you will enjoy all things in Daniweb :) | |
Re: [QUOTE]I use a DBGrid in 2 applications in 2 languages[/QUOTE]different language or different project? if just one project, check the reference of project. | |
Re: as ryan said look in controls propeties, the minor one of tab index value will get focus. ie : text1 - tabIndex = 0 -> this control will get focus text2 - tabIndex = 1 -> focus after text1 .... or see where the cursor flicker when it run. | |
Re: [QUOTE]ElseIf SqlDataAdapter1.SelectCommand.CommandText "SELECT * FROM Managers WHERE managerID = '+ TxtUsername.Text +' and password = '+ txtPassword.text+ " Then FrmManView.Show() [/QUOTE]you not checked input just select data from input. | |
| |
Re: [QUOTE=Jawker;558958]Hello Everybody, I just started learning programming about 2 months ago. I'm trying to do a Tic-Tac-Toe game using labels but I have a little difficulty. How do I get the computer to check if 3 labels are of the same value. I've tried this: [code] If lblLeft.Text And lblCenter.Text … | |
Re: 1. i don't understand what your first question. 2. use manifest file to make your program looks like your windows style. - if you want to hide maximize or minimize box u can set in form properties to hide this box or you can change [B]border style[/B] of form. fixed … | |
| |
Re: the easiest way is save the path of image and save it into database. when you want to display it, you will call the file name of image. | |
Re: this code i used to bind data into combobox : [code=vb.net]Private Sub ReadData() Dim i As Integer Dim cmdStudent As New SqlCommand Dim daStudent As New SqlDataAdapter Dim dsStudent As New DataSet Dim dtStudent As New DataTable Dim conn As SqlConnection conn = GetConnect() Try cmdStudent = conn.CreateCommand cmdStudent.CommandText = … | |
The End.