279 Posted Topics
Re: I don't think you are allowed to send .exe files via email. That's why all of them are zipped. | |
Re: Excellent stuff there!! | |
Re: Maybe use this: byHour = CInt(Val(Trim(txtByhour.Text))) byDay = CInt(Val(Trim(txtByday.Text))) | |
Re: You can close a child form by using: Me.ActiveMdiChild().Close() | |
Re: There a few things you can check in vb6 code. Do a serch on google: check hard disk with vb6 and check this one out: http://msdn.microsoft.com/en-us/library/vstudio/xw6hsa4x(v=vs.100).aspx Do a search of search on any hardware check vou want to perform on google | |
Re: You are already using the Len() method. So you need to dim an integer like dim intLen and than assign it the Len of your email like: intLen= Len(Trim(rs("Email1"))). Alternatively you can count the characters in a string. | |
Re: In Textbox2.text you have "Password Then" maybe it should only be "Password" , jsut guessing | |
Re: There are a number of different time formats you can use- depends what you want. Off Dream in Code http://www.dreamincode.net/forums/topic/337172-display-date-in-words/ Dim today = DateTime.Now 'Display time in different labels and different formats Label1.Text = String.Format("{0:dddd, MMMM d}", today) Label2.Text = String.Format("{0:hh:mm tt}", today) Also check this out for different time … | |
Re: > I've created all the forms I need for it work but I cant create the main form that the user will use to choose what action will be executed, Click on MyProject which opens a new tab and there you can set the startup form that will be displayed … | |
Re: This comes off a code snippet in this forum Private Sub cmdPrint_Click() 'set the printer and print something If Len(PrinterList.SelectedItem.Text) > 0 Then Set Printer = Printers(PrinterList.SelectedItem.Index - 1) Printer.Copies = NoCopies End If 'add any print statements here that you want Printer.Print "hello" Printer.EndDoc cmdCancel_Click End Su | |
Re: ' Visual Basic 6.0 For i = 1 To ListView1.ListItems.Count If ListView1.ListItems(i).Selected = True Then MsgBox(ListView1.SelectedItem End If Next i Also check out this reference: http://msdn.microsoft.com/en-us/library/ms172636(v=vs.90).aspx | |
Re: Not knowing which version of vb you are using I do use vb6 for this. Your loop is ok but you are not accessing the combos. You either have created and array of these or added these one by one. If the last is the case you need to set … | |
Re: There isno easy way or no way to change the forecolor of a command button. Workaround is easy. Instead of using a command button use a checkbox. This has the same properties as a command button but also a forecolor property. What you do is set the property style to … | |
Re: Maybe this link helps. http://p2p.wrox.com/vb-net-2002-2003-basics/9682-saving-rich-text-box-formatting.html | |
Re: Just tried your code. Just removed 'AddHandler newbox.TextChanged, AddressOf TextBox_TextChanged because it threw an error. Textboxes line up ok.  | |
Re: 'SQL Connection String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\yourdatabase.mdb" | |
Re: Maybe the Tag propert can help you. For Each objControl As Control In form1.Controls If TypeOf objControl is Button Then If objControl.Tag <> objControl.Text Then '---Changes have been made!--- End if End if Next Also check these out: http://msdn.microsoft.com/de-de/library/system.windows.forms.control.tag(v=vs.110).aspx http://stackoverflow.com/questions/5299435/how-to-create-control-arrays-in-vb-net | |
Re: Are you pointing to your database location? Something like this: AccessConnect = "Driver={Microsoft Access Driver (*.mdb)};" & _ "Dbq=nwind.mdb;" & _ "DefaultDir=C:\program files\devstudio\vb;" & _ "Uid=Admin;Pwd=;" | |
Re: To use the shapecontrol you need to load down the powerpack off the MS website and folow the install instructions: http://msdn.microsoft.com/en-us/vstudio/bb735936 | |
Re: Just double click on "Sub sub menu 3.3" and add something like this: Private Sub LoadForm2ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles LoadForm2ToolStripMenuItem.Click Form2.Show() End Sub also check this link out: http://www.tutorialspoint.com/vb.net/vb.net_menustrip.htm | |
Re: Your login code doesn't make much sense If UsernameTextBox.Text = "" And PasswordTextBox.Text = "" Then MessageBox.Show("Enter your username & Password", "Login Error", should be : If UsernameTextBox.Text = "" Or PasswordTextBox.Text = "" Then MessageBox.Show("Enter your username & Password", "Login Error", | |
Re: You are not pointing to your tabase location, something like: AccessConnect = "Driver={Microsoft Access Driver (*.mdb)};" & _ "Dbq=nwind.mdb;" & _ "DefaultDir=C:\program files\devstudio\vb;" & _ "Uid=Admin;Pwd=;" | |
Re: Not sure what you want. You click a button and this moves the mouse to the coordiantes? In the form or in thr screen? Or you want to click one button and this triggers another button to get clicked? | |
Re: Can't see how you declared 'expirationdate'. It looks! like 'datepicker.value' is a date where as expirationdate is string? | |
Re: You are confusing me with headline of yourThread and what you wrote underneath. What is you question? | |
Re: just glancing over the code it might be better to use the string.equal method or string.compare? If _ strRow(0).ToLower.Contains(strSearch) Then |
The End.