• Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Turbo C help

    >Enter 10 student grades and print the total number of passing and failing grades entered Since you can't be bothered to even ask politely then I'll just answer impolitely with …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Remembering text

    Please mark this as solved if it does what you want.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Remembering text

    You can create a String Settings variable (see project -> properties) then add the following code Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load RichTextBox1.Rtf = My.Settings.RichText End …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Progress Bars

    ProgressBars are typically only useful when you are looping through a process and you know where in the process you are. For example, if your loop is copying a known …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Marked Solved Status for Movable controls at runtime?

    Hello. Im new to this coding stuff, so I want to know how to make controls moveable when the program is actually running. My aim is to make a panel …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Looking for large list of inspirational quotes

    Here's a thought. Have you tried googling [Inspirational quotes business](https://www.google.ca/search?q=inspirational+quotes+business&espv=2&biw=1455&bih=714&tbm=isch&imgil=GBIZMZg-V0jPVM%253A%253BVTr2MVvpUIKpYM%253Bhttps%25253A%25252F%25252Fwww.linkedin.com%25252Fpulse%25252F20130909115126-5853751-20-motivational-business-quotes-to-read-every-morning&source=iu&pf=m&fir=GBIZMZg-V0jPVM%253A%252CVTr2MVvpUIKpYM%252C_&usg=__-PiZ39UhzSF_mMaRmmckgcZZ3v4%3D#imgrc=g2wz1u5mI0l8lM%3A&usg=__-PiZ39UhzSF_mMaRmmckgcZZ3v4%3D)?
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in What will be the time complexity and the size of subset for the following

    Sounds suspiciously like a homework question to me. Don't expect anyone here to do it for you.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Movable controls at runtime?

    If you need to save the positions of the controls from run to run then you can add a `Settings` variable. Name it `ControlLocations` and make it of type `System.Collections.Specialized.StringCollection` …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Movable controls at runtime?

    It's certainly possible. Create a form and put a few controls of any type on it. Then add the following code. Public Class Form1 Dim indrag As Boolean 'true while …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in how to use array?

    z←avg 'enter 5 numbers' z←(+/z)÷⍴z←⎕ That's it in APL. What language were you using and what have you done so far? Hmmmm. Doesn't display when I come back. Here it …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited losing info after refresh page

    at last i got the checkboxes to work and add to database but the only this i need advice on if i refresh the page the selected items disappear how …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Help

    If you want help then I suggest you do more than just cry "Help" and post undocumented code without any explanation as to what you need help with. It may …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in KeyUP KeyDown Question

    I suggest that instead of using a key type event you put your code in the textbox `Leave` event handler. That way any new text gets processed no matter how …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in auto incremental alphanumeric id in vb.net

    I hate to sound rude, but anyone who knows anything about programming should be able to take my example and apply it. You take the largest `empID` in use and …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in auto incremental alphanumeric id in vb.net

    If you keep passing NextID the same string (EMP000) then, of course you are going to keep getting back EMP001. If you run the following code: Dim empid As String …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Object cannot be cast from DBNULL to other types

    I assumed that `datee` was a column in his table and was spelled that way because `Date` is a reserved word. I sill think the problem is because one or …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in If you are hearing impaired

    Found the problem with bluetooth. It wasn't enabled in Equlizer APO. I ran the Configurator under the Equalizer APO start menu and enabled bluetooth.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Object cannot be cast from DBNULL to other types

    If one of your database columns does not have value then it will return NULL. You can either test for that before you try to convert or you can use …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in What is wrong with this code ?

    You do NOT need two different connections. However, if you get an error that is caught by a `Catch` then your connection will stay open and that may be the …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Troubleshooting Issue

    Rule number one. Everybody lies. The first thing I would do is verify that what the user is saying is true. I would also add: * Verify that the user …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in C# windows app populate textbox with datetime from database

    Is it possible that the actual datetime value in the database has `00:00:00.000` for the time portion? I tried this with my SQL database and it worked as you wanted. …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in auto incremental alphanumeric id in vb.net

    First of all, you should have specified that this is (probably) a database question, plus, what type of database. You can't autoincrement a string field. You'd have to specify empid …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Converting various video formats to mp4

    I should also have mentioned that ffmpeg can be downloaded from [here](https://www.ffmpeg.org/download.html).
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Get this information about pc in Visual C++ or VB or C#

    I suggest you look into WMI (Windows Management Instrumentation). You can get some info plus a free tool to explore WMI [from this site](http://blogs.technet.com/b/heyscriptingguy/archive/2014/09/13/weekend-scripter-the-wmi-explorer-tool.aspx). [Here](http://wmie.codeplex.com/) is a direct link to …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited Converting various video formats to mp4

    I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited Converting various video formats to mp4

    I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited Converting various video formats to mp4

    I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited Converting various video formats to mp4

    I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited Converting various video formats to mp4

    I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Created Converting various video formats to mp4

    I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in If you are hearing impaired

    The only thing it doesn't appear to work with is my hearing aids. I use them with a bluetooth connection just like bluetooth headphones. However, because the hearing aids already …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Help to error handle while data read in vb.net

    You can PM me at Daniweb. What is the problem with talking in this thread?
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in auto incremental alphanumeric id in vb.net

    You have to pass it the current max id and it will return the next one.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in If you are hearing impaired

    For anyone looking for a great GUI for Equalizer APO check out [Peace](http://sourceforge.net/projects/peace-equalizer-apo-extension/). My only concern was that it was flagged by my anti-virus but that was because it is …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in auto incremental alphanumeric id in vb.net

    Try Private Function NextID(empid As String) As String Dim n As Integer = CInt(empid.Substring(3)) Return empid.Substring(0, 3) & Format(n + 1, "000") End Function Test with MsgBox(NextID("EMP013"))
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Help to error handle while data read in vb.net

    Right here works for me.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Gave Reputation to cereal in Parse error: syntax error, unexpected

    Hi, look here `user_id = '".$_SESSION['userid']."' ")"` remove the second-last quote, so that changes to: `)"`. Then it should work, but consider that an **INSERT** query does not support the …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Help to error handle while data read in vb.net

    It doesn't matter whether it is public or private as long as it is in scope when you use it. Have a look at [this code snippet](https://www.daniweb.com/programming/software-development/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks). Note that at …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in vb.net search command doesn't work

    You do Dim con As New MySqlConnection but you haven't assigned a connection string so there is no way to actually connect to your database. Also, you are doing `ExecuteReader` …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Help to error handle while data read in vb.net

    At the time you do Using cmd = New MySqlCommand(Query, con) `Query` does not have a value. Assign the query string to `Query` prior to that statement.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Error in vb.net

    It would help if you posted your code but as a guess I would say you are using the wrong password,
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in vb.net search command doesn't work

    You aren't assigning a value to Query until after you create the cmd. Try Query = "SELECT first_name, last_name, NIC_NO, c_address1, " & " c_address2, c_address3, c_telephoneNO, " & " …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How to select data between two dates from mysql DB

    `GetString(num)` returns the item at that column in the current record. You are going to have a problem though because you are creating a new ListViewItem (as per my example) …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Parse error: syntax error, unexpected

    I think your problem is in the part VALUES (NULL,'$Male', '$female','$Couple','$tvt' WHERE Try changing it to VALUES (NULL,'$Male', '$female','$Couple','$tvt') WHERE
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How to select data between two dates from mysql DB

    You'll need to add Imports MySql.Data.MySqlClient Then you'll need a connection string. Typically something like Dim con As New OleDbConnection("Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;") Patch in your own values for `myServerAddress`, `myUsername` and `myPasswword`. …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in how do that ?

    Sounds like homework. What language are you using and what do you have so far?
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How to select data between two dates from mysql DB

    The synax is SELECT * FROM daily_income WHERE someDate BETWEEN '2015-12-17' AND '2016-01-10'
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Memorable Quotations

    "At last. A study that proves everything I ever thought about confirmation bias." Anonymous
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How is it...

    Actually I thought it could be a thread for more than just my "how is it" questions. Back to bit slicing. What if I email a portion of a file …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How is it...

    But that kind of gets away from my original question. Here's another "how is it" How is it that the government can claim that it is protecting the liberties that …

The End.