Search:

Type: Posts; User: Inferrd

Page 1 of 11 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: If mistake !

    by Inferrd
    Replies
    5
    Views
    161

    Re: If mistake !

    Going back to your original code:

    Your youssef funtion tests if it is youssef who is logging in.
    It should return True if it is youssef.
    It should return False if it isn't youssef.

    The logic...
  2. VS 2010 Re: Process.Start System32 Directory Error

    @.paul. Did you compile to x86 or x64? Try both.

    Just for giggles, try testing:

    Process.Start("C:\Windows\System32\SnippingTool.exe") under both options.
  3. VS 2010 Re: Process.Start System32 Directory Error

    SysWOW64. Were you not paying attention?



    From ybriK's code:


    If IO.File.Exists("C:\Windows\System32\msconfig.exe") = True Then
    Process.Start("C:\Windows\System32\msconfig.exe")
  4. VS 2010 Re: Extracting information from a multidimensional array ?

    Hey william,

    It's probably this line


    strFirst = strName.Substring(Row, intSpace).TrimStart


    Row changes as the selected index. The first name always starts at the first character of the...
  5. VS 2010 Re: Process.Start System32 Directory Error

    I will say it again: when running a program compiled to 32 bit on a 64 bit Windows OS, attempts to access certain system folders are redirected to their 32 bit counterparts.

    It is true for...
  6. VS 2010 Re: Process.Start System32 Directory Error

    Are you compiling your program to 32 bit? When a 32 bit program is run on a 64 bit Windows OS, then attempts to access certain system folders are redirected to their 32 bit counterparts.
    ...
  7. VS 2010 Re: Is there an override/workaround for this?

    I still don't do Data, so I can't explain why the effect you are seeing happens, buuuut.....

    When using your DataTable, try casting your data to the appropriate Type:

    For Each row As DataRow In...
  8. Re: Transferring ListView Checked Items to Text box taking too long

    I tried your code with a ListView containing 50,000 checked items, and I was amazed at how slow it was. It had only managed to append the first 100 items in 51 seconds. This extrapolates to over 7...
  9. VS 2010 Re: cannot get error from commands in dos shell

    Is there a reason you are using the | character in your command? Are you trying to do something else, that you haven't mentioned, that is also not producing the expected output to the RichTextBox?
    ...
  10. Replies
    43
    Views
    742

    Re: Reading from XML

    Hey, Crystalii,

    Consider this line form your CheckStatus method:

    Dim CurrentPrayer As String = allTimes.LastOrDefault(Function(kvp) kvp.Value < CurrentTime).Key

    Firstly, should the prayer...
  11. VS 2010 Re: cyclic redundency check software

    The function currently returns the CRC as a UInteger so that you can convert it to a string for display in any format you desire.

    If you are only interested in an 8 digit hexadecimal string with...
  12. VS 2010 Re: cyclic redundency check software

    The text string you gave as an example in Post #1 is being treated as a record with 14 fields, each field delimited by a comma. For the purpose of calculating the CRC, the fields are being...
  13. Replies
    8
    Views
    206

    VS 2010 Re: Issue with MidiSysex messages

    I like what Joacim has done there. It's like watching Picasso paint: don't know what the hell is going on, but the way it all fits together is fascinating :p


    Just as quick note, though....
  14. Replies
    14
    Views
    477

    Re: Unicdoe

    Your For Loop is starting at 0 and stepping -2 which isn't helping (the code in the loop never actually executes).


    For i = 0 To bArr.Length - 1 Step -2


    The following should help get you...
  15. VS 2010 Re: Concatenate .wav files via byte array

    Hey Españolita,

    I think you may have a couple of problems there.

    You seem to be doing what I typically do; getting confused over array upper bounds and array lengths. By this I mean that an...
  16. VS 2010 Re: need help clicking a trickly lil image on a html doc

    Did you try setting the Attribute name to "classname" and checking its Value against "commentaction"?



    If b.GetAttribute("classname").ToLower = "commentAction".ToLower Then


    Only send nice...
  17. Replies
    26
    Views
    858

    Re: File Association Help

    Aye, I overlooked the case where frmResultsViewer is launched from a Button Click, without double clicking a .tbx file.

    Now you're using My.Application.CommandLineArgs(0) you need to use a...
  18. Thread: Subscripts

    by Inferrd
    Replies
    5
    Views
    196

    VS 2010 Re: Subscripts

    Don't forget those numbers are hexadecimal, so you'll need to include the hexadecimal literal prefix


    Private _subscripts As New Dictionary(Of Integer, String) From {
    {1, ChrW(&H2081)},...
  19. Replies
    26
    Views
    858

    Re: File Association Help

    From the MSDN: The Command Function "Returns the argument portion of the command line used to start ..... an executable program developed with Visual Basic."

    The point of adding the Try...Catch...
  20. Replies
    26
    Views
    858

    Re: File Association Help

    I can't see anything there that would cause an error, if you tried to launch your App by double clicking on a file with a valid RTF format (renamed as a .tbx file, of course).

    So, from the code...
  21. VS 2010 Re: Noob need help retrieving info from website (youtube)

    Ah, good. Ignore my last post then :P
  22. VS 2010 Re: Noob need help retrieving info from website (youtube)

    And I thought I had bad luck.....

    Well, oddly enough, it doesn't work for me. However, the following does; although with me being in the UK, and you being in Norway, then YMMV as they say. (for...
  23. VS 2010 Re: Noob need help retrieving info from website (youtube)

    The errors don't matter (it's as you said: the unusual way the browser is loaded with HTML code). However the text there does make a difference.

    The code you are using is searching for the text...
  24. VS 2010 Re: Noob need help retrieving info from website (youtube)

    Well at least there's hope still. I was half expecting you to get a 404 error page or something similar.

    Another question, though: When you scoll down to just below the video box, do you see...
  25. Replies
    5
    Views
    266

    VS 2010 Re: [RESOLVED] Background color

    Nice. It wouldn't hurt to check that the colour it returns is a valid colour before using it, though. Look to the Color.IsKnownColor Property, which returns a Boolean.



    Dim bckColour As Color =...
  26. VS 2010 Re: Noob need help retrieving info from website (youtube)

    If td is Nothing, then trying to access its NextSibling Property will throw a NullReference Exception as "Nothing" has no Properties to access. Similarly if NextSibling is Nothing then trying to...
  27. Re: Need help with radio buttons within a select case.

    Select Case True ? :)
  28. Replies
    10
    Views
    303

    Re: Listview Columkn Format

    Dim coupon = CDec(ShoppingListView.Rows(0).Cells("clmCoupon").Value).ToString("c")

    Same Row, same value.




    Something like:
  29. Replies
    5
    Views
    219

    Re: WebBrowser Question

    The Form has a StartPosition property. You can set it to Manual in the Form's Properties Window in the Designer and then set its Location property as required
  30. VS 2010 Re: stretching and relocating controls on form.stretch

    You mean the controls overflow at the right hand edge? I'm not seeing that effect when I try it.

    The Client Area of a form is the portion of the Form inside its Title Bar and margins, i.e. purely...
  31. VS 2010 Re: stretching and relocating controls on form.stretch

    I imagine they would be very close to the original size of the Form

    Try substituting Me.ClientSize.Width and Me.ClientSize.Height for 540 and 400 respectively. (The Me.Width and Me.Height...
  32. VS 2010 Re: Visual Basic 2012 - File "log.log" to ListBox (multiple lines) Help

    CChar(vbCrLf) will return vbCr as a single Char, so the above will split the string only on Carriage Returns, leaving any vbLf characters as the first character of every split line (except the first...
  33. Replies
    26
    Views
    858

    Re: File Association Help

    The error message states "File format is not valid." Are you sure the file path you are supplying to the RichTextBoxEx.LoadFile(String path) method is the path to a valid RTF file? Have you checked...
  34. Replies
    24
    Views
    592

    Re: Label does not refresh on load

    Your Form1.Designer Code will contain something like:


    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.
    ...
  35. Replies
    5
    Views
    180

    VS 2010 Re: Textbox text format

    Assuming you have your copied data assigned to a string variable, you could strip out all the white space (space characters and line terminator characters) from that string, and then build a new...
  36. Thread: date picker

    by Inferrd
    Replies
    3
    Views
    193

    Re: date picker

    You should not be splitting up the String representation of the date returned by the DateTimePicker's .Text property.

    Instead, work with the DateTimePicker's .Value property which returns a Date...
  37. VS 2010 Re: Listbox + Background Worker (Cross thread problem)

    You know, I swear before you edited your code, you had
    Dim ItemSelection = ListBox1.SelectedItem declared at Form level, outside the BGW's DoWork event handler.

    Of course it will give problems...
  38. VS 2010 Re: Listbox + Background Worker (Cross thread problem)

    I mean replace
    Dim ItemSelection = ListBox1.SelectedItem
    with
    Dim itemText = ListBox1.Text
    and then replace all subsequent occurences of ItemSelection with itemText

    And after all that,...
  39. VS 2010 Re: Listbox + Background Worker (Cross thread problem)

    Try substituting


    Dim itemText = ListBox1.Text

    for


    Dim ItemSelection = ListBox1.SelectedItem
  40. VS 2008 Re: Struggling with if...then and logical operator

    I think it is easier on the brain if you break it down further, so you are not mentally doing multiple comparisons every time you write an If clause.

    Example using a Button and two TextBoxes:

    ...
Results 1 to 40 of 437
Page 1 of 11 1 2 3 4