4,901 Posted Topics
Re: >I want to learn something new in these vacations. Learn to relax. It seems to be a lost art. | |
Re: >NET USE Z: \Servername\sharename /USER:username The correct syntax is with **two** leading back slashes as in NET USE Z: \\Servername\sharename /USER:username | |
Re: At line 80 add the following Debug.WriteLine(cmdUpdate.CommandText) and post the output here. One further comment, a GOTO is a rarely used feature. There are only a small number of cases where a GOTO is warranted. This isn't one of them. Replace If conn.State = ConnectionState.Open Then GoTo cont Else If … | |
Re: I don't believe this belongs in the vb.NET forum. Perhaps java or web development? I can move it if you have a preference. | |
Re: It helps if you post the error message, but to add items to a combobox the syntax is ComboBox1.Items.Add(string value) in your case ComboBox1.Items.Add(myReader("Uname")) | |
Re: When I used to write apps for a living, the problem was keeping the users current. I couldn't push out the updates because a lot of the users had laptops and I could never predict when they'd be on the network. My solution was to put a script under the … | |
Re: First of all you have to have some way of relating table1 to table2. You have given no name to the column in table1 (I assume from context that it represents a quantity). You'd have to include an ID column to associate the quantity to an ID. Also, you should … | |
Re: Try running msconfig and select "Safe Boot" and "Minimal" on the Boot tab. Then reboot. If that doesn't work then try selecting "Diagnostic startup" on the General tab. | |
Re: >I feel like my design is actually good in fact one of the best I've written I refer you to [not invented here](http://notinventedhe.re/on/2010-4-20). I suffer from this particular malady. | |
Re: RE: SuperAntiSpyware, I recommend against installing anything new at this point. There are other options such as [Trend Micro Housecall](http://housecall.trendmicro.com/) which can be downloaded free. Burn it to a CD and boot off it to scan your computer. Check this forum for other burn-and-boot software and be skeptical of any … | |
Re: As soon as you click the button whatever control had focus loses it. What you can do is define a class level variable Private LastTextFocused As TextBox Then in the Enter event for each TextBox you can add the line LastTextFocused = sender Then in the button click you can … | |
Re: I explain the use of delegates and cross-thread access of controls [here](http://www.daniweb.com/software-development/vbnet/code/440614/backgroundworker-ip-monitor) | |
Re: >and maskedtextbox is empty with length "5" If the maskedtextbox is empty then the length is 0, not 5. | |
Re: >pls help me out by giving me a list of the key xteristics of windows os. Basically, you are saying "please do my homework for me". We don't do that. | |
Re: Since you already created the MySqlCommand object at line 2 you don't have to create it again. You can just replace line 18 with myCommand.CommandText = comm You made the same mistake with conn. You created a new instance when you declared it and again when you initialized it. You … | |
Re: The connection string will have parameters like dbq (the file name) uid (user ID) pwd (password) You can prompt the user for them the first time then save the resulting connection string (or the individual parameters) in Settings variables to preseve them between sessions. The actual connections string will also … | |
Re: >This is not complicated at all Especially if you can get someone else to do your homework for you. | |
Re: You can use SelectedIndexChanged | |
Re: .NET then you are running Windows. Windows comes with an FTP service which you can enable through the control panel. <disclaimer>I don't know if this comes with all versions of Windows</disclaimer> | |
Re: You may also run into problems with the field **password**. In some SQL implementations, **password** is a reserved word. If you must use this field name, you can use it in queries as **[password]**. | |
Re: If you have been threatened or abused then please post links to the threatening/abusive posts or use the "Flag Bad Post" tool to initiate a follow-up. | |
Re: It's certainly possible. How you do it depends on a few things. For example 1. Is each plant description in a separate file? 1. How are the fields identified My preference is to read files all at once. This avoids the cumbersome process of setting up stream readers, opening, closing, … | |
Re: The easiest way to associate the file with your application is to right click the file and select "Open with" and "Choose default program". Then browse to your exe file and check "always use the selected program...". | |
As if you didn't have enough to do... There are certain articles that I would like to bookmark because I either want to return to them at a later date for a more detailed look, or that I would like to cite in response to a new question (usually one … | |
Re: Because you are a new user I strongly suggest you read the [member rules](http://www.daniweb.com/community/rules). There are two problems with your post. 1. You state incorrectly that **Visual Studio can not create an .EXE**. Not only can it, but you also contradict yourself in the next statement. 1. You revived a … | |
Alas, my current laptop must go in to the shop for some overdue repairs. My power supply and/or connector are failing, my keyboard is chattering and three of my USB ports are intermittent. Also, my feet have fallen off (the little rubber ones) and my display is dimming. I put … | |
Re: Please do not hijack threads, especially old ones. Start a new thread. | |
Re: Fortunately I love music. I had to wear headphones at work to deter my coworker from interrupting me every five minutes to "chat". Sometimes I'd wear them with no music on and just ignore him. | |
Re: You could try setting the forms KeyPreview property to True. You'll have to do some pre-processing in one of the form's Key events (KeyDown, KeyPress, KeyUp) to ensure the characters are handled properly. | |
Re: My regular computer is in the shop and I don't have VB on my replacement but I think the RichTextBox control has a built in method for reading and writing files. I think they are called LoadFile and SaveFile. | |
Re: False assumption. You all assume the candles burn at an even rate. They would not if they were tapered candles. Also, a candle will burn faster when turned horizontally as the wax will melt and drip off rather than burn. | |
Re: Try adding "HDR=No" to the extended properties. | |
Re: What happens when you run the following code Dim con As New OleDb.OleDbConnection con.ConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Persist Security Info = False; Data Source = | DataDirectory | \ db.mdb" For Each item In ListBox1.Items dim cmd_sel OleDb.OleDbCommand con.CreateCommand = () cmd_sel.CommandText = "SELECT Field1, Field2 FROM WHERE Tabla … | |
Re: First of all, you have hijacked someone else's thread (and an old one at that). That is frowned upon here. For new questions please start new threads. The query to update the quantity field in Shop would be UPDATE Shop SET Quantity = Quantity - 1 WHERE ItemCode = 'some … | |
Re: For future reference, it is not necessary to post files on RapidShare or any other external website. Files can be attached directly to posts here. | |
Re: The Windows Imaging Automation component might do it for you. [url]http://www.microsoft.com/download/en/details.aspx?id=18287[/url] [quote] The Windows Image Acquisition Automation Library v2.0 provides basic image acquisition and manipulation functionality to Visual Basic and Scripting applications. [/quote] | |
Re: You can use the TextChanged event handler of TextBox2. In the body, just add code to copy the new value to TextBox1 as in Dim txt As TextBox = sender Form1.TextBox1.Text = txt.text | |
Re: What is your level of expertise? Do you know anything about programming? Have you taken any training? What have you done so far? Is the Excel file in a format that supports ADO or some other level of abstraction? What kind of database? If you want answers you have to … | |
Re: You can put the common code in a module then just make a call to that code in the form closing handler for each form. | |
Re: Based on the overwhelming amount of information you have provided it would be difficult to narrow down the suggestions to a manageable list. [edit]Yes, I'm in one of those moods today[/edit] | |
Re: I don't have access to a system to verify this but two options come to mind. 1. get a list of all PIDs of processes named java.exe just prior to launching the new instance then use that list to determine the PID of the new process, then use that PID … | |
Re: You can't have two PCs on the same LAN with the same IP address. What kind of connection are you trying to make? | |
Re: I don't have access to my dev environment for the next few days so I'll try from memory. You can read all lines of the file into an array as follows Dim questions() As String = System.IO.File.ReadAllLines(filename) Then you can step through each question as For Each line As String … | |
Re: Is the database on the same machine as the application? Is the dababase server on his machine named the same as on the machine used to develop the application? Does the connection string contain the correct information to connect to the database? Does the user have sufficient access rights to … | |
Re: If I understand, you want the size of the scroll bar to be proportional to the font size of the selected text. In a RichText control, the scroll bar (vertical) represents two things 1. the position of the visible text in the entire RichTextBox text 1. the "size" of the … | |
Re: I don't have access to VB while my computer is in the shop but let me make a suggestion (you'll have to verify the syntax). You can check all of the textboxes on the form by For Each tbx As TextBox In Me.Controls.OfType(Of TextBox)() If tbx.Text <> "" Then 'process … | |
Re: >Are you trying to get answers to your own questions? At first I was here to get answers to questions. As I got more comfortable with DaniWeb I started "putting back in" by answering questions. Now I'd guess I run about 99% answering and 1% asking. I'm not saying that … | |
Re: I wrote a sample code snippet that demonstrates how to use a [BackGroundWorker control](http://www.daniweb.com/software-development/vbnet/code/440614/backgroundworker-ip-monitor). Perhaps that can give you a start. My regular machine (with all the dev tools) is in the shop so that's the best I can do at the moment. | |
Re: I don't have my regular computer with VB at the moment to check this, but to move a picturebox (or any control) you modify the Location property by PictureBox1.Location = New Point(xvalue,yvalue) And you can check for collision by comparing the edge x value (left or right as appropriate) of … | |
Re: The confusion might be because of a misinterpretation. You use single quotes around a field value when the database field is of type String, not when the VB variable is of type String. For example, if the CompanyID field in the database is an int then two similar (but using … |
The End.