338 Posted Topics

Member Avatar for Ixeman

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.

Member Avatar for ithelp
0
435
Member Avatar for 3Dees

A double can be a 1 or a 1.2 or a .0034567. Just convert the entered number to a double.

Member Avatar for waynespangler
0
115
Member Avatar for laghaterohan
Member Avatar for Duki

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 …

Member Avatar for selvaganapathy
0
119
Member Avatar for Duki

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 …

Member Avatar for Duki
0
294
Member Avatar for laghaterohan

Each tab page has a name. The default is TabPage1, TabPage2, ..., etc. use: TabControl1.SelectTab(TabPage2)

Member Avatar for laghaterohan
0
76
Member Avatar for waynespangler

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 …

Member Avatar for waynespangler
0
163
Member Avatar for George_E

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]

Member Avatar for franz081227
0
100
Member Avatar for nerden

Well, heres one way. Your numbers must be in an array. Sort the array desending and pick the number above your chosen number,

Member Avatar for waynespangler
0
115
Member Avatar for R3B3L

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 …

Member Avatar for waynespangler
0
1K
Member Avatar for vbcoder123456

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

Member Avatar for dickersonka
0
153
Member Avatar for Dell XPS

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.

Member Avatar for Dell XPS
0
122
Member Avatar for lakshmi@right

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]

Member Avatar for waynespangler
0
127
Member Avatar for Diode

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.

Member Avatar for james4560
0
214
Member Avatar for Mr Brownstone

Try this: [CODE] Panel1.Location = New Point((Me.ClientRectangle.Width - Panel1.Width) / 2, (Me.ClientRectangle.Height - Panel1.Height) / 2) [/CODE]

Member Avatar for Mr Brownstone
0
90
Member Avatar for satellites101

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]

Member Avatar for waynespangler
0
2K
Member Avatar for mMm.A

Go here and watch all the videos. Lots to learn. [url]http://msdn.microsoft.com/vstudio/express/vb/easytolearn/[/url]

Member Avatar for bruce2424
0
313
Member Avatar for kxh29
Member Avatar for bruce2424
0
144
Member Avatar for chicita

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

Member Avatar for waynespangler
0
44
Member Avatar for scrypt3r
Member Avatar for scrypt3r
0
202
Member Avatar for harry_b

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

Member Avatar for harry_b
0
194
Member Avatar for Water-Orb

tryusingspacesbetweenyourwordssoweknowwhatyouaretalkingabout.explainyourprobleminmoredetail.

Member Avatar for cellus205
0
104
Member Avatar for gouki2005

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 …

Member Avatar for manal
0
121
Member Avatar for Pgmer
Member Avatar for Fantaz82
Member Avatar for scrypt3r
Member Avatar for dinshu

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 …

Member Avatar for waynespangler
0
134
Member Avatar for breezyy

In the Solution Explorer double click on the MyProject. Under the Application tab you will see "Startup Form:". Select your form here.

Member Avatar for breezyy
0
59
Member Avatar for san_gwapo19
Member Avatar for san_gwapo19
0
103
Member Avatar for SSDD

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() …

Member Avatar for SSDD
0
99
Member Avatar for raul15791

Mastering Visual Basic 2008 by Evangelos Petroutsos I have been using his books since vb6. They are very good.

Member Avatar for raul15791
0
90
Member Avatar for mancode1007
Member Avatar for waynespangler
0
93
Member Avatar for your uptime
Member Avatar for waynespangler
0
68
Member Avatar for novadose

I think you have to make this change in the internet options on the control panel.

Member Avatar for waynespangler
0
56
Member Avatar for ShawnCplus

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 …

Member Avatar for leveena
1
139
Member Avatar for Bill Purkins

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.

Member Avatar for dmf1978
0
177
Member Avatar for ypdev

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]

Member Avatar for ypdev
0
94
Member Avatar for sddproject

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 …

Member Avatar for Bill Purkins
0
237
Member Avatar for waynespangler

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 …

0
66
Member Avatar for sniper1983

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

Member Avatar for sniper1983
0
95
Member Avatar for sniper1983

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

Member Avatar for selvaganapathy
0
286
Member Avatar for kdw3
Member Avatar for 010Nick

Try this: [CODE] If Me.Controls.Contains(UserControl1) Then Me.Controls.Remove(UserControl1) End If[/CODE]

Member Avatar for 010Nick
0
204
Member Avatar for novadose
Member Avatar for novadose
0
86
Member Avatar for dhanashreegd

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]

Member Avatar for waynespangler
0
49
Member Avatar for reniies

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.

Member Avatar for reniies
0
267
Member Avatar for palpha
Member Avatar for Pgmer

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 …

Member Avatar for Pgmer
0
200
Member Avatar for dhanashreegd
Member Avatar for karthik_cud

[url]http://www.codeproject.com/KB/cpp/SmoothProgressBar.aspx[/url] [url]http://www.developerfusion.co.uk/show/177/[/url]

Member Avatar for Jx_Man
0
85

The End.