338 Posted Topics
Re: I don't know what it does but you need several librarys that I don't think you can use with vb. As far as I can tell it is just a bunch of definations. | |
Re: A double can be a 1 or a 1.2 or a .0034567. Just convert the entered number to a double. | |
| |
Re: Try something like this: [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ans As Integer = CInt(InputBox("How many textboxes do you want?")) Dim txtDist As Integer = 10 Dim txtLocation As New Point(10, 10) Dim txtSize As New Size(100, 25) For x As Integer … | |
Re: Your problem is your numbers are pixels and you need to set them to the right scale. If each pixel is one foot then you are starting at pixel 2 and 1759 and going to pixel 103 and 1768. Depending on the size of your canvas these could be off … | |
Re: Each tab page has a name. The default is TabPage1, TabPage2, ..., etc. use: TabControl1.SelectTab(TabPage2) | |
I am writing a slide show. The slide show itself is not bad. My problem: [INDENT]I can put the pictures in the resource area. This would require recompiling and sending the viewer each time I want to send pictures. I would like to send the pictures seperatlly and have the … | |
Re: You are probably closing the form which will set the textbox to empty. When you bring up your logon form copy the text you saved back to the logon form. [CODE]FrmLogIn.TxtUserName.Text = TextBox1.Text [/CODE] | |
Re: Well, heres one way. Your numbers must be in an array. Sort the array desending and pick the number above your chosen number, | |
Re: You have to redimension your lines array: [CODE] Dim sr As StreamReader = New StreamReader("csvSTOCKS.TXT") Dim lines() As String Dim index As Integer = 0 Do While (sr.Peek <> -1) ReDim Preserve lines(index) lines(index) = sr.ReadLine index += 1 Loop[/CODE] or use an array list: [CODE] Dim sr As StreamReader … | |
Re: I thought Photoshop could create a windows icon. However, save it as a bitmap, jpeg, etc. There are a lot of free programs to convert an image file to an icon file. OOPS a little bit late. Sorry | |
Re: Well if you want a wild guess. How about using process with RedirectStandardInput [url]http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardinput.aspx[/url] or maybe SendKeys. | |
Re: Use the vb net power packs at: [url]http://msdn.microsoft.com/en-us/vbasic/bb735936.aspx[/url] Then look at the video at: [url]http://msdn.microsoft.com/en-us/vbasic/bb643800.aspx[/url] | |
Re: This site has as good a solution as I have seen and is one that I use. [url]http://www.codeproject.com/vb/net/Control_Arrays.asp[/url] If you have any question I will try to help. | |
Re: Try this: [CODE] Panel1.Location = New Point((Me.ClientRectangle.Width - Panel1.Width) / 2, (Me.ClientRectangle.Height - Panel1.Height) / 2) [/CODE] | |
Re: If you want short and simple, try this: [CODE] Dim b As String() = Split(TextBox1.Text, vbNewLine) TextBox1.Text = String.Join(vbNewLine, b, 1, b.Length - 2) [/CODE] | |
Re: Go here and watch all the videos. Lots to learn. [url]http://msdn.microsoft.com/vstudio/express/vb/easytolearn/[/url] | |
Re: check this: [url]http://www.daniweb.com/techtalkforums/thread78270.html[/url] | |
Re: Go here: [url]http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx[/url] Go down to: Forms over Data Video Series Go down to #14 | |
Re: Did you install Chilkat and reference ChilkatDotNet.dll? | |
Re: What is happening is you don't have a delay in your loop. All the words are going there but is happening so fast you don't see it. After the "Label1.Text = splitout(i)" put in a Sleep(1000). | |
Re: tryusingspacesbetweenyourwordssoweknowwhatyouaretalkingabout.explainyourprobleminmoredetail. | |
Re: The first just declares a variable as the class. The second creates an instance of it. Without seeing your code I would say you need to put in "Exit Sub" after your If statement. If it is a subroutine: [CODE]IF name = "" then Console.writeline("name is empty") : Exit Sub … | |
Re: Set TopMost property of form. | |
Re: Rather than a picturebox try a panel. Create a class and call it Circ. [CODE]Imports System.Drawing.Drawing2D Public Class Circ Inherits UserControl Private mLineColor As Color Public Property LineColor() As Color Get Return mLineColor End Get Set(ByVal value As Color) mLineColor = value Invalidate() End Set End Property Protected Overrides Sub … | |
![]() | Re: In the Solution Explorer double click on the MyProject. Under the Application tab you will see "Startup Form:". Select your form here. ![]() |
Re: [url]http://www.codeproject.com/KB/vb/NotepadNET.aspx[/url] | |
Re: Try this: form1 [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If txtLat.Text <> String.Empty And txtLong.Text <> String.Empty Then Dim f As New map(txtLat.Text, txtLong.Text) f.Show() End If End Sub [/CODE] form2 [CODE] Public Sub New(ByVal lat As String, ByVal lon As String) InitializeComponent() … | |
Re: Mastering Visual Basic 2008 by Evangelos Petroutsos I have been using his books since vb6. They are very good. | |
Re: MessageBox.Show("Request registry is not allowed ", "Error", MessageBoxButtons.OK) | |
Re: open the recycle bin, find your program, select it and then restore it. | |
Re: I think you have to make this change in the internet options on the control panel. | |
Re: I don't know what you mean. All of these work fine and only one is a constant. Dim x As Integer = 12 Dim y As Integer = 10 Dim XY(x, y) As String Dim XY1(12, 10) As String Const g As Integer = 12 Dim myArray(g) Dim c As … | |
Re: I think it depends on the application. In most cases a messagebox would be fine. However, sometimes you are several layers deep and don't want to just stop the program. But want to pass the error back up the chain. Then an error handler is the key. | |
Re: As far as I know, you can't. Change the regional and language options in the control panel. You can use: [CODE]TextBox1.Text = Format(Me.MonthCalendar1.TodayDate, "dd/MM/yyyy")[/CODE] | |
Re: Save it in an array(9). 0 being higest, 9 being 10 best. Now when someone finishes a game compart their score to array(9). If it is lower then no point doing anything else it is not in the top 10. If it is greater then array(9) then check 8 if … | |
I am using VB Express in Vista. How do I get access to the cookies folder? It is marked as hidden and grayed out so I can't change it. I am trying to delete some cookies but it won't let me. My code for deleting is: [CODE] Dim s As … | |
Re: Try this: It is a listbox with a button. [CODE]Public Class Form1 Dim str As String = "abcdefghijklmnopqrstuvwxyz" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ListBox1.Items.Add(TrimToSize("abcdefghijklmnopqrstuvwxyz")) ListBox1.Items.Add(TrimToSize("This is a major line")) ListBox1.Items.Add(TrimToSize("Thomas, is that you?")) ListBox1.Items.Add(TrimToSize("It's alive!")) End Sub Private Function TrimToSize(ByVal Str As String) … | |
Re: I don't know what you are doing but it is the Enter and Leave properties. Private Sub CheckBox1_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.Enter End Sub | |
Re: Show us the code you are using to load the array. | |
Re: Try this: [CODE] If Me.Controls.Contains(UserControl1) Then Me.Controls.Remove(UserControl1) End If[/CODE] | |
Re: Post the section of code where you are having problems. | |
Re: Try this: [CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Me.BackColor = ColorDialog1.Color End Sub End Class[/CODE] | |
Re: Go to this site: [url]http://windowsclient.net/learn/videos.aspx[/url] go about 1/3 way down and click on the NotifyIcon video. It will show you how to do it. | |
Re: try: result &= C(I) & " = " & D(I) | |
Re: Here is one way. Three textboxes and button. [CODE]Public Class Form1 Dim KeyWord As String = "aid" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load TextBox1.Text = "Now is the time for all good men to come to the aid of their country the quick brown … | |
Re: [url]http://www.codeproject.com/KB/cpp/SmoothProgressBar.aspx[/url] [url]http://www.developerfusion.co.uk/show/177/[/url] |
The End.