- Strength to Increase Rep
- +14
- Strength to Decrease Rep
- -3
- Upvotes Received
- 274
- Posts with Upvotes
- 245
- Upvoting Members
- 128
- Downvotes Received
- 167
- Posts with Downvotes
- 120
- Downvoting Members
- 21
The least you can do for someone that has provided a solution to your Thread is to mark the thread "Solved" and/or mark the post helpful or not. Reputation comments are always a plus."Me in a Nutshell"?; did Not like…
- PC Specs
- Processor: Intel i3 @ 3.20 GHzPhysical Memory: 8.00 GB DDR3System type: 64-bitWindows edition: Windows…
Re: [B]thecoder2012[/B], I somewhat understand what you are asking, do correct .Me If I am wrong.:) You have items in the AutoComplete as "12,13,14,21,23,24". You start typing "1", of course, AutoComplete starts. You press the Keys.Enter, and you would like to continue typing in TextBox, though have the AutoComplete."RELOAD" again and … | |
Re: See if this helps. [CODE] Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Try '// check if Array PictureBox IsNot Nothing, THEN add image from it to your PictureBox1. If pcarray(c) IsNot Nothing Then PictureBox1.Image = pcarray(c).Image If Not c = pcarray.Length - 1 Then '// … | |
Re: See if this helps. [CODE] With DataGridView1 Static iTopRow As Integer iTopRow = .FirstDisplayedScrollingRowIndex '// get Top row. Form2.ShowDialog()'// Form that edits record. .FirstDisplayedScrollingRowIndex = iTopRow '// set Top row. End With[/CODE] | |
Re: See if this helps. [CODE] 'Dim OpenAnswerFile As New OpenFileDialog Dim strFileName() As String '// String Array. Dim tempStr As String = "" '// temp String for result. If OpenAnswerFile.ShowDialog = DialogResult.OK Then '// check if OK was pressed. strFileName = IO.File.ReadAllLines(OpenAnswerFile.FileName) '// add each line as String Array. For … | |
Re: See if this helps. [CODE]Public Class Form1 Private WithEvents tmr As New Timer With {.Enabled = True} '// dynamic.Timer. Private Sub tmr_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmr.Tick Me.Text = ListBox1.TopIndex '// display the top visible item's Index. End Sub End Class[/CODE] | |
Re: [QUOTE=SaaDwTk;1387961]...Why the "The login is wrong!" is appearing?...[/QUOTE] The reason is because you [B]are not[/B] logged in when you first load that web-page. See if this helps about checking if you have already attempted to Log In. [CODE] Private websiteAlreadyAccessed As Boolean = False '// determine if webpage has been … | |
Re: Granted. You get one without a screen, battery, and charger. Also, it's invisible. I wish for world peace.:D | |
Re: To create a history in a ComboBox, when navigating to a web site, add the url address to the ComboBox. To save and load those items, check out this thread and replace the ListBox1 with your ComboBox. [URL="http://www.daniweb.com/software-development/vbnet/threads/359030/1531427#post1531427"]http://www.daniweb.com/software-development/vbnet/threads/359030/1531427#post1531427[/URL] For the HomePage, I would use a TextBox with a CheckBox. If … | |
Re: Are you asking to Re-size the Image it's self OR change the SizeMode/BackgroundImageLayout of the PictureBox, depending if the image is larger than the PictureBox.Size? | |
Re: [CODE] MsgBox(Format((My.Computer.Info.TotalPhysicalMemory / 1024) / 1024, "###,###,##0.00 MB")) MsgBox(Format((My.Computer.Info.TotalPhysicalMemory / 1024) / 1024 / 1024, "###,###,##0 GB"))[/CODE] | |
Re: You can kill the Process as soon as it starts. [B]1 Timer[/B] [CODE]Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Start() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick For Each selProcess As Process In Process.GetProcesses If … | |
Re: >>Check to see if the following disk file exists within the BIN\Debug folder — ReservedSeats.dat Hope this helps to get you started. :) [CODE]Imports System.IO Public Class Form1 Private myCoolDATfile As String = Application.StartupPath & "\ReservedSeats.dat" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If File.Exists(myCoolDATfile) … | |
Re: Also, check out [URL="http://www.daniweb.com/software-development/vbnet/threads/359030/1531427#post1531427"]this post[/URL]. | |
Re: [QUOTE=lolafuertes;1700532]Just guessing [COLOR="Red"]if the richtextbox is empty the very first time[/COLOR] [COLOR="Green"]you load your .app.[/COLOR] [COLOR="Red"]If is empty[/COLOR], just [COLOR="Red"]add an space[/COLOR] [COLOR="Green"]to the rtb(RichTextBox)[/COLOR] [COLOR="Red"]and select it before enabling the equation editor.[/COLOR] Hope this helps[/QUOTE] [COLOR="Red"]Hope this helps[/COLOR][COLOR="Green"] as well.[/COLOR]:) | |
Re: See if this helps. [CODE]Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick 'Static count As Integer = 1 If PictureBox1.Location.X < 20 AndAlso PictureBox2.Location.X < 20 Then 'if we haven't reached the stopping point PictureBox1.Left += 5 ' Move the Picturebox 100 units to the right. … | |
Re: See if this helps. [CODE]Public Class Form1 Private allowCoolMove As Boolean = False Private myCoolPoint As New Point Private Sub Panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown allowCoolMove = True myCoolPoint = New Point(e.X, e.Y) Me.Cursor = Cursors.SizeAll End Sub Private Sub Panel1_MouseMove(ByVal sender As Object, ByVal … | |
Re: >But would other programs with this code be able to decode the data? I'm not quite certain since cryptography is a new field for me, though I do believe that this: `Dim saltValue As String = "mySaltValue"` is what makes your .app unique. Changing the value to anything, should only … | |
Re: Just to create or overwrite a .txt file, try the following code. [CODE] Button1.Visible = False Button2.Visible = False Label5.Visible = False '///////////////////////////// Dim myCoolFile As String = "C:\myCoolTestFile.txt" '// your file location. IO.File.WriteAllText(myCoolFile, TextBox1.Text & " / " & MaskedTextBox1.Text) '// save to file. '///////////////////////////// '// display confirmation AFTER … | |
Re: Could be that the CheckBox.Tag is empty. [CODE]If Not Chk.Tag Is Nothing Then txtTest.Text = CType(pnlChk.Controls(Chk.Tag.ToString), TextBox).Text[/CODE] Or you could use this and skip using the .Tag of a CheckBox entirely. [CODE] '// use "txt" and the # at the end of each CheckBox's Name to locate control. txtTest.Text = … | |
Re: A [B]future [/B]without knowledge, is a future not looking forward to. [B]Guarded[/B] | |
Re: .see If this helps. [CODE]Public Class Form1 Private Sub ListView1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ListView1.SelectedIndexChanged With ListView1 If Not .SelectedItems.Count = 0 Then With .SelectedItems(0) '// first selected.item. Form2.TextBox1.Text = .Text Form2.TextBox2.Text = .SubItems(1).Text Form2.ShowDialog() End With End If End With End Sub End Class[/CODE] [CODE]Public Class Form2 … | |
Re: [QUOTE=robman;1296299]iam requesting a code for linking many forms[/QUOTE] [CODE] Form2.Show() Form3.Show() Form4.Show() Form5.Show()[/CODE] If you have more Forms than the above code, just add them to the list. | |
Re: Have you tried ".SubItems.Item(2).Text"? [CODE] If Double.TryParse(TempNode.SubItems.Item(2).Text, TempDbl) Then[/CODE] ..Or maybe ".SubItems.Item(1).Text" to get the Unit Price Total of the "second" Column? | |
Re: See if this helps. [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click With TextBox1 If Not .Text = "" Then '// check if not empty. Dim myCoolIDletters As String = "" '// new String to get all letters at beginning of ID. For i As … | |
Re: See if this helps. [CODE]Public Class Form1 Private myFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\" '// folder for file. Private myFile As String = myFolder & "contact4.txt" '// file to check if .Exists. Private WithEvents tmrFileExists As New Timer With {.Interval = 1000, .Enabled = True} '// dynamic Timer. Private … | |
Re: See if this is "simple" enough. [CODE] Dim dateBookIssued As Date = "5/24/2005" '// Month, Day, Year. Dim dateBookReturned As Date = "10/20/2010" '// Month, Day, Year. '// Subtract the Date book was Issued from Date book was Returned. Dim overdueTime As TimeSpan = dateBookReturned.Subtract(dateBookIssued) '// convert Total Days String … | |
Re: Line 23, change [iCODE]For i = 0 To ListView2.Items.Count.ToString - 1[/iCODE] to [iCODE]For i = 0 To ListView2.Items.Count.ToString [COLOR="Red"][B]- 2[/B][/COLOR][/iCODE] | |
Re: [CODE]Public Class Form1 Private myFile() As String = IO.File.ReadAllLines("C:\!vb.net\temp.txt") '// load file. Private lineNumber As Integer = 0 '// keep track of which line to display. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Interval = 2000 '// 2 second delay. Timer1.Start() End Sub Private Sub … |