Search:

Type: Posts; User: Toph

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. VS 2013 Re: Notepad opens but in minimize mode...

    Try

    Process.Start("notepad")
  2. Replies
    25
    Views
    3,212

    VS 2013 Re: Problem Detecting words in Lowercase

    OP read up on Backus Naur Form. It's how language/syntax is defined in computing language. Have a look at that and see if that helps.
  3. Replies
    25
    Views
    3,212

    VS 2013 Re: Problem Detecting words in Lowercase

    Last time we spoke, you didn't specially point out my regex exp. You just pointed out how the Regex Exp I wrote wouldn't be suited for matching Ipv6 addresses, whereas the Reg exp only matched Ipv4....
  4. Replies
    13
    Views
    1,527

    Re: VB Adding text together depending on user input.

    Public Class Form1

    Private _ingredentsList As New Dictionary(Of String, Measurement)

    Private Structure Measurement
    Public Property Unit As String
    Public Property...
  5. VS 2012 Re: Count Number of items in listbox that have an underscore

    I told him how to use it in the beginning.
    http://prntscr.com/7j9apo
  6. VS 2012 Re: Count Number of items in listbox that have an underscore

    I showed OP how to use the function with a demonstration. Is not my fault he doesn't know how a function works and I've helped enough. I'm sure vbforums is not a spoonfeeding club. Is good to...
  7. VS 2012 Re: Count Number of items in listbox that have an underscore

    A function returns a value, that's it's sole purpose.

    So, this function.



    Private Function GetUnderscoreCount(lstBox As ListBox) As Integer
    Return (From item In ListBox1.Items...
  8. VS 2012 Re: Count Number of items in listbox that have an underscore

    What do you mean I'm not trying to help? I've literally spent my time coding a working solution for you. I even told you how to make it work. What else do you want me to do?

    I believe in helping...
  9. VS 2012 Re: Count Number of items in listbox that have an underscore

    Read and learn how a function works but this is the core basics of programming. Learn how it works and apply it here.
  10. VS 2012 Re: Count Number of items in listbox that have an underscore

    Label3.Text = GetUnderscoreCount(ListBox1)
  11. VS 2012 Re: Count Number of items in listbox that have an underscore

    Private Function GetUnderscoreCount(lstBox As ListBox) As Integer
    Return (From item In lstBox.Items Where item.ToString().Contains("_")).Count()
    End Function


    Just pass the list box...
  12. Replies
    9
    Views
    6,176

    Re: INSERT Command Problems

    No problem :), I knew you'd work something out
  13. Replies
    9
    Views
    6,176

    Re: INSERT Command Problems

    VALUES (@p1,@p2,@p3,@p4,@p5,@p6,@p7,@p8,@p9,@p10);"
  14. Replies
    9
    Views
    6,176

    Re: INSERT Command Problems

    Oops, add @p1, @p2, @p3 and so on. I forgot to include the @ sign in the Insert Statement
  15. Replies
    9
    Views
    6,176

    Re: INSERT Command Problems

    Also, you might not need to use Convert.ToDecimal, because when you paramterize your queries, they get converted to the right data type automatically.
  16. Replies
    9
    Views
    6,176

    Re: INSERT Command Problems

    Try this.



    Using meldingcmd As OleDbCommand = New OleDbCommand
    Make_con()
    With meldingcmd
    .Parameters.Clear()
    .Connection = con
    ...
  17. Replies
    25
    Views
    3,212

    VS 2013 Re: Problem Detecting words in Lowercase

    I disagree. Sure regex is complicated, but it doesn't take you year(s) to learn. It took me around a month to finally learn and understand the basics of regex.
  18. Replies
    5
    Views
    1,012

    VS 2013 Re: [RESOLVED] Help with SQL Query: SELECT DISTINCT

    See I was right all along :rolleyes:
  19. Replies
    5
    Views
    1,012

    VS 2013 Re: Help with SQL Query: SELECT DISTINCT

    Your statement is saying that one thing can be two separate things at the same time which makes no sense.

    Use an OR operator rather than an AND.
    So

    TypeMode = 'RECEIVABLES' OR TypeMode =...
  20. Replies
    8
    Views
    1,507

    VS 2013 Re: Encrypting / Decrypting - Publish

    You shouldn't really be storing any sensitive data on the application itself, regardless if it's encrypted.

    All this should be done server side.
  21. Replies
    4
    Views
    889

    Re: Changing Text Box Format

    Excel in VB is not my domain. Don't know anything there.
  22. Replies
    4
    Views
    889

    Re: Changing Text Box Format

    Well I'm sure there is some lovely function to do it automatically that I'm unaware of, but here's a MANS way of doing it :cool: .



    YourTextBox.Text =...
  23. VS 2010 Re: How convert this code listview.Items.Remove to linq help Paul ?

    I think that's weird how a Linq foreach on a 1D array is slower than a regular for each on a 1D array. Afterall, both statements are O(n) operations, therefore theoretically both should take the same...
  24. Replies
    26
    Views
    2,754

    Re: Persistent Combobox - Saved Locally

    There's other ways to do it. When you click the add button, check to see if the txtItem.Text is already in the ComboBoxItems

    If it is, don't add, if it is add.

    Here's an altered code of the...
  25. Replies
    26
    Views
    2,754

    Re: Persistent Combobox - Saved Locally

    That's not really a flaw, it all depends on what the user wants/needs. You can just modify the code a bit not to allow duplicates.
  26. Replies
    26
    Views
    2,754

    Re: Persistent Combobox - Saved Locally

    See OP if you had used my code you would of got this working ages ago.. Just saying.. :rolleyes:
  27. Replies
    26
    Views
    2,754

    Re: Persistent Combobox - Saved Locally

    Hmmm, maybe I should of used My.Settings then
  28. Replies
    26
    Views
    2,754

    Re: Persistent Combobox - Saved Locally

    In the past, whenever I used My.Settings, I found it that if the user was to move the .exe file then the settings got erased. I understand that the .exe of a program should never be moved, but in...
  29. Replies
    26
    Views
    2,754

    Re: Persistent Combobox - Saved Locally

    Here's the code.



    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim items As String() = LoadSavedItems()

    If items IsNot Nothing Then...
  30. Replies
    26
    Views
    2,754

    Re: Persistent Combobox - Saved Locally

    I coded a solution, but it's in C#, and not VB.NET as I don't have access to VB.NET right now. I'll convert the code and give it to you and hopefully it works.
  31. Replies
    26
    Views
    2,754

    Re: Persistent Combobox - Saved Locally

    Just save it in your Appdata folder, that would suffice :).
  32. Replies
    5
    Views
    1,057

    Re: Type Characters...

    I had no idea these exists. Defo going to use it to prank my friends and confuse the hell out of them
  33. Replies
    5
    Views
    4,751

    VS 2013 Re: Unsure if SQL or VB issue

    Yeah I agree, the code is very maintainable and could be shortened to more than 75% of what it is now.
  34. Replies
    5
    Views
    1,098

    VS 2013 Re: code after closing instance

    In object orientation terminology this is called a destructor. However, I think you're talking more in terms of Windows Forms. Therefore there are events fired right before the form is closed, use...
  35. VS 2010 Re: Would like information on a good free to use dictionary

    There are many many ways to do this.

    1) You could use a dictionary API but it could be slow depending on how fast you're loading the words.
    2) You could just download a HUGE list of words and...
  36. Replies
    5
    Views
    1,476

    Re: put ip address in textBox what to add more?

    I had no idea that there was such a thing like IpAddress.TryParse(), thanks for pointing that out. I wonder how IpAdress.TryParse() works behind the scenes, I bet they use Regex too. Anyway, what are...
  37. Replies
    5
    Views
    1,476

    Re: put ip address in textBox what to add more?

    If you're trying to match Ip addresses then you can use this shorter alternative.



    (\d{1,3}\.){3}\d{1,3}


    Also, whenever you use Regular Expressions, it's good practice to comment what your...
  38. Re: How to check idle time and do a session timeout and log out the user?

    I recommend you alert the user that their session has expired only when they they maximize their screen then log them out, that way they know exactly what was going on. It's better than logging them...
  39. Re: How to check idle time and do a session timeout and log out the user?

    Set an event to when the window is minimized. Once it's minimized, record the current time stamp.
    Set an event for when the window is opened, once it's open, check the timestamp, if the timestamp -...
  40. Replies
    3
    Views
    2,014

    Re: Invalid Cast Exception

    Use AddRange mate :)

    Also, Linq return IEnumrable. so change your initial listdecription variable to that.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width