4,901 Posted Topics

Member Avatar for Reverend Jim

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.

Member Avatar for Dani
0
63
Member Avatar for gahhon

An excellent document on printing can be found [here](http://media.wiley.com/product_ancillary/74/04705328/DOWNLOAD/532874_both02_p2.pdf)

Member Avatar for gahhon
0
100
Member Avatar for asif49

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.

Member Avatar for Reverend Jim
0
148
Member Avatar for Reverend Jim

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

Member Avatar for Reverend Jim
0
2K
Member Avatar for Ancient Dragon

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.

Member Avatar for Reverend Jim
0
41
Member Avatar for happygeek

Not computer trivia but still interesting trivia - can anyone tell me why The Enterprise registration number is "1701"?

Member Avatar for happygeek
0
310
Member Avatar for skran

You can modify the individual cells in a datagridview via the Style property as follows: DataGridView1.Rows(1).Cells(1).Style.BackColor = Color.Aqua

Member Avatar for poojavb
0
1K
Member Avatar for aditd

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 …

Member Avatar for Reverend Jim
0
213
Member Avatar for Commando123

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 …

Member Avatar for TnTinMN
0
156
Member Avatar for Lardmeister

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

Member Avatar for Stuugie
1
178
Member Avatar for themaj

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

Member Avatar for Reverend Jim
0
2K
Member Avatar for Farhad.idrees

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

Member Avatar for gusano79
0
186
Member Avatar for HTMLperson5

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.

Member Avatar for HTMLperson5
0
1K
Member Avatar for prasenjit_das

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 …

Member Avatar for Reverend Jim
0
165
Member Avatar for shizzle08

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 …

Member Avatar for TnTinMN
0
142
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
214
Member Avatar for Mr.Sunny

Labels should be used for display only. If you want something clickable you should use a button.

Member Avatar for Reverend Jim
0
129
Member Avatar for Reverend Jim

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 …

Member Avatar for themaj
17
1K
Member Avatar for Dani
Member Avatar for Emad Saber

How are the points being input to the program? Are they coming in on a serial port, file, etc?

Member Avatar for Emad Saber
0
134
Member Avatar for Reverend Jim

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 …

Member Avatar for MosaicFuneral
0
355
Member Avatar for sneekula

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 …

Member Avatar for Sanchixx
0
482
Member Avatar for Mikey12345

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 …

Member Avatar for Reverend Jim
0
166
Member Avatar for Ella Jones
Member Avatar for m1234ike

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 …

Member Avatar for Reverend Jim
0
1K
Member Avatar for Kingcoder210

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 …

Member Avatar for Reverend Jim
0
514
Member Avatar for KyleSmith10

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

Member Avatar for Reverend Jim
0
80
Member Avatar for poojavb

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

Member Avatar for poojavb
0
7K
Member Avatar for Mikey12345

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 …

Member Avatar for Mikey12345
0
138
Member Avatar for M.Waqas Aslam

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.

Member Avatar for Reverend Jim
0
270
Member Avatar for rkelly70

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 …

Member Avatar for rkelly70
0
177
Member Avatar for DJWK

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 …

Member Avatar for MrUpsetter
0
258
Member Avatar for Leodumbi

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.

Member Avatar for Reverend Jim
0
80
Member Avatar for rkelly70

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.

Member Avatar for Reverend Jim
0
131
Member Avatar for M.Waqas Aslam

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?

Member Avatar for M.Waqas Aslam
0
192
Member Avatar for raaif

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 …

Member Avatar for poojavb
0
226
Member Avatar for lewashby

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"?

Member Avatar for caperjack
0
139
Member Avatar for HibaPro

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?

Member Avatar for HibaPro
0
177
Member Avatar for hafizurahman

Print the value of qr, then post the results here along with the "problem" you are having. I presume some sort of syntax error?

Member Avatar for Reverend Jim
0
828
Member Avatar for shaanmugavel

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.

Member Avatar for Reverend Jim
0
228
Member Avatar for priyadarshana

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 …

Member Avatar for CurtisUN
0
606
Member Avatar for Stuugie

Always great to see a new face. Especially one from the IT trenches. Welcome aboard.

Member Avatar for Stuugie
0
137
Member Avatar for Riteman

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 …

Member Avatar for Riteman
0
2K
Member Avatar for Aviplo

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

Member Avatar for Aviplo
0
1K
Member Avatar for ulasoc

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 …

Member Avatar for ulasoc
0
205
Member Avatar for MooGeek

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 …

Member Avatar for Stuugie
0
356
Member Avatar for Mikey12345

The short answer is yes. If you provide more information then perhaps a longer answer would be possible.

Member Avatar for poojavb
0
231
Member Avatar for Sevyt

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 & "."

Member Avatar for Sevyt
0
587
Member Avatar for Riteman

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.

Member Avatar for Riteman
0
309
Member Avatar for themaj

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 …

Member Avatar for themaj
0
10K

The End.