Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #2K
~6K People Reached
Favorite Forums
Favorite Tags

32 Posted Topics

Member Avatar for hdreyer

If you want the user to input the file, use the OpenFileDialog. [CODE=Visualbasic]OpenFileDialog1.filename[/CODE] will contain the selected file.

Member Avatar for Herman_1
0
229
Member Avatar for mcgarry101

[QUOTE=mcgarry101;590654]In my form_load I have a test to see if anything is passed in - <code>strBalType = My.Application.CommandLineArgs(0) </code>. My other question is how is this app then called? For example from my command line can I just call c:\test.exe 10, and the string above will have a value of …

Member Avatar for Carlosky5
0
925
Member Avatar for andrewp3498

[QUOTE=andrewp3498;563391]...and then enter text into the textbox based on that date.[/QUOTE] I'm not clear what you mean by this, can you elaborate?

Member Avatar for keiztech
0
250
Member Avatar for kerek2

Please use code tags. Nobody wants to wade through this code without it being properly formatted.

Member Avatar for lucasmadero
0
284
Member Avatar for vibhashin

You are missinjg some data here: Is this the main form of a project? Are you counting times the program has run, or times the form is loaded during a single run? Are you connecting to a database where a value could be saved? Are you counting for one instance …

Member Avatar for ruudmu7
0
164
Member Avatar for prasadsatam

First of all you put your code into a code block so that we can read it easier, like so: [CODE=visual basic]Private Sub AutoNumberNo() try Dim strsql As String strsql = "SELECT MAX(Serial_No)+1 FROM Cutting" Dim com As New SqlCommand(strsql, objconnection) txtsrno.Text = com.ExecuteScalar() ' result will appear in textbox …

Member Avatar for bwkeller
0
73
Member Avatar for Mr.Wobbles

If the fields in the database table are static, you can assign a number to each and use a single config variable to hold a comma-delimited list of fields in the specified order. I've done that quite easily in the configuration section of programs. The same process could be used …

Member Avatar for Mr.Wobbles
0
109
Member Avatar for Oxiegen

Instead of: [CODE=Visual Basic]Dim bmData As BitmapData = glyph.LockBits(New Rectangle(0, 0, glyph.Width, glyph.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb) Dim scan0 As IntPtr = bmData.Scan0 Dim nOffset As Integer = bmData.Stride - glyph.Width * 3 Dim pDest As Byte* = CByte(CType(scan0, void*)) [/CODE]I create a function for setting up my bitmaps, which works in …

Member Avatar for Oxiegen
0
224
Member Avatar for Pgmer

Apparently you can do this in the .NET 3 framework as described [URL="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1139309&SiteID=1"]here[/URL].

Member Avatar for bwkeller
0
340
Member Avatar for swaters86

[CODE=visualbasic]Sum = Val(ExecTextBox.Text * 200) + Val(ManageTextBox.Text * 150) + Val(AssoTextbox.Text * 100) [/CODE]should be: [CODE=visualbasic]Sum = Val(ExecTextBox.Text) * 200 + Val(ManageTextBox.Text) * 150 + Val(AssoTextbox.Text) * 100[/CODE]

Member Avatar for bwkeller
0
177
Member Avatar for smiles

Do you want to read raw data or interface with a driver or api? Either way, this is not a simple task. To read raw data you would have to write your own driver to interface with USB devices. Look at [URL="http://www.osdev.org/wiki/USB"]http://www.osdev.org/wiki/USB[/URL] for assistance.

Member Avatar for bwkeller
0
83
Member Avatar for Jen24

I'm confused as to the need for another array. If you have an array of names that you used to populate the combobox, just tack on a field that has the name of the image you want displayed in the picturebox, then use a picturebox.Load to perform the function. Am …

Member Avatar for bwkeller
0
111
Member Avatar for Beginner2008

To do something like this I would require an Internet connection and keep track of number of runs in an Access or SQL database based on the machine name on which the application is running and the application version number (or on a key created in the installation program and …

Member Avatar for bwkeller
0
117
Member Avatar for carly

There is really not a safe way to save information "internally" in a program. Even the .NET My.Settings will be saved externally when changed. Virus protectors will not allow you to alter the data internal to an EXE, doing so will trigger an alert.

Member Avatar for bwkeller
0
122
Member Avatar for rhinocort23

[QUOTE=rhinocort23;574720]how can i make an over a network connection for like games or chat program?[/QUOTE] Take a look at [URL="http://msdn2.microsoft.com/en-us/magazine/cc163944.aspx"]this[/URL] by the great Carl Franklin.

Member Avatar for rhinocort23
0
102
Member Avatar for kimhanu

[QUOTE=kimhanu;574751]help me please[/QUOTE] The problem is you are not asking for help, you are asking for someone to do all the work for you while you put out no effort at all. I doubt if you will find the kind of "help" you are looking for here.

Member Avatar for bwkeller
0
78
Member Avatar for Moheet
Member Avatar for angelinajade

Set the [ICODE]DrawMode[/ICODE] of the listbox to [ICODE]OwnerDrawFixed[/ICODE] or [ICODE]OwnerDrawVariable[/ICODE], then add this code to the DrawItem event: [CODE=VisualBasic]Private Sub ListBox1_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox1.DrawItem e.DrawBackground() Dim textBrush As Brush = SystemBrushes.ControlText Dim drawFont As Font = e.Font If (ListBox1.Items.Item(e.Index) < 0) Then textBrush = …

Member Avatar for bwkeller
0
89
Member Avatar for Dell XPS

Is [URL="http://www.developerfusion.co.uk/show/4677/"]this[/URL] what you are looking for?

Member Avatar for bwkeller
0
258
Member Avatar for djinn1971

Narue has a great answer for this one in [URL="http://www.daniweb.com/forums/thread113416.html"]this[/URL] thread. Your main problem is you are not decrementing what you count, i.e., once you count dollars, you don't subtract them from the money you have left from which to make change.

Member Avatar for bwkeller
0
132
Member Avatar for Programmer666

If using SQL Server create an Image or nVarChar field in your database table to hold the data. The process is not that different from storing a picture so [URL="http://www.codeguru.com/vb/vb_internet/database/article.php/c7427/"]this code[/URL] should help a lot. You will basically choose a file, open it as a FileStream and read it into …

Member Avatar for bwkeller
0
206
Member Avatar for majestic0110

One way to learn VB.NET is to use a C#-to-VB.NET converter to look at the differences in code you already understand. I think [URL="http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx"]this[/URL] is the best one on the net.

Member Avatar for majestic0110
0
121
Member Avatar for ponedog99

I'm working on a graphics editor in VB 2005 as well, just for the heck of it and to see how far can I go and I haven't tackled the problem you are having yet, but I know it is coming. Two solutions come to mind. First, if you are …

Member Avatar for ponedog99
0
121
Member Avatar for zwench

[QUOTE=zwench;556406]I tried using that and it still says that the (txtInitialValue.Text),(txtSalvageValue.Text), (txtAssetLife.Text) are not declared.[/QUOTE] You have asked this same question repeatedly and been given help on it. Go back and re-read all of your threads here.

Member Avatar for bbqchickenrobot
0
112
Member Avatar for hemamohanraj

Blobs. [URL="http://www.vbdotnetheaven.com/UploadFile/mahesh/BLOBinAdoDotNet04232005065613AM/BLOBinAdoDotNet.aspx"]This link[/URL] should more than help.

Member Avatar for bwkeller
0
88
Member Avatar for leokuz

Change: [CODE=visualbasic]WebBrowser1.Url = New Uri(TextBox1.Text)[/CODE] to: [CODE=visualbasic]WebBrowser1.Url = New Uri("http://www.somesite.com/" & TextBox1.Text & "/profile/info.html")[/CODE] I ran this pointing to a real website and it worked just fine.

Member Avatar for leokuz
0
234
Member Avatar for shannonpaul

[QUOTE=shannonpaul;556549] [Code] [COLOR="Red"]If IsNumeric(Me.txtFirstName.Text Or Me.txtLastName.Text) Then ElseIf (strLastName Or strFirstName) = "" Then MessageBox.Show("Error")[/COLOR] [/Code][/QUOTE] should be: [CODE=VisualBasic] If IsNumeric(Me.txtFirstName.Text) Or IsNumeric(Me.txtLastName.Text) Or strLastName = "" Or strFirstName = "" Then MessageBox.Show("Error") End If[/CODE]

Member Avatar for bwkeller
0
155
Member Avatar for bornok15

[QUOTE=bornok15;553351]I'm kind lost there.. Can you teach me how? a little sample code will do, if you don't mind..[/QUOTE] Create a new dialog form and use it to manipulate configuration items. On form_load add the items from your program settings: [CODE] Private Sub frmConfig_Load(ByVal sender As Object, ByVal e As …

Member Avatar for Ramy Mahrous
0
214
Member Avatar for bwkeller

Just for the heck of it I'm building a graphic editor, mainly to see how far I can take it and how much I can learn as I go. I'm having a problem with Image.Save. First I have an MDI parent form from which graphic files can be opened. After …

Member Avatar for bwkeller
0
428
Member Avatar for shadowsong23

[QUOTE=shadowsong23;553270] If I use select case statement for my Zodiac sign, then how would I sort the months and dates since Zodiac signs overlap in months? (for example Cancer starts in mid-June and ends in mid-July, and Leo immediately follows after). How can I write it in such a way …

Member Avatar for bwkeller
0
121
Member Avatar for SolTec

[QUOTE=manal;553692]any way I think not allowing user from start to violate the rules as Jx_Man suggested is better[/QUOTE] As Alan Cooper said, and I paraphrase, "The best way to handle errors is to never let them be made."

Member Avatar for bwkeller
0
122
Member Avatar for zwench

You have some very basic problems here, some having to do with you not understanding defining an object and creating an instance of an object. You also have some serious logic issues. [code]Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ' ' Without the "New" below …

Member Avatar for zwench
0
275

The End.