4,901 Posted Topics
Every time I go to the vb.Net forum, two articles keep getting flagged as new even though I have viewed them and tried clicking "Mark Forum Read". The articles are [here](http://www.daniweb.com/software-development/vbnet/threads/427362/connection-vb-and-android) and [here](http://www.daniweb.com/software-development/vbnet/threads/425429/joystick-movement-display). They haven't been updated in two days but I was in both threads twice yesterday. | |
Re: An excellent document on printing can be found [here](http://media.wiley.com/product_ancillary/74/04705328/DOWNLOAD/532874_both02_p2.pdf) | |
Re: An optician is a specialized health care practitioner who designs, fits and dispenses lenses for the correction of a person's vision. I wouldn't call an optician an expert in eyes. I'd get a second opinion from an ophthalmologist. | |
I have a form that consists of only a TableLayoutPanel (which fills the entire form) containing a vertical stack of buttons. The resulting app is used in conjunction with another app. What I would like is to have the vb app do something when the mouse enters the form. Unfortunately, … | |
Re: The character of Matlock was partly based on James Stewart's character in Anatomy of a Murder. I grew up on the Andy Griffith Show. The last thing I recall seeing him in was a 2007 movie, The Waitress. | |
Re: Not computer trivia but still interesting trivia - can anyone tell me why The Enterprise registration number is "1701"? | |
Re: You can modify the individual cells in a datagridview via the Style property as follows: DataGridView1.Rows(1).Cells(1).Style.BackColor = Color.Aqua | |
Re: If you can't find what you are looking for you might try [VirtualDub](http://www.virtualdub.org/download.html). You might be able to cobble something together with that and [AutoIt](http://www.autoitscript.com/site/autoit/). AutoIt can be scripted using either its own scripting interface, or instantiated in vbScript/VB/etc. and controlled via AutoItX methods & properties. Caveat - if you … | |
Re: Keep in mind that in MSSQL, GETDATE() returns a datetime value so the comparison trans_date >= GETDATE() will fail if trans_date is not stored as a datetime field or trans_date is in the current day but earlier in the day. To do a proper comparison you would have to take … | |
Re: > Actually, I think it's more likely they will run on water. I have a boat that runs on water. Our electricity here in Manitoba is relatively cheap, mostly hydroelectric and produced by a well managed public utility (thanks again Bob) with excellent staff (right Stuugie?). Unfortunately, electric/hybrid cars are … | |
Re: Instead of using the FileOk event, get the file name, etc by using ShowDialog. This prevents further processing until the file dialog is closed. Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click If OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim dbfFileFolder As String = System.IO.Path.GetDirectoryName(OpenFileDialog1.FileName) Dim dbfFileName As String = … | |
Re: I'm not that familiar with C# but try replacing Source=C:\Users\dell\Desktop\Database\Student_Access.mdb with Source=C:\\Users\\dell\\Desktop\\Database\\Student_Access.mdb | |
![]() | Re: Why not use the built-in Windows search? Or you could download a version of grep for Windows. There are several available for both the command line and GUI. ![]() |
Re: It's not trivial. If you have no idea how to do it I suggest you use the existing tools. ISOWriter utility is designed as a command-line-based alternative to the GUI-based ISO Recorder. It has has been designed to allow for unattended operations from batch files. A non-zero exit code is … | |
Re: What database are you using? If you are using SQLEXPRESS you can download SQL Server Management Studio (free) from Microsoft. You can run the query directly against the database without going through VB, data adaptors, etc. See if you get the same results. If using Access, there is a SQL … | |
When I copy vb code from a post to try locally, pasting the code always results in the removal of blank lines. It doesn't matter if I paste into Visual Studio or TextPad. Blank lines are never maintained. If I paste into VB, indentation is recreated based on the code … | |
Re: Labels should be used for display only. If you want something clickable you should use a button. | |
Please read through the following suggestions before posting in this forum. Questions in this forum are answered by people who generously volunteer their time. Following these guidelines will increase the chances of getting a quick and accurate answer. 1. Use Search to see if your question has been asked and … | |
Re: How are the points being input to the program? Are they coming in on a serial port, file, etc? | |
While going through some old CDs I came across one containing all of the source code for our old ADG/SCADA system (retired 1998). I remembered one horrifyingly bad piece of code that I later rewrote and I thought it might be interesting to post it as an object lesson in … | |
Re: I started scripting around the year 2000. I had been a professional programmer for around 25 years. None of my code required a user interface and the ability to inspect/modify code at three in the morning was critical so vbScript filled the bill. It was free and required no special … | |
Re: I am trying to understand what you want to accomplish here but I think there is a real disconnect between your explanation and the code so let's just scrap the code for now. Forget TextBoxes, ListViews, etc. and just tell me in English what you are trying to do. Pretend … | |
Re: What error messages are you getting and on what lines? | |
Re: In pseudo-code a suggested process is get a list of all files with the given oldextension for each oldfilename in the list basename = oldfilename stripped of the extension compose the newfilename as basename & "." & newextension set index = 0 do while Exists(newfilename) increment index compose newfilename as … | |
Re: There are two ways to run a program created in vb.Net. One is to run it directly from the bin folder somewhere deep in the bowels of your project folder. This is the executable that runs when you run it from inside Visual Studio. The second way is to create … | |
Re: You can use an encrypted mysql connection. I've never used mysql, only MS SQL and never in an environment that required encryption so I can't walk you through it but if you google "encrypted mysql connection" you might find what you need. Try [here](http://www.connectionstrings.com/mysql) which states > Using encryption > … | |
Re: You could try setting the Opacity property of the main form to something like 0.5 just before you you display the modal form, then set it back to 1.0 on return. Me.Opacity = 0.5 form1.ShowDialog() Me.Opacity = 1.0 | |
Re: Can you please be clearer on the format of your listview? For example, you say you have three rows of date. Does that mean the rows after that will have different data? If all rows are the same format then please state the format of the various columns. A clearer … | |
Re: I suspect it is one of those applications that takes highly specialized knowledge. It would be like asking someone with highschool math to solve linear diophantine equations or calculate eigen values. | |
Re: The following will implement the formula, however, it won't give you the result you want unless you convert the angle from degrees to radians. The following code does that by multiplying the angle by PI/180. I'll assume the formula is correct (trig was never my strong suit). Imports System.Math Public … | |
Re: I've been watching The Firm and I had to laugh when the hacker was trying to decrypt the hard drive and he claimed that "parts of it were coming into focus". Also the comment that a particular hacking tool could get you 90% of the way to determining an encryption … | |
Re: Typically when you want to format an integer with leading zeroes the field width is known beforehand. In that case you can hardcode the width as mynum.ToString("00000") which will give you a five digit integer with leading zeroes. More generally you can code mynum.ToString(StrDup(width,"0")) where "width" can vary at runtime. | |
Re: It's always a good idea to state specifically what you are trying to do. What you have done is say that you are trying to do some math, then shown us uncommented code. Having said that, I would use double rather than decimal. | |
Re: How many items do you have in your datagrid and what do you define as "slow"? How long is it taking to complete the loop? Do you get consistent times on successive runs? Do you have anything else running that could be sucking back CPU cycles? | |
Re: The following code connects to the mydb database on my local copy of SQLEXPRESS. Dim conn As New SqlClient.SqlConnection 'conn.ConnectionString = "Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;" conn.ConnectionString = "Data Source=" & SERVER & " ;Initial Catalog=" & DATABASE & ";Integrated Security=SSPI;" conn.Open() MsgBox(conn.State) It uses integrated security (based on your windows … | |
Re: There is a checkbox on the Boot tab that says "Make all boot settings permanent". Have you tried selecting that? What settings are you trying to make permanent? What exactly do you mean by "all that crap"? | |
Re: Can you give us an example of what you are trying to do? Can you list a simple case with the contents of two comboboxes and what you want to see as a result? | |
Re: Print the value of qr, then post the results here along with the "problem" you are having. I presume some sort of syntax error? | |
Re: I don't know how to request a serial number while installing, but wouldn't it be sufficient to ask for the serial number when the application runs? If the serial number is incorrect or not entered you can always exit the application. | |
Re: What data are you trying to save and do you have a particular form you want to use (text file, per user settings etc). Are you trying to save the controls themselves for later use or just the data in those controls? If just the data, what do you want … ![]() | |
Re: Always great to see a new face. Especially one from the IT trenches. Welcome aboard. | |
Re: Can you clarify > However wrapping occurs (ie) when I finish the like till the end The code you show to create the RichTextBox is incomplete so it is hard to give an informed answer. There should be no way to access the created control(s) through the GUI because you … | |
Re: Hard to give a definite answer without a few specifics. I don't see how you are doinig the file copy. You declare a FileSystemObject but you don't use the CopyFile method of that object. I don't know the values of $URL or the destination path. As far as I know, … | |
Re: If you want to use the format you gave in the OP you just have to convert the embedded double quotes to double double quotes as follows code= " <meta http-equiv=""Content-Type"" content=""text/html; charset=windows-1254""> " I may be mistaken on this but you also may be able to replace the embedded … | |
Re: Atheist (kinda makes my name ironic). The trouble with "hiding" a message in the digits of PI is that because PI is non-repeating, eventually some random string of digits will appear to make sense. Sort of like the infinite monkeys proposition. Over the centuries science has repeatedly replaced mysticism and … | |
Re: The short answer is yes. If you provide more information then perhaps a longer answer would be possible. | |
Re: Assuming you have the card number stored in a variable named EIDCardNo, just replace your line file_name.LastIndexOf("\bin")) & "\test." with file_name.LastIndexOf("\bin")) & "\" & EIDCardNo & "." | |
Re: Rbut.Enabled = False Just make sure that Rbut has the proper scope (ie don't declare it in the sub that creates it) Public Class Form1 Public Rbut As Button Public Lbut As Button etc. | |
Re: I created a DataGridView and added four columns. I copied your sample input into d:\temp\testdata.txt and ran the following code: Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load For Each line As String In System.IO.File.ReadAllLines("d:\temp\testdata.txt") DataGridView1.Rows.Add(line.Split(",")) Next End Sub End Class If ColumnHeadersVisible is set … |
The End.