Posts
 
Reputation
Joined
Last Seen
Ranked #350
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
86% Quality Score
Upvotes Received
43
Posts with Upvotes
42
Upvoting Members
33
Downvotes Received
8
Posts with Downvotes
8
Downvoting Members
4
16 Commented Posts
3 Endorsements
Ranked #486
Ranked #180
~231.70K People Reached
Favorite Tags

355 Posted Topics

Member Avatar for geetajlo

Hi, If your combobox is set with the "DropDownList", then use Combobox1.SelectedIndex = -1

Member Avatar for jeric_2
0
8K
Member Avatar for Rahul47

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 …

Member Avatar for Rythorian
0
896
Member Avatar for Luc001

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 …

Member Avatar for M.Lingo
0
357
Member Avatar for harsh01ajmera

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.

Member Avatar for Varun_9
0
3K
Member Avatar for Eschen515

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 …

Member Avatar for ChristaJocelyn
0
963
Member Avatar for Lee21

Hi, You can do it like this: [CODE]For Each frmApproval As Form In Me.MdiChildren frmApproval.Close() Next[/CODE]

Member Avatar for Mike_25
0
6K
Member Avatar for Mike Bishop

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]

Member Avatar for Deep Modi
0
259
Member Avatar for y2kshane

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 …

Member Avatar for Reverend Jim
0
9K
Member Avatar for BillyMagic

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, …

Member Avatar for arpin
-4
232
Member Avatar for ashwinshenoy

[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 …

Member Avatar for joshl_1995
0
2K
Member Avatar for selvaganapathy

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]

Member Avatar for Reverend Jim
-1
715
Member Avatar for twigan1015

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]

Member Avatar for tdeath
0
2K
Member Avatar for kipslem

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.

Member Avatar for mufu411
0
478
Member Avatar for pc20912

Hi, You can add a Column to your Datagridview and then select a DatagridviewImageColumn. In the properties go to Appearance and add an Image

Member Avatar for pc20912
0
1K
Member Avatar for Paul_15

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

Member Avatar for Paul_15
0
240
Member Avatar for shenn.to

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.

Member Avatar for shenn.to
0
245
Member Avatar for sushilsth

Hi, Remove this part: ' Fail validation (prevent them from leaving the cell) e.Cancel = True

Member Avatar for Begginnerdev
0
3K
Member Avatar for TechSupportGeek

Hi, Please create a new dicussion instead to have more luck, because this discussion is 3 years old and Solved. Thanks in advance!

Member Avatar for Luc001
0
2K
Member Avatar for yagelnnn1

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.

Member Avatar for yagelnnn1
0
192
Member Avatar for ShadyTrips

Hi, You can find some information, [Here, with example codes](http://www.tutorialspoint.com/vb.net/index.htm)

Member Avatar for ShadyTrips
0
142
Member Avatar for LobeRoni

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 …

Member Avatar for sunilkumarasem
-1
2K
Member Avatar for Eternal Newbie
Member Avatar for manoj_582033

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 …

Member Avatar for Eternal Newbie
0
230
Member Avatar for oldSoftDev

Hi, You can find an example about Removehandler, [Here](http://msdn.microsoft.com/en-us/library/6yyk8z93%28v=vs.90%29.aspx)

Member Avatar for Eternal Newbie
0
1K
Member Avatar for major_lost

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 …

Member Avatar for major_lost
0
307
Member Avatar for IsaacMessi10
Member Avatar for Luc001
0
156
Member Avatar for rdprecure

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

Member Avatar for tinstaafl
0
367
Member Avatar for Mr.M

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,

Member Avatar for Mr.M
0
714
Member Avatar for nel gomez

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.

Member Avatar for nel gomez
0
278
Member Avatar for IsaacMessi10

Hi, Perhaps you can find some information, [Here](http://xkom.blogspot.be/2011/07/custom-tab-control-with-cool-appearance.html)

Member Avatar for IsaacMessi10
0
475
Member Avatar for Learner010
Member Avatar for vbpro

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 ' …

Member Avatar for Luc001
0
32K
Member Avatar for weeraa

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

Member Avatar for Luc001
0
251
Member Avatar for nashy13

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 …

Member Avatar for nashy13
0
235
Member Avatar for Papa_Don
Member Avatar for nashy13
0
11K
Member Avatar for Ancient Dragon

Hi, There isn't a property for that, but you can use this in the Form load event: TabControl1.Dock = DockStyle.Fill

Member Avatar for Ancient Dragon
0
753
Member Avatar for yorro

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 …

Member Avatar for Luc001
0
2K
Member Avatar for Mike Bishop

Hi, You need to select in the properties of your mdiparentform: **IsMdiContainer=true**

Member Avatar for tinstaafl
0
325
Member Avatar for satti
Member Avatar for Luc001
0
215
Member Avatar for eos.paks

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...

Member Avatar for eos.paks
0
2K
Member Avatar for nashy13

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)

Member Avatar for Luc001
0
78
Member Avatar for Mononucleosis

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 …

Member Avatar for Begginnerdev
0
106
Member Avatar for sushants

Hi, You can find the whole explanation about Assemblies, [ Here](http://msdn.microsoft.com/en-us/library/ms973231.aspx#assenamesp_topic4) Grtz,

Member Avatar for Luc001
0
96
Member Avatar for LEAN.HEART.YOU

Hi, Like Calleman said you can use Inno Setup, but first I want to ask you wich version of VB.net your working with?

Member Avatar for deceptikon
0
109
Member Avatar for Jockster

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,

Member Avatar for Luc001
0
221
Member Avatar for thanzeem7

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")

Member Avatar for thanzeem7
0
613
Member Avatar for pearl.kumar1

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 …

Member Avatar for Luc001
0
342
Member Avatar for Kingcoder210

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]

Member Avatar for Luc001
0
949
Member Avatar for kimi1992
Member Avatar for Luc001
0
78
Member Avatar for robert.montgomery.75054

Hi, You can find some explanation about how to use a Do...Loop, [Here](http://www.homeandlearn.co.uk/net/nets3p3.html)

Member Avatar for tinstaafl
0
163

The End.