- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 43
- Posts with Upvotes
- 42
- Upvoting Members
- 33
- Downvotes Received
- 8
- Posts with Downvotes
- 8
- Downvoting Members
- 4
Re: Hi, If your combobox is set with the "DropDownList", then use Combobox1.SelectedIndex = -1 | |
| Re: Hi, You can try this; Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal … |
Like the title says, I'm trying to coloring an empty cell in bounded datagridview. I've got this code to coloring a cell with specitic value and is working well. This code is in the DatagridviewCellFormattingEventargs. If e.ColumnIndex = 5 AndAlso e.Value <= Date.Now.ToShortDateString Then e.CellStyle.ForeColor = Color.DarkGreen e.CellStyle.Font = New … | |
Re: Hi harsh01ajmera, Go to the menubar and select -> project -> Call function -> change Shutdown mode into: When last form closes. That means that you can close your login form without closing your application. | |
Re: Hi, You should do it like this: [CODE]Sub Main() Dim Bday As Date Console.WriteLine("What is your date of birth?") Bday = Console.ReadLine Dim d1 As Date Dim d2 As Date d1 = Now d2 = Bday Dim iage As Integer iage = DateDiff(DateInterval.Year, d2, d1) - 1 Console.WriteLine(iage) Console.ReadKey() End … | |
Re: Hi, You can do it like this: [CODE]For Each frmApproval As Form In Me.MdiChildren frmApproval.Close() Next[/CODE] | |
Re: Hi, You can try something like this: [CODE] If Me.txtLine2Rcon.Text = "" Then MsgBox("Please insert a running condition for Line 2 before you add it to the database", vbOKOnly) End Sub else Dim NewLongDesc As String Dim RConv As String Dim StkCodeV As String ' rest of your code[/CODE] | |
Re: Hi, You can try this: [CODE]'following code resizes picture to fit Dim bm As New Bitmap(PictureBox1.Image) Dim x As Int32 'variable for new width size Dim y As Int32 'variable for new height size Dim width As Integer = Val(x) 'image width. Dim height As Integer = Val(y) 'image height … | |
Re: Hi, Keyloggers are considered malicious , but it actually isn't quite clear whether you mean the same thing as we do with that term. If you are wondering how to store something, anything, then consider these points: 1) What type of data is it? Keys can actually be bytes, integers, … | |
Re: [QUOTE=ashwinshenoy;1550853]Hi John, Thank you for the reply.. I used the Publish method to create a setup file of my project. But I have another problem. When I try to install it in the other computer which does not have VB installed, it does not execute. It gives an error message … | |
Re: Hi, After looking up the error found that you've got a Virus on your computor that could be the WORM_KLEZ.E . You can try to do a Total scan with your Antivirus or do a Registry Clean. You can find some information about the virus and a solution, [URL="http://threatinfo.trendmicro.com/vinfo/virusencyclo/default5.asp?VName=WORM%5FKLEZ%2EE&VSect=P"]here.[/URL] | |
Re: Hi, Here's an example how to save the listboxitems to a textfile: [CODE]Private Shared Sub WriteToFile() Dim SW As StreamWriter SW = File.Create("c:\MyTextFile.txt") For Each item As ListItem In ListBox.items SW.WriteLine(item.text) Next SW.Close() End Sub[/CODE] | |
Re: Hi, To view your powerpoint presentations into your application, without to open Powerpoint Office. You need a Powerpoint Viewer ActiveX control for that. You can download one, [URL="http://www.freedownloadscenter.com/Programming/ActiveX/Free_PowerPoint_Viewer_ActiveX.html"]here.[/URL] I hope it helps for you. | |
Re: Hi, You can add a Column to your Datagridview and then select a DatagridviewImageColumn. In the properties go to Appearance and add an Image | |
Re: Hi, You can try something like this: Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged TextBox1.Text = ComboBox1.SelectedItem End Sub | |
Re: Hi, You need to declare your tabpage as the new one, give this page a name and add that new tabpage to the Tabpagecontrol. Add this code to the Listview selectedindexchange event. Try this and show us your codes. | |
Re: Hi, Remove this part: ' Fail validation (prevent them from leaving the cell) e.Cancel = True | |
Re: Hi, Please create a new dicussion instead to have more luck, because this discussion is 3 years old and Solved. Thanks in advance! | |
Re: Hi, You can find a tutorial, [Here](http://www.tutorialspoint.com/vb.net/vb.net_combobox.htm) Please try some coding and when you still have some trouble we'll glad to help. | |
Re: Hi, You can find some information, [Here, with example codes](http://www.tutorialspoint.com/vb.net/index.htm) | |
| Re: Hi, Here's an example how to create a Login form with a database: [code]Imports System.Data.OleDb Public Class LoginForm1 ' OK button Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim con As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=E:\VBproject\myDB.mdb") Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM Users WHERE … |
Re: Hi, Can you show us you're code? | |
Re: Hi, There are basically two ways to start application when Windows starts. First and maybe the easiest way is to copy a shortcut to your application in Startup folder. Second way is to start up VB.NET application from the Windows registry. Some installer applications can do this for you. But … | |
Re: Hi, You can find an example about Removehandler, [Here](http://msdn.microsoft.com/en-us/library/6yyk8z93%28v=vs.90%29.aspx) | |
Re: Hi, Try this: Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load ComboBox1.Items.Add("") ComboBox1.Items.Add("1") End Sub Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged If Not TextBox1.Text <> "" Then ComboBox1.Enabled = True Else ComboBox1.Enabled = False End If End Sub Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e … | |
| |
Re: Hi, I think you can try this: ' Display items in the ListView control For Each row As DataRow In dtable.Rows listView1.Items.Add(New ListViewItem(New String() {row("Firstname").ToString(), row("Lastname").ToString()})) Next | |
Re: Hi, After a little search via uncle Google found some information about Microsoft POS, [ Here](http://msdn.microsoft.com/en-us/library/ms828083%28v=winembedded.10%29.aspx) Hope it helps, | |
Re: Hi, I think that you need to add EZTwain to your project using Project - add item: Go to the EZTwain toolkit folder (usually \Program Files\EZTwain), go to the sub-folder for your language: VB.NET, add the declaration file you find there. | |
Re: Hi, Perhaps you can find some information, [Here](http://xkom.blogspot.be/2011/07/custom-tab-control-with-cool-appearance.html) |