- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
32 Posted Topics
Re: If you want the user to input the file, use the OpenFileDialog. [CODE=Visualbasic]OpenFileDialog1.filename[/CODE] will contain the selected file. | |
Re: [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 … | |
Re: [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? | |
Re: Please use code tags. Nobody wants to wade through this code without it being properly formatted. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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]. | |
Re: [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] | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: [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. | |
Re: [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. | |
Re: 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 = … | |
Re: Is [URL="http://www.developerfusion.co.uk/show/4677/"]this[/URL] what you are looking for? | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: [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. | |
Re: Blobs. [URL="http://www.vbdotnetheaven.com/UploadFile/mahesh/BLOBinAdoDotNet04232005065613AM/BLOBinAdoDotNet.aspx"]This link[/URL] should more than help. | |
Re: 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. | |
Re: [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] | |
Re: [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 … | |
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 … | |
Re: [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 … | |
Re: [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." | |
Re: 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 … |
The End.