4,901 Posted Topics

Member Avatar for pennywise134

A transaction is used in database processing where you want to make non-trivial changes. For example, in banking, when you want to make a transfer from one account to another you could do the following 1) deduct the given amount from the first account 2) add the given amount to …

Member Avatar for Reverend Jim
0
130
Member Avatar for casey_sunako
Member Avatar for Reverend Jim
0
142
Member Avatar for raaif

If you have the listview in details view you can define a custom sort. Let's say your listview is called lvwList lvwList.ListViewItemSorter = New MyCustomSorter But first you have to write the MyCustomSorter class. This is code that will compare two of your items and determine whether one is <, …

Member Avatar for raaif
0
1K
Member Avatar for debuggger

If you use a regular expression it will do a more robust word separation. [code] Dim rex As New System.Text.RegularExpressions.Regex("\b[a-z|A-Z|']+\b") Dim s As String = "the Quick, brown's <fox> jumped?" For Each match As System.Text.RegularExpressions.Match In rex.Matches(s) Debug.WriteLine(s.Substring(match.Index, match.Length)) Next [/code] In the above regular expression "\b" matches a word …

Member Avatar for Reverend Jim
0
186
Member Avatar for oseijy

n-Track at [url]http://ntrack.com/[/url] is a dandy multi-track recording package. For straight audio you can't beat Audacity (free)

Member Avatar for Reverend Jim
0
134
Member Avatar for kylelendo
Member Avatar for Reverend Jim
0
140
Member Avatar for ausgurl

I disagree that you have to restore a file from the backup before it can be used. I can examine files directly in my backup sets, even it the original has been deleted. I can read, print, email, etc these files directly from the backup.

Member Avatar for Reverend Jim
0
152
Member Avatar for moone009

This is a starting point. You can modify it, perhaps, to start at row one and continue until it finds an empty cell. To test, populate the first four cells of column B with your test addresses then run the macro (I assigned it to CTRL-M but you can just …

Member Avatar for Reverend Jim
0
130
Member Avatar for jonoman

My.Computer.FileSystem.GetName(filename) Returns just the filename portion of the fully qualified file. My.Computer.FileSystem.GetParentPath(filename) Returns the path portion. For filename = "C:\Users\profile.DOMAIN", the first returns profile.DOMAIN and the second returns C:\Users

Member Avatar for Reverend Jim
0
183
Member Avatar for Reverend Jim

I wanted to upvote another user's post. When I clicked on the upvote link I got a popup which stated "[user] currently has 537 reputation points. You have the power to influence pyTony's reputation by 4 points." I felt his assistance was worth more than one point but there was …

Member Avatar for Dani
0
148
Member Avatar for iefilec

Are you having a problem with the SQL part, the ListView part, or both? My SQL is rusty so I'll leave that to the experts as I have no SQL implementation to play with, however, the ListView part is something I can help you with. What specifically are you having …

Member Avatar for MartinPlatt
0
483
Member Avatar for Oneryavuz

First of all - the following only works on NTFS file systems and uses (as suggested by Teme64) alternate data streams which are pretty cool and very easy to work with. Funny you should bring this up. I wanted the ability to add a comment to a file (any type …

Member Avatar for Reverend Jim
0
183
Member Avatar for macvere

Then why don't you tell us what specifically you are having problems with?

Member Avatar for Reverend Jim
0
150
Member Avatar for Reverend Jim
Member Avatar for TIP.Synergy

Can you describe what you are trying to do in functional (non-programming) terms?

Member Avatar for NetJunkie
0
197
Member Avatar for Jesus Jacques

If you are only interested in specific buttons on a page, a convenient way to distinguish them from other buttons is via the button.Tag property. Then inside the "is this a button" test you can check if button.Tag = "some value".

Member Avatar for Jesus Jacques
0
1K
Member Avatar for hackerjackie

I suggest you read the following article: [url]http://media.wiley.com/product_ancillary/74/04705328/DOWNLOAD/532874_both02_p2.pdf[/url] If you still have questions after that then feel free to post. But read the article a couple of times first and do a little experimenting.

Member Avatar for Reverend Jim
0
83
Member Avatar for pfm200586

I would do everything in pennies. That is, if the input values are (for example) $250 and $127.93, I would convert that to 25000 and 12793 and go from there. That eliminates rounding when you use "\" to extract each denomination. [code=vb.net] 'provide your own input validation first Dim cost …

Member Avatar for Reverend Jim
0
398
Member Avatar for hackerjackie

Same as for printing anything else. I am just getting into printing and it isn't pretty. You have to calculate the position of every element on the page. A very good document (PDF) can be found here [url]http://media.wiley.com/product_ancillary/74/04705328/DOWNLOAD/532874_both02_p2.pdf[/url] Essentially you are going to have to do something like the following …

Member Avatar for Reverend Jim
0
117
Member Avatar for slenno1

Save the returned object from Process.Start and issue a Kill on that object when you are done with it. It will kill only that instance of cscript. [CODE=vb.net] Public Class Form1 Dim proc As System.Diagnostics.Process Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click proc = Process.Start("d:\temp\test.vbs") …

Member Avatar for Reverend Jim
0
207
Member Avatar for Reverend Jim

I wrote this 3D Breakout game as a sample project to learn both Python and the visual module, vPython. It is based on a similar game I had on my Amiga back in the 80s. I don't expect that my Python is either standard or as elegant as it could …

Member Avatar for Reverend Jim
0
499
Member Avatar for Reverend Jim

Is anyone ever going to fix the dead link on [url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/10915[/url] with the label User Maintenance, General forum usage, Reading and posting messages. I would really like to find the guide that explains the finer points of the Daniweb user interface. I think this is it but it had been …

Member Avatar for Dani
0
339
Member Avatar for TIP.Synergy

There are so many things wrong here. [B]That is not "the whole code"[/B] You are concatenating A and B to strCodes but we have no idea what A and B are. Because they are not defined anywhere I must assume they are Class or global variables. [B]You are using variables …

Member Avatar for Pgmer
0
699
Member Avatar for jonoman

[code] dim str as String = "C:\Users\profile" str = str.Substring(0, 1).ToLower & str.Substring(1) [/code]

Member Avatar for jonoman
0
93
Member Avatar for hackit

First of all when you take the square of 4 you get 16. I presume you meant square root. I would imagine that the algorithm used to find the square root results in 2 plus a very very small fraction which is not shown because it is so much smaller …

Member Avatar for Reverend Jim
0
184
Member Avatar for Whilliam

Some batteries have a small (can be hard to see) button which, when pressed (at least on my Dell) indicates the health of the battery depending on how many LEDs light up. Yours may have something similar. Lacking that you might try to go to Control Panel -> All Control …

Member Avatar for jingda
0
142
Member Avatar for Lek Plepi

Let's say you have a listview named lvwStuff and it has three columns (indexed 0, 1 and 2). The following code adds one line to the listview (I have it in Details view) [code=vb.net] Dim item As New ListViewItem item.Text = "stuff" 'gets added as lvwStuff.Items(0).SubItems(0) item.SubItems.Add("stuff col 1") 'gets …

Member Avatar for Lek Plepi
0
175
Member Avatar for uamahmood

Assuming that you want to do something similar with all of the textboxes within a groupbox, try the following code: [code=vb.net] Dim ctl As Windows.Forms.Control For Each ctl In Me.GroupBox2.Controls If ctl.GetType.ToString = "System.Windows.Forms.TextBox" Then ctl.Text = "splunge" End If Next [/code] I believe in some cases you may have …

Member Avatar for Reverend Jim
0
361
Member Avatar for parameswaran
Member Avatar for fish234

I had the same problem with Ubuntu Studio. I don't have the installation handy so I will be guessing at the name here but I think you have to cable up then install a package called (I think) widi. My problem was that every time I tried to enable the …

Member Avatar for khakilang
0
190
Member Avatar for bluejacketpin

[quote] Well, I do not know of a specific code but I do have some tips for you to help the overall functionality of your application. Most of which are listed here so check this out and I hope this helps! [/quote] I found that article to be quite dated …

Member Avatar for Reverend Jim
0
95
Member Avatar for mkalinic

The first thing I would suggest is to create a two-dimensional array for the buttons. If you want to place the buttons manually (at design time) you can initialize the array at run time as follows (in the form New or Load event handlers). Just make sure you declare the …

Member Avatar for Reverend Jim
0
453
Member Avatar for shredder2794

See if this helps: Right click "My Computer" and choose "Properties" from the context menu. Go to the "Advanced" tab Click the "Error Reporting" button near the bottom right Select "Disable Error Reporting" I don't know why the message keeps popping up but this may disable it.

Member Avatar for shredder2794
0
362
Member Avatar for Reverend Jim

I thought I'd play around with vPython so I wrote a 3D breakout game (I used to have one on my Amiga and I haven't seen one for Windows). Everything is done except for one wee problem. I want to idle while waiting for the user to click the left …

Member Avatar for Reverend Jim
0
274
Member Avatar for Borzoi

I had to set up a remote desktop to provide support between Winnipeg (me) and Phoenix (user). Machines at both ends were behind routers. I spent days trying to get Remote Desktop working (something which works astonishingly well when both machines are on the same domain and not separated by …

Member Avatar for Reverend Jim
0
384
Member Avatar for fargfarbot

I'll probably get flamed for this but if you can't connect to the internet then how did you post your message? And if you are posting from another computer then why don't you download the needed file from that computer? If you are posting from a cell phone or Blackberry …

Member Avatar for Reverend Jim
0
120
Member Avatar for keval_hack

Perhaps the purpose is to do some housecleaning, start monitoring software, etc. There are many reasons why you would want to do this. That is why Microsoft provides an easy way to do this. Of course, the easy way is easy only if you have the correct version of Windows. …

Member Avatar for Reverend Jim
0
266
Member Avatar for Reverend Jim

I was doing a little playing around with some scrollbar controls and I noticed an odd behaviour that I was hoping someone could explain. I create three horizontal scrollbar controls, one for each primary colour. Possible values for each R, G or B are 0 to 255. When I set …

Member Avatar for Reverend Jim
1
214
Member Avatar for kylelendo

Or you can create a file with that extension, then from an Explorer window, right click on that file and choose "Open With". From there you can select your custom program and select "Always open with this program". You can also do this from Control Panel -> Default Programs Either …

Member Avatar for codeorder
0
451
Member Avatar for M.Waqas Aslam

You might find it easier to do this with AutoIt using either vbScript to interface to the AutoItX control or the builtin AutoIt scripting feature. You can get more information at [url]http://www.autoitscript.com/site/autoit/[/url] It's free, by the way.

Member Avatar for Reverend Jim
0
811
Member Avatar for mad_1989

I don't follow. Can you please restate the problem without referring to vbScript or bat? As this is the vb.NET forum I presume you are looking for a vb.NET solution. It appears from your description, however, that you want to write a bat file ("how can I give inputs which …

Member Avatar for Reverend Jim
0
226
Member Avatar for vijaybrar

I think a clearer solution is [code] Dim s As String = "ab12*&" Dim numint As Integer = 0 Dim numlet As Integer = 0 Dim numspe As Integer = 0 For Each letter As Char In s.ToUpper Select Case letter Case "A" To "Z" numlet += 1 Case "0" …

Member Avatar for Pgmer
0
108
Member Avatar for blivori

Does this work? [code] My.Computer.FileSystem.CurrentDirectory = dlgFolder.SelectedPath [/code]

Member Avatar for Reverend Jim
0
431
Member Avatar for iampord

From "Sybex - Mastering Microsoft Visual Basic 2008": Another benefit of using streams is that you can combine them. The typical example is that of encrypting and decrypting data. Data is encrypted through a special type of Stream, the CryptoStream. You write plain data to the CryptoStream, and they’re encrypted …

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

Can you please clarify what you mean by "corresponding integers"? As a guess as to your intentions, you could create a dictionary object where the key (string) is a given string and the value is the number of times that string occurs. Loop over the strings, adding the new ones …

Member Avatar for Reverend Jim
0
88
Member Avatar for kylelendo

If you just want to see the hex values you can download any of a number of freeware hex editors. You can also download the TextPad demo and use it to open an exe file. It will display in hex. For free hex editors just go to google and search …

Member Avatar for ShahanDev
0
222
Member Avatar for Panathinaikos22

"If you write computer programs that work correctly and are used, then you are a programmer." That's like saying if you can nail two pieces of wood together and they don't fall apart then you are a carpenter. I would have preferred to the the statement amended as If you …

Member Avatar for Rashakil Fol
0
195
Member Avatar for alfredo11

[code] Dim ch(TextBox1.Text.Count) As Char For i As Integer = 0 To TextBox1.Text.Count - 1 ch(i) = TextBox1.Text.Chars(i) Next [/code]

Member Avatar for Reverend Jim
0
129
Member Avatar for Netcode
Re: Log

I know this thread is marked as solved buy I think the following is still of interest. Windows maintains several event logs (Application, Security, etc). You can use the Windows event subsystem to create and maintain a custom log which is viewable through the event viewer management console plugin (eventvwr.msc). …

Member Avatar for Reverend Jim
-1
105
Member Avatar for rciprogrammer

Myprogram.exe could spawn osk.exe as well as an independent process (MyprogramMon.exe for example) that monitors Myprogram.exe. When the Myprogram.exe disappears, MyprogramMon.exe could terminate osk.exe then exit. This should work even if the main process crashes.

Member Avatar for Reverend Jim
-1
212

The End.