4,911 Posted Topics

Member Avatar for cool_zephyr

Are the new files going into a specific folder? What types of files are being created? Are they being creted at a particular time of day? Are the new files associated with a particular program?

Member Avatar for BigPaw
0
901
Member Avatar for TestAccount1
Member Avatar for schroaus

If you mean like changing "My Label" to "xxxxxxxx" then you could try lblLabel.Text = Space(lblLabel.Text.Length).Replace(" ", "x") `Space(lblLabel.Text.Length)` generates a string of blanks the same length as the label text and `Replace(" ","x")` replaces all of the blanks with the desired character.

Member Avatar for schroaus
0
705
Member Avatar for Anine

You are trying to hijack a thread that has been dead for more than 8 years. Please start a new thread and provide more details.

Member Avatar for carlbutler7
0
2K
Member Avatar for amvx86

I believe you would require a custom control for that as the control would have to be aware of the syntax of whatever language you were populating it with. In your example, the control would have to know that a block may start with **Public Sub** and end with **End …

Member Avatar for amvx86
0
155
Member Avatar for ManthanB

Try executing this ALTER DATABASE MyDatabaseName SET READ_WRITE If that doesn't work then try ALTER DATABASE MyDatabaseName SET READ_WRITE WITH ROLLBACK IMMEDIATE

Member Avatar for Reverend Jim
0
159
Member Avatar for chichi005

If I provide some values of my own I get a query that looks like INSERT INTO CoupleTbl (acntId, kasal, spouseName) SELECT (acntId, Married , 'John') FROM AccountsTbl INNER JOIN CoupleTbl ON AccountsTbl.acntId = CoupleTbl.acntId); Note that there are no single quotes around **Married** so my suggestion is to revise …

Member Avatar for Reverend Jim
0
328
Member Avatar for Radio2006

What happens if you open your browser and type http://74.125.225.115/ into the address bar and press ENTER? It should bring up Google.

Member Avatar for JorgeM
0
265
Member Avatar for Papa_Don

I guess you didn't look here. I wrote the [ListView Column Sort Demo](http://www.daniweb.com/software-development/vbnet/code/430725/listview-column-sort-demo) code snippet just for that. You really should browse the Code Snippets.

Member Avatar for Jx_Man
0
8K
Member Avatar for matthewdiet

But you have to seed it first by calling Randomize(). To save you the headache later, the method MyRnd.Next(lowInt32, HighInt32) returns a random integer in the range (lowInt32, HighInt32-1) so the statement MyRnd.Next(1, 8) will give you a number from 1 to 7. I would love it if anyone could …

Member Avatar for Reverend Jim
0
215
Member Avatar for UKnod

In the absence of an ORDER BY clause, the query returns the results in the order in which they appear in the database. If you have a field defined as a primary key then that defines the physical order.

Member Avatar for pritaeas
0
130
Member Avatar for Xantipius

A "lush" is also an habitual drunkard. Lush Life is also a jazz number written by Billy Strayhorn in 1933 as well as a novel by Richard Price from 2008.

Member Avatar for Xantipius
0
207
Member Avatar for Aishu Karthik
Member Avatar for Reverend Jim
0
150
Member Avatar for asif49

Or you can just create a TrueCrypt folder and stick the media files in there. While it is true that most airport officials are too busy (and too untrained) to thoroughly search a laptop, if you get singled out for any reason (I was once for being in possession oa …

Member Avatar for jwenting
0
751
Member Avatar for shenn.to

[Step by step install](http://blogs.msdn.com/b/bethmassi/archive/2011/02/18/step-by-step-installing-sql-server-management-studio-2008-express-after-visual-studio-2010.aspx) including gotchas

Member Avatar for Ritesh_4
0
271
Member Avatar for rohit.dudhbhate

Your question seems to say you want to control Notepad from within VB but your code implies you only want to modify a text file. Which is it?

Member Avatar for Reverend Jim
0
181
Member Avatar for Ancient Dragon

Serves you right for being good enough to get all those endorsements ;-P

Member Avatar for Reverend Jim
1
83
Member Avatar for otengkwaku

Keep in mind that ndorsements are supposed to be a recognition of a member's expertise in a particular area. It is not supposed to be a "tit for tat" system where a member says "if you endorse me then I will endorse you". Make sure that when you endorse someone …

Member Avatar for Reverend Jim
0
213
Member Avatar for loso09

Here's another suggestion Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim inblock As Boolean = False For Each line As String In System.IO.File.ReadAllLines(filename) If inblock Then If line.Contains("~~") Then inblock = False Else ProcessLine(line) End If Else If line.Substring(7, 1) = "(" Then inblock = True ProcessLine(line) …

Member Avatar for Reverend Jim
0
2K
Member Avatar for PM312

Try this Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress Dim cbx As ComboBox = sender e.Handled = cbx.FindString(cbx.Text & e.KeyChar, 1) = -1 And Asc(e.KeyChar) <> 8 End Sub although there are still ways to screw it up. For example, if one of the acceptable …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Stuugie

Stuugie works at a place where IT is somewhat gung-ho about blocking sites that are of use to programmers. Not all sites; just some of the ones I used to frequent (I worked at the same place for 29 years).

Member Avatar for Reverend Jim
0
138
Member Avatar for SLMQC

There is a way to scan all textboxes as in For Each tbx As TextBox in Me.Controls.OfType(Of TextBox) . . . Next and you can put your validation code inside the loop. This will scan all textboxes directly coontained in the form. If the textboxes are within another container such …

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

The following gets a value from the registry. Normally it is set to 3. If you set it to 4 then USB access will be denied. However, setting the value requires admin access. My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR\","Start",0) To set a new value use My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR\","Start",4,Microsoft.Win32.RegistryValueKind.DWord)

Member Avatar for PriyaVijay
0
529
Member Avatar for Stuugie

If you are doing an UPDATE rather than an INSERT then you will be overwriting existing values so tagging the records with the date of the update won't help. How about the following structure Update_Date (PK) CB_ID int (PK) CB_Mnemonic_ID int (FK) CB_Value decimal (18,10) CB_Year int CB_Quarter int and …

Member Avatar for Reverend Jim
0
241
Member Avatar for Affable zaki

You can't convert a null string to a number. You'll have to decide how you want to treat non-numeric entries. What do you want to do if no value is entered? What about non-blank but non-numeric values such as "abc" or "1.2.3"? We can't make those decisions for you. By …

Member Avatar for Jx_Man
0
3K
Member Avatar for de Source

Try SELECT tbl_course.course_id, tbl_course.course_name FROM tbl_enrollment INNER JOIN tbl_course ON tbl_enrollment.course_id = tbl_course.course_id WHERE student_id = '" + lbl_StudentID.Text + "')" When you get the query working I suggest you change it to use parameters. Examples of how to do this with OleDB or SqlClient can be found [here](http://www.daniweb.com/software-development/vbnet/code/445801/avoiding-sql-injection-attacks). If …

Member Avatar for de Source
0
252
Member Avatar for happygeek
Re: Erk

>Head and neck tattoos don't sound fun though Ewwwwww. Glad you are feeling better. Gonna post pics of the new tats?

Member Avatar for happygeek
0
143
Member Avatar for habenero
Member Avatar for habenero
0
340
Member Avatar for schroaus

Try using the Random class as in Dim rand As New Random Randomize() Me.Text = rand.Next(1, 11) rand.Next(min,SortOfMax) returns a random number in the range **min** to **SortOfMax-1** so rand.Next(1,11) returns a random integer from 1 to 10. I use the name SortOfMax because the Microsoft documentation used to say …

Member Avatar for schroaus
0
222
Member Avatar for cproger
Member Avatar for GrimJack
0
234
Member Avatar for kindofsudden
Member Avatar for aVar++
Member Avatar for diafol
0
562
Member Avatar for spelzmane

Please check the dates on threads before posting. This thread is more than two years old. Resurrecting old threads may result in infractions.

Member Avatar for Rik_
0
1K
Member Avatar for Vusumuzi

Sometimes attachments just don't work. I use FireFox and I find that clearing the cache (CTRL-SHIFT-DELETE) can often fix the problem. There is also a one meg limit on attached files.

Member Avatar for chrispitt
0
145
Member Avatar for Violet_82

If you can't upload files of that type directly you can always try zipping them first.

Member Avatar for Violet_82
0
506
Member Avatar for Reverend Jim

I tried to upload a sample project in zip form at 10:00 CDT today (around 150K) and all I get is **The file could not be written to disk**.

Member Avatar for Reverend Jim
0
101
Member Avatar for PM312

You could put the following in the form load event For Each tbx As TextBox In Me.Controls.OfType(Of TextBox)() If tbx.ReadOnly Then tbx.BackColor = Color.White End If Next

Member Avatar for PM312
0
1K
Member Avatar for sonia sardana

Use For Each i In intVals No parentheses. And please do not post in threads that are inactive. This one has been dead for more than four years.

Member Avatar for Reverend Jim
0
2K
Member Avatar for Stefano Mtangoo

There are free keyfinder programs which will retrieve your key. Just google "windows keyfinder"

Member Avatar for BigPaw
0
196
Member Avatar for ndeniche

>Well, the idea is to encourage everyone to start tagging their posts. It's hard enough getting users to create a decent title let alone a coherent question. I can't see them going to the trouble of creating sensible tags.

Member Avatar for Reverend Jim
0
361
Member Avatar for zeena.zain.1
Member Avatar for ricky.subiantoputra
-2
168
Member Avatar for Aarowaim

To prevent multiple items from being selected you set ListBox1.SelectionMode = SelectionMode.One To allow multipl selections use ListBox1.SelectionMode = SelectionMode.MultiExtended To select via code you add items to the SelectedItems collection as in ListBox1.SelectedItems.Add(ListBox1.Items(i)) where i is the zero-relative index of the item you want to select. However, once you …

Member Avatar for Reverend Jim
0
711
Member Avatar for Neon Tetras

You might find information to help you [here](http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/6c258901-4cd9-4fec-bb57-09b4fbc52cec)

Member Avatar for Reverend Jim
0
230
Member Avatar for Xantipius

And, as you can imagine, the eunuchs must have been popular with the harem girls. There was absolutely no risk of pregnancy.

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

Interesting post. I recall an episode of M\*A\*S\*H many years ago where a soldier who was once a concert pianist suffered nerve damage to his right hand and became depressed at the loss. Major Winchester introduced him to the Ravel left-handed pieces giving the same explanation that you did.

Member Avatar for GrimJack
1
197
Member Avatar for mattster

I've never use a Mac so I can't speak to that. I've used both Linux (several flavours) and every version of Windows except Windows ME and Vista. My impression is that Windows is more appropriate for your average user and Linux is geared more toward the techie. Like Harley's and …

Member Avatar for Assembly Guy
0
857
Member Avatar for justjoy
Member Avatar for Papa_Don

You can do it in one statement by INSERT INTO ORDERNUMBERREC (OrderNo,UserId,CreateDate) SELECT MAX(OrderNo)+1,'system',GETDATE() FROM ORDERNUMBERREC WITH (TABLOCK)

Member Avatar for Papa_Don
0
1K
Member Avatar for Its.Obi

>Personally, I only run Windows in a Linux virtual machine. I create a snapshot of the Windows "disc", and when I get a virus, I just restore the snapshot. Virus - gone! Interesting but it hardly helps the OP. Have you tried downloading and running [Trend Micro Housecall](http://housecall.trendmicro.com/)?

Member Avatar for RoyinForest
0
349
Member Avatar for cyril71

Can you post a picture of the disk management console? You can run it from diskmgmt.msc

Member Avatar for Reverend Jim
0
214

The End.