4,911 Posted Topics
Re: 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? | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: That is not vb code, but you posted this in the vb.net forum. I'm moving it. | |
Re: 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 … | |
Re: [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 | |
Re: 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? | |
Re: Serves you right for being good enough to get all those endorsements ;-P | |
Re: 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 … | |
Re: 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) … | |
Re: 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 … | |
Re: 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). | |
Re: 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 … | |
Re: 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) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: >Head and neck tattoos don't sound fun though Ewwwwww. Glad you are feeling better. Gonna post pics of the new tats? | |
Re: You are assuming that the filename contains only one ".". That is often not the case. | |
Re: 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 … | |
Re: @kindofsudden - any relation to oliversudden? | |
Re: I could always downvote a few of your old posts if you feel like you need a few yuks ;-P ![]() | |
Re: Please check the dates on threads before posting. This thread is more than two years old. Resurrecting old threads may result in infractions. | |
Re: 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. | |
Re: If you can't upload files of that type directly you can always try zipping them first. | |
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**. | |
Re: 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 | |
Re: 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. | |
Re: There are free keyfinder programs which will retrieve your key. Just google "windows keyfinder" | |
Re: >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. | |
Re: Not gonna happen. However, if you show some effort and need help with something... | |
Re: 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 … | |
Re: You might find information to help you [here](http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/6c258901-4cd9-4fec-bb57-09b4fbc52cec) | |
Re: And, as you can imagine, the eunuchs must have been popular with the harem girls. There was absolutely no risk of pregnancy. | |
Re: 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. | |
Re: 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 … | |
Re: This thread is six years old. Please start a new thread with your question. | |
Re: You can do it in one statement by INSERT INTO ORDERNUMBERREC (OrderNo,UserId,CreateDate) SELECT MAX(OrderNo)+1,'system',GETDATE() FROM ORDERNUMBERREC WITH (TABLOCK) | |
Re: >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/)? | |
Re: Can you post a picture of the disk management console? You can run it from diskmgmt.msc |
The End.