- Strength to Increase Rep
- +9
- 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
355 Posted Topics
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) | |
Re: Hi, This thread is already several years old and you should have started a new one. However, add a label, Timer and some other controls and it shoud work: Public Class Form1 Public Declare Auto Function GetCursorPos Lib "User32.dll" (ByRef lpPoint As Point) As Integer Dim mousepos As Point ' … | |
Re: Hi, You can find a Step by Step creating a Setup and Deployment, [Here](http://aspalliance.com/622) On page2 you can find a way how to add folders, files you wish to instal on the users PC. Kind regards, Luc | |
Re: Hi, Here are other ways of doing it with Keychar or CharacterCasing: Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load TextBox2.CharacterCasing = CharacterCasing.Upper 'already by formload can you set te Char in a Textbox toUpper End Sub Private Sub TextBox1_KeyPress(sender As Object, e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If … | |
Re: Hi, Try this: txbStateTaxPcnt.Text = stateSlsTax.ToString("#,0.00") | |
Re: Hi, There isn't a property for that, but you can use this in the Form load event: TabControl1.Dock = DockStyle.Fill | |
Re: Hi, You can try this: Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load DateTimePicker1.Format = DateTimePickerFormat.Time End Sub Private Sub DateTimePicker1_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles DateTimePicker1.KeyDown If e.KeyValue = 38 Then ' Arrowkey Up ' up DateTimePicker1.Value = DateTimePicker1.Value.AddMinutes(30) e.SuppressKeyPress = True ElseIf e.KeyValue = 40 … | |
Re: Hi, You need to select in the properties of your mdiparentform: **IsMdiContainer=true** | |
Re: Hi, You can find an example, [Here](http://support.microsoft.com/kb/182070) | |
Re: Hi, You can add as many Events as you want on the End. As long as the Subroutine can Handle them, the Event will happen. Private Sub TextBox1_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs)Handles TextBox1.Keydown,TextBox2.Keydown,TextBox3.Keydown,TextBox4.Keydown ' as many as you have... | |
Re: Hi, You can find some information about how to do it: [Click Here](http://www.codeproject.com/Questions/159478/how-to-display-image-in-datagridview) | |
Re: Hi, After checking your code I found a fault that could causes the Crash. "cColor" isn't declared in this part of your code! Is it declared elsewhere? Why you need this part of code: blnColorClicked = True Change this part: If (CColorD.ShowDialog() = System.Windows.Forms.DialogResult.OK) Then cColor = CColorD.Color ' change … | |
Re: Hi, You can find the whole explanation about Assemblies, [ Here](http://msdn.microsoft.com/en-us/library/ms973231.aspx#assenamesp_topic4) Grtz, | |
Re: Hi, Like Calleman said you can use Inno Setup, but first I want to ask you wich version of VB.net your working with? | |
Re: Hi, You can find an example about Catch Exception, [Click Here](http://msdn.microsoft.com/nl-be/library/fk6t46tz(v=vs.80).aspx) Hope it helps. Grtz, | |
Re: Hi, You can add your report files in your application folder and use relative paths (Application startup path or Executable Path) instead of hard-coded paths. For example: Report.load(Application.StartupPath + "\CrystalReport.rpt") | |
Re: Hi, What you can try is create a new form: 1 - Add a new form to your project "NewForm" 2 - copy your code from the Form6.vb to the NewForm.vb 3 - copy your code from MyForm.Designer.vb to NewForm.Designer.vb 4 - remove Myform 5 - rename NewForm, give it … | |
Re: Hi, Add a Form1 and set this formproperty: IsMdiContainer property to True. Add a Form2 and and use this code: [CODE]Dim frm2 As New Form2 frm2.MdiParent = Me frm2.Show() [/CODE] | |
Re: Hi, You can create a Crystal report with the data of your datgridview. | |
![]() | Re: Hi, You can find some explanation about how to use a Do...Loop, [Here](http://www.homeandlearn.co.uk/net/nets3p3.html) |
The End.